From b780f51ba944d92be08ead9a705af23c7d18b80c Mon Sep 17 00:00:00 2001 From: Pau Argelaguet Date: Fri, 6 May 2022 14:05:36 +0200 Subject: [PATCH] Release 3.3.1 (#848) * Dependencies: Install React Testing Library * Recommendations Block: Add JS test sample * Providing a Store * Dependencies: Install MSW * Dependencies: Install jest-dom * Recommendations Block: Add sample JS tests * Update plugin version to 3.3.0-alpha * Adding tracker URL to REST API (#743) * Adding tracker URL to REST API * Fixing tests * Updating filter comment * Moving metadata generation to external class (#742) * Gradually moving metadata to class * Requiring metadata file * Add deprecated notice * Remove hard deprecate * Update src/class-metadata.php Co-authored-by: Gary Jones * Moving protocol of schema.org Co-authored-by: Gary Jones * WordPress_Cache: Use built-in caching functions In the initial implementation of this, we were expecting an object of type WP_Object_Cache, which was not always the case could result in fatal errors. This new implementation tries to be more agnostic and work correctly in most scenarios. * WP_Object_Cache: Move linter ignore comment Co-authored-by: Pau Argelaguet * Remove unused parameter from constructor call * Bump concurrently from 7.0.0 to 7.1.0 (#755) Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 7.0.0 to 7.1.0. - [Release notes](https://github.com/open-cli-tools/concurrently/releases) - [Commits](https://github.com/open-cli-tools/concurrently/compare/v7.0.0...v7.1.0) --- updated-dependencies: - dependency-name: concurrently dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-node from 3.0.0 to 3.1.0 (#756) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3.0.0...v3.1.0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump prettier from 2.6.1 to 2.6.2 (#754) Bumps [prettier](https://github.com/prettier/prettier) from 2.6.1 to 2.6.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.6.1...2.6.2) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Fix styling issues in FSE mode * Recommendations Block: Enable in FSE mode * Remove @wordpress/editor dependency * Recommendations Block: Enable by default * Metadata: Don't limit internal images to thumbnail size * Fix broken regex in get_first_image() The regex in `Metadata->get_first_image()` did not actually capture many (if any) image tags. * Revert "Recommendations Block: Enable by default" This reverts commit 1014e4250d1176cff3ab02bf32ece5430fd64e7d. * Metadata: Remove get_first_image() * Remove obsolete comment * Update @uses and @covers taking into account Metadata class * Introduce block.json to be used as the source of truth for block definition. * Registers the block by passing the path the block.json file. Removes the supports and attributes items from PHP as they are now manged via block.json. * Adjust webpack config to use defaultConfig.entry to take advantage to the automatic entry point detenction and file copying provided by the @wordpress/scripts package. * Rename index.js to view.js to better reflect it's usage on the front end only. * Add new proprties to the block.json file: editorScript - defines which file will be enqueue into the block editor. This file handles the block definition on the client side. style - defines a stylesheet to be enqueue into both the editor and on the front end viewScript - defines a file that will be registered with the intent of being enqueue on the front end only. * Remove the manually registered scripts and styles in favor of the block.json managing them. Manually enqueue the viewScript defined in block.json. * Add the build files for the block. * Add textdomain property to block.json. * Add admin only CSS and enqueue the file. * Add check for 5.9 and fallback viewScript registration if needed. * Updates per code review. * Run build command. * Ensuring the defaul value of title is translated. * Recommendations Block: Rebuild assets * Metadata: Improve image/thumb URL checks * Recommendations Block: Update compatibility to WP 5.9 and up * Recommendations Block: Remove feature flag * README.md: Update Recommendations Block information * Recommendations Block README.md: Update Block information * README.md: Update "Tested up to" to 5.9.3 * Settings page: Improve on-screen help for Site ID * Settings page: Improve Site ID validation * Recommendations Block: Simplify editor CSS * Recommendations Block: Disable links in editor * Add missing period in a comment * Add a CSS comment for clarity * Bump moment from 2.29.1 to 2.29.2 (#768) Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2. - [Release notes](https://github.com/moment/moment/releases) - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) - [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2) --- updated-dependencies: - dependency-name: moment dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/url from 3.6.0 to 3.7.0 (#773) Bumps [@wordpress/url](https://github.com/WordPress/gutenberg/tree/HEAD/packages/url) from 3.6.0 to 3.7.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/url/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/url@3.7.0/packages/url) --- updated-dependencies: - dependency-name: "@wordpress/url" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/babel-preset-default from 6.7.0 to 6.8.0 (#772) Bumps [@wordpress/babel-preset-default](https://github.com/WordPress/gutenberg/tree/HEAD/packages/babel-preset-default) from 6.7.0 to 6.8.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/babel-preset-default/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/babel-preset-default@6.8.0/packages/babel-preset-default) --- updated-dependencies: - dependency-name: "@wordpress/babel-preset-default" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/compose from 5.3.0 to 5.4.0 (#771) Bumps [@wordpress/compose](https://github.com/WordPress/gutenberg/tree/HEAD/packages/compose) from 5.3.0 to 5.4.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/compose/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/compose@5.4.0/packages/compose) --- updated-dependencies: - dependency-name: "@wordpress/compose" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/blocks from 11.4.0 to 11.5.0 (#769) Bumps [@wordpress/blocks](https://github.com/WordPress/gutenberg/tree/HEAD/packages/blocks) from 11.4.0 to 11.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/blocks/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/blocks@11.5.0/packages/blocks) --- updated-dependencies: - dependency-name: "@wordpress/blocks" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/api-fetch from 6.2.0 to 6.3.0 (#770) Bumps [@wordpress/api-fetch](https://github.com/WordPress/gutenberg/tree/HEAD/packages/api-fetch) from 6.2.0 to 6.3.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/api-fetch/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/api-fetch@6.3.0/packages/api-fetch) --- updated-dependencies: - dependency-name: "@wordpress/api-fetch" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/e2e-test-utils from 7.1.0 to 7.2.0 (#777) Bumps [@wordpress/e2e-test-utils](https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils) from 7.1.0 to 7.2.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-test-utils/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/e2e-test-utils@7.2.0/packages/e2e-test-utils) --- updated-dependencies: - dependency-name: "@wordpress/e2e-test-utils" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/env from 4.4.0 to 4.5.0 (#775) Bumps [@wordpress/env](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/env/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/env@4.5.0/packages/env) --- updated-dependencies: - dependency-name: "@wordpress/env" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump eslint-plugin-jest from 26.1.3 to 26.1.4 (#778) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.1.3 to 26.1.4. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v26.1.3...v26.1.4) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/scripts from 22.3.0 to 22.4.0 (#779) Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 22.3.0 to 22.4.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@22.4.0/packages/scripts) --- updated-dependencies: - dependency-name: "@wordpress/scripts" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/components from 19.7.0 to 19.8.0 (#776) Bumps [@wordpress/components](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components) from 19.7.0 to 19.8.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/components@19.8.0/packages/components) --- updated-dependencies: - dependency-name: "@wordpress/components" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/eslint-plugin from 11.1.0 to 12.0.0 (#780) Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 11.1.0 to 12.0.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/eslint-plugin@12.0.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@wordpress/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/block-editor from 8.4.0 to 8.5.0 (#781) Bumps [@wordpress/block-editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-editor) from 8.4.0 to 8.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/block-editor@8.5.0/packages/block-editor) --- updated-dependencies: - dependency-name: "@wordpress/block-editor" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Recommendations Block: Change URLs to # when in editor Mouse events are already disabled by CSS, but this was done for better screen reader experience. * Add filter for enabling/disabling Related API Proxy * Roll back to @wordpress/scripts 22.3.0 * Settings page: Improve wording about Site ID Co-authored-by: Gary Jones * Recommendations Block: Improve error handling * Recommendations Block: Improve code quality * Bump actions/setup-node from 3.1.0 to 3.1.1 (#782) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3.1.0...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Integration Tests: Don't run Block tests against unsupported WP versions * Recommendations Block: Update @since for register_block() * Extracting metadata rendering to UI class (#751) * Moving metadata rendering out * Moving function out * Fix method reference * Fix metadata endpoint * Rename to Metadata Renderer * Fix path * Restoring deprecated functions * Remove Cache Buster (#747) * Settings page: Implement API key sanitization and validation in dedicated functions * Add unit test for settings page API key validation function * Bump @wordpress/block-editor from 8.5.0 to 8.5.1 (#788) Bumps [@wordpress/block-editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-editor) from 8.5.0 to 8.5.1. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/block-editor@8.5.1/packages/block-editor) --- updated-dependencies: - dependency-name: "@wordpress/block-editor" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Dependencies: Uninstall MSW * Recommendations Block: Add tests for loading one recommendation * Getting rid of construct metadata usages (#783) * Getting rid of construct metadata usages * Rename Metadata Renderer * Making metadata generation consistent * Renaming name in views * Fix metadata rendering * Adding e2e tests for metadata (#789) * Adding repeated metas end to end tests * Workin on jsonld * Adding json-ld test * Adding extra jsonld tests * Adding extra check for negative conditions. * Improving type annotations on metadata (#790) * Improving type annotations on metadata * Realigning comments * Recommendations Block: Add CSS class to error placeholder * Recommendations Block: Add E2E tests * Move initialization outside of test * Add a full stop to some comments. * Recommendations Block: Add structure tests for multiple items * Update some comments for corectness * Recommendations Block: Move structure test to unit tests * Recommendations Block: Rename E2E test * Recommendations Block: Add settings E2E test * Removing Dynamic Tracking references (#791) * Removing Dynamic Parsely references * Removing additional dead code * Recommendations Block: Try to fix some code smells in settings test * Recommendations Block: Fix thumbnail images not showing * Update Related Proxy Endpoint integration test * update_metadata_endpoint(): Send image URL instead of thumbnail URL * Fix Recommended Widget not showing * Make certain functions accessible to all types of PHPUnit tests * Add missing "require" in unit tests bootstrap.php * Eliminate code duplication in block-structure.test.js * block-structure.test.js: Simplify code further * E2E tests: Remove *PluginApiKey() functions in favor of SetSiteId() * Bump async from 2.6.3 to 2.6.4 (#801) Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4. - [Release notes](https://github.com/caolan/async/releases) - [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md) - [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4) --- updated-dependencies: - dependency-name: async dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Updating testing dependencies (#804) * Moving JS unit tests (#806) * Rename Tests_Trait to Tests_Reflection * Adding disable autotrack option for dynamic tracking (#792) * Adding disable autotrack option * Correcting test * Inserting autotrack more in a more conservative way * Revert test changes * Updating error messages * Adding check for disable autotrack * Fixing autotrack in all situations * Adding comments * Update src/js/lib/loader.js Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Update src/js/lib/loader.js Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Update tests/Integration/ScriptsTest.php Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Updating asset * Stricter comparison for disable_autotrack * Renaming disable autotrack variable Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Remove unused variables (#807) * Remove unused index from metadata loop * Remove unused variable from test * Readding blog creation * Simplify test regex * Using array_values * Update tests/Integration/UI/NetworkAdminSitesListTest.php Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * README.md: Remove beta mentions regarding Recommendations Block * Bump @wordpress/hooks from 3.6.0 to 3.7.0 (#813) Bumps [@wordpress/hooks](https://github.com/WordPress/gutenberg/tree/HEAD/packages/hooks) from 3.6.0 to 3.7.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/hooks/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/hooks@3.7.0/packages/hooks) --- updated-dependencies: - dependency-name: "@wordpress/hooks" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @wordpress/babel-preset-default from 6.8.0 to 6.9.0 (#812) Bumps [@wordpress/babel-preset-default](https://github.com/WordPress/gutenberg/tree/HEAD/packages/babel-preset-default) from 6.8.0 to 6.9.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/babel-preset-default/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/babel-preset-default@6.9.0/packages/babel-preset-default) --- updated-dependencies: - dependency-name: "@wordpress/babel-preset-default" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/e2e-test-utils from 7.2.0 to 7.3.0 (#814) Bumps [@wordpress/e2e-test-utils](https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils) from 7.2.0 to 7.3.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-test-utils/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/e2e-test-utils@7.3.0/packages/e2e-test-utils) --- updated-dependencies: - dependency-name: "@wordpress/e2e-test-utils" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/eslint-plugin from 12.0.0 to 12.1.0 (#815) Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 12.0.0 to 12.1.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/eslint-plugin@12.1.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@wordpress/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Add integration test for post image metadata * Single post integration tests: Update some PHPDocs * Remove tag setting from the Recommendations Block * Fix SonarCloud's 'errorMessage' is already declared in the upper scope * Bump @wordpress/env from 4.5.0 to 4.6.0 (#819) Bumps [@wordpress/env](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env) from 4.5.0 to 4.6.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/env/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/env@4.6.0/packages/env) --- updated-dependencies: - dependency-name: "@wordpress/env" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump eslint-plugin-jest from 26.1.4 to 26.1.5 (#829) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.1.4 to 26.1.5. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v26.1.4...v26.1.5) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/block-editor from 8.5.1 to 8.6.0 (#816) Bumps [@wordpress/block-editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-editor) from 8.5.1 to 8.6.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/block-editor@8.6.0/packages/block-editor) --- updated-dependencies: - dependency-name: "@wordpress/block-editor" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Bump @wordpress/compose from 5.4.0 to 5.5.0 (#817) Bumps [@wordpress/compose](https://github.com/WordPress/gutenberg/tree/HEAD/packages/compose) from 5.4.0 to 5.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/compose/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/compose@5.5.0/packages/compose) --- updated-dependencies: - dependency-name: "@wordpress/compose" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Rebuild assets * Bump @wordpress/blocks from 11.5.1 to 11.6.0 (#811) Bumps [@wordpress/blocks](https://github.com/WordPress/gutenberg/tree/HEAD/packages/blocks) from 11.5.1 to 11.6.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/blocks/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/blocks@11.6.0/packages/blocks) --- updated-dependencies: - dependency-name: "@wordpress/blocks" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet Co-authored-by: Pau Argelaguet * Fix SonarCloud's 'errorMessage' is already declared in the upper scope * Bump @wordpress/components from 19.8.0 to 19.9.0 (#818) Bumps [@wordpress/components](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components) from 19.8.0 to 19.9.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/components@19.9.0/packages/components) --- updated-dependencies: - dependency-name: "@wordpress/components" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet Co-authored-by: Pau Argelaguet * Settings page: Remove media months query (#827) The settings page calls `wp_enqueue_media()`, and this always runs a query to capture the month-year combinations that attachments were uploaded. This is only potentially useful when the logo is being selected, and even then, it's more likely that the user would upload a new logo or choose a recently uploaded one, than use the month-year filter to try and find an older upload (search by file is also available anyway). The filter hook to disable this query has a note that this query can be expensive for large media libraries, so let's disable this query by default. Since we control the page, and won't be calling `wp_enqueue_media()` a second time, there's no benefit to re-enabling the month-year query after `wp_enqueue_media()` has been called. Co-authored-by: Pau Argelaguet Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Settings: Associate logo label to field (#826) The new-ish logo field didn't have an id attribute that linked it to the label. This was an accessibility issue, but is now fixed. The "Browse" button on a new line also seemed redundant and awkward, so it's now inline with the input field. Co-authored-by: Pau Argelaguet Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Bump @wordpress/scripts from 22.3.0 to 22.5.0 (#830) * Bump @wordpress/scripts from 22.3.0 to 22.5.0 Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 22.3.0 to 22.5.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@22.5.0/packages/scripts) --- updated-dependencies: - dependency-name: "@wordpress/scripts" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix defaultConfig.entry call Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pau Argelaguet Co-authored-by: Pau Argelaguet * Bump github/codeql-action from 1 to 2 (#831) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v1...v2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Recommendations Block: Update documentation (#821) * Recommendations Block: Update documentation * README.md: Add Recommended Widget deprecation note Co-authored-by: Pau Argelaguet * Recommendations Block: Handle failed HTTP request (#825) * Recommendations Block: Handle failed HTTP request When the Parse.ly Recommendations API was not accessible to the proxy endpoint, such as when developing offline or if the Parse.ly API was down, and recommendations were not able to be retrieved, then the block editor displayed: > Error: {"errors":{"http_request_failed":["A valid URL was not provided."]},"error_data":[]} The error message comes from WP_HTTP class in WordPress core, and in this case was slightly misleading, as the attempted URL was correct. By adding some `errorMesssage` handling to the block's JavaScript, we can improve the message and avoid JSON being shown, so it reads as: > The Parse.ly Recommendations API is not accessible. You may be offline. * Rebuild assets * Recommendations Block: Handle more failed HTTP error scenarios * Recommendations Block: Add test for failed HTTP request * Rebuild assets * Update variable name to be consistent with develop branch * Rebuild assets * Recommendations Block: Attempt to fix failing E2E test Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Co-authored-by: Pau Argelaguet * Adding onReady hook (#808) Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Removing uses of deprecated metadata generation (#833) * Removing uses of deprecated metadata generation * Update SinglePostTest * Use Metadata * Updating OtherTest * Updating RestMetadataTest * Updating phpunit references * Update Recommended Widget's "social interactions" text The Recommended Widget's social interactions text contained "LinkedIn" which is not supported by Parse.ly. The text was updated to match what we have on the Recommendations Block. * Remove Parse.ly options as a parameter for Metadata generation (#836) * Fixing coverage annotations in tests (#837) * Fixing coverage issues * Put OtherTest in correct order * Improve PHP comments conformity to Inline Documentation Standards (#838) * Update PHP function comments to third person See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#language. * Remove return void from PHP function comments See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#1-functions-class-methods. * Attempt to limit some very long DocBlocks See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#line-wrapping, * Add missing full stops to PHP comments * Update PHP file headers See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#6-file-headers. * PHP file headers: Remove author tag * PHP file headers: Remove copyright tag See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#other-tags. * PHP file headers: Remove license tag License is still present in wp-parsely.php in the plugin header. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#other-tags. * PHP file headers: Remove package WordPress tag See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#other-tags. * PHP file headers: Update package tag to Parsely and Parsely\Tests * Remove unused WP_ERROR * Restore wp-parsely.php file comments Co-authored-by: Pau Argelaguet * Preparation for 3.3.0 release (#840) * Preparation for 3.3.0 release * Update CHANGELOG.md Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Remove risky metadata views (#842) * Removing redundant views * Updating tests * Remove Recommendations Block README Documentation is now available online: https://www.parse.ly/help/integration/recommendations-block * Update Recommendations Block documentation link * Fixing disable autotrack issues (#845) * Fixing disable autotrack issues * Fix identation * Adding test for disable autotrack validation * Adding coverage annotations * Preparation for release 3.3.1 (#846) * Prepare release 3.3.1 * Fix changelog * Update README.md Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Run tests without cache Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Co-authored-by: Gary Jones Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ryan Welcher --- .github/workflows/e2e-tests.yml | 2 +- CHANGELOG.md | 12 ++++ README.md | 4 +- package-lock.json | 4 +- package.json | 2 +- src/UI/class-metadata-renderer.php | 4 +- src/UI/class-settings-page.php | 4 +- src/blocks/recommendations/README.md | 65 ------------------- .../Endpoints/RestMetadataTest.php | 4 +- tests/Integration/UI/SettingsPageTest.php | 23 ++++++- tests/e2e/specs/front-end-metadata.spec.js | 4 +- tests/e2e/utils.js | 2 +- views/custom-metadata.php | 13 ---- views/json-ld.php | 15 ----- wp-parsely.php | 4 +- 15 files changed, 50 insertions(+), 112 deletions(-) delete mode 100644 src/blocks/recommendations/README.md delete mode 100644 views/custom-metadata.php delete mode 100644 views/json-ld.php diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 9e661b81e..e9a64b3d8 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -40,7 +40,7 @@ jobs: - name: Running the tests run: | npm run test:e2e -- --listTests > ~/.jest-e2e-tests - npm run test:e2e -- --cacheDirectory="$HOME/.jest-cache" + npm run test:e2e - name: Stop WordPress environment run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 27c063c8e..5b5dadece 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.3.1] - 2022-05-06 + +### Fixed + +- Saving settings on a new installation would show a warning on wp-admin. [#845](https://github.com/Parsely/wp-parsely/pull/845) +- Risky JSON-LD metadata views. [#842](https://github.com/Parsely/wp-parsely/pull/842) + +### Removed + +- Remove Recommendations Block README. [#844](https://github.com/Parsely/wp-parsely/pull/844) + ## [3.3.0] - 2022-05-02 ### Added @@ -664,6 +675,7 @@ If you are using the plugin without any code-level customizations (for instance, - Initial version. - Add support for parsely-page and JavaScript on home page and published pages and posts as well as archive pages (date/author/category/tag). +[3.3.1]: https://github.com/Parsely/wp-parsely/compare/3.3.0...3.3.1 [3.3.0]: https://github.com/Parsely/wp-parsely/compare/3.2.1...3.3.0 [3.2.1]: https://github.com/Parsely/wp-parsely/compare/3.2.0...3.2.1 [3.2.0]: https://github.com/Parsely/wp-parsely/compare/3.1.3...3.2.0 diff --git a/README.md b/README.md index 7819bd1b1..84585c469 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Parse.ly -Stable tag: 3.3.0 +Stable tag: 3.3.1 Requires at least: 5.0 Tested up to: 5.9.3 Requires PHP: 7.1 @@ -89,7 +89,7 @@ A sample `JSON-LD` meta tag and structured data for an article or post: **IMPORTANT:** The Recommendations Block is available only in WordPress 5.9 and later. -The plugin includes a Recommendations Block that uses the [Parse.ly API](https://www.parse.ly/help/api/recommendations#get-related) to showcase links to content on your site. More information about the Block [can be found here](https://github.com/Parsely/wp-parsely/blob/trunk/src/blocks/recommendations/README.md). +The plugin includes a Recommendations Block that uses the [Parse.ly API](https://www.parse.ly/help/api/recommendations#get-related) to showcase links to content on your site. More information about the Block [can be found here](https://www.parse.ly/help/integration/recommendations-block). ## Screenshots diff --git a/package-lock.json b/package-lock.json index 6133adacc..8b2360706 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wp-parsely", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wp-parsely", - "version": "3.3.0", + "version": "3.3.1", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/dom-ready": "^3.5.0", diff --git a/package.json b/package.json index 8be588fe7..45c34d033 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wp-parsely", - "version": "3.3.0", + "version": "3.3.1", "private": true, "description": "The Parse.ly plugin facilitates real-time and historical analytics to your content through a platform designed and built for digital publishing.", "author": "parsely, hbbtstar, jblz, mikeyarce, GaryJ, parsely_mike, pauarge", diff --git a/src/UI/class-metadata-renderer.php b/src/UI/class-metadata-renderer.php index 78f53f3cb..494304e42 100644 --- a/src/UI/class-metadata-renderer.php +++ b/src/UI/class-metadata-renderer.php @@ -113,7 +113,7 @@ public function render_metadata( string $meta_type ): void { // Insert JSON-LD or repeated metas. if ( 'json_ld' === $meta_type ) { - include plugin_dir_path( PARSELY_FILE ) . 'views/json-ld.php'; + echo ''; } else { // Assume `meta_type` is `repeated_metas`. $parsely_post_type = $this->parsely->convert_jsonld_to_parsely_type( $metadata['@type'] ); @@ -143,7 +143,7 @@ public function render_metadata( string $meta_type ): void { // Add any custom metadata. if ( isset( $metadata['custom_metadata'] ) ) { - include plugin_dir_path( PARSELY_FILE ) . 'views/custom-metadata.php'; + echo ''; } } diff --git a/src/UI/class-settings-page.php b/src/UI/class-settings-page.php index ad508ef35..7f66e6fa4 100644 --- a/src/UI/class-settings-page.php +++ b/src/UI/class-settings-page.php @@ -933,7 +933,9 @@ public function validate_options( array $input ): array { $input['disable_javascript'] = 'true' === $input['disable_javascript']; } - if ( 'true' !== $input['disable_autotrack'] && 'false' !== $input['disable_autotrack'] ) { + if ( ! isset( $input['disable_autotrack'] ) ) { + $input['disable_autotrack'] = $options['disable_autotrack']; + } elseif ( 'true' !== $input['disable_autotrack'] && 'false' !== $input['disable_autotrack'] ) { add_settings_error( Parsely::OPTIONS_KEY, 'disable_autotrack', diff --git a/src/blocks/recommendations/README.md b/src/blocks/recommendations/README.md deleted file mode 100644 index b5aafc756..000000000 --- a/src/blocks/recommendations/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# Parse.ly Recommendations Block - -The Recommendations Block is designed to showcase links to content on your site as provided by the [Parse.ly `/related` API endpoint](https://www.parse.ly/help/api/recommendations#get-related). You can add it in Posts, Pages, or nearly any other custom post type. The Block can also be used in Full Site Editing (FSE) mode or as a [Block-based Widget](https://wordpress.org/support/article/block-based-widgets-editor/). - -> Note: In wp-parsely version 4.0.0, the Recommendations Block will completely replace the Recommended Widget. If you're using the Widget, we highly recommend migrating to the Block as soon as possible. - -## Requirements - -The Block is available only in WordPress 5.9 or later. - -## How to use - -Inside the Block Editor, add the `Parse.ly Recommendations` Block via the [standard block controls](https://wordpress.org/support/article/adding-a-new-block/) and configure its [settings](#settings) using the sidebar. - -## Customizing the appearance - -The Block's appearance is minimal and inherits the active theme's styling. At this moment, the Block doesn't offer any styling preferences in its settings and its appearance is meant to be manipulated using CSS. - -## Settings - -### Title - -Change the Block's title by updating this setting. You can also make the title section completely vanish by specifying an empty value. - -### Maximum Results - -Specify the maximum number of recommendations to show. - -> Note: In certain cases, the number of results might be lower than this setting (especially if it is set to a large number). - -### Show Images - -Toggle this setting to enable or disable images in the results. - -### Image Style - -Use this setting to specify whether the Block should display the post's original image or the respective thumbnail provided by Parse.ly. Selecting the thumbnail option could be more performant but is not ideal for displaying large images. - -> Note: If you select the `Parse.ly thumbnail` setting, the image will appear big and distorted. You should use CSS to tailor it to your needs. - -### Sort Recommendations - -Sort the results by score or published date. - -### Boost - -Sub-sort the results by a variety of [available metrics](https://www.parse.ly/help/api/available-metrics). - -### Additional CSS class(es) (Advanced section) - -For styling purposes, you can specify one or more CSS classes that will be assigned to the block. - -## FAQ - -### I can't find the Block. - -Ensure that you're running WordPress version 5.9.0 or later, as the Block is unavailable in lower WordPress versions. - -### The Block's images are of low-quality, even though the `Image style` option is set to `Original` and the original image is large. - -To resolve this, you must perform the following steps in order: -1. Upgrade to [wp-parsely](https://wordpress.org/plugins/wp-parsely/) 3.3.0 or higher. -2. Contact [Parse.ly Support](https://www.parse.ly/support/) and request a recrawl, mentioning that you're experiencing an image quality issue with the Block. - -Once Parse.ly has performed the recrawl, the images loaded by the Block should be correct. diff --git a/tests/Integration/Endpoints/RestMetadataTest.php b/tests/Integration/Endpoints/RestMetadataTest.php index b3c9749cb..dfec5caf0 100644 --- a/tests/Integration/Endpoints/RestMetadataTest.php +++ b/tests/Integration/Endpoints/RestMetadataTest.php @@ -326,9 +326,7 @@ public function test_get_rendered_meta_json_ld(): void { $date = gmdate( 'Y-m-d\TH:i:s\Z', get_post_time( 'U', true, $post ) ); $meta_string = self::$rest->get_rendered_meta( 'json_ld' ); - $expected = ''; + $expected = ''; self::assertEquals( $expected, $meta_string ); } diff --git a/tests/Integration/UI/SettingsPageTest.php b/tests/Integration/UI/SettingsPageTest.php index 0c3a70347..a464c033d 100644 --- a/tests/Integration/UI/SettingsPageTest.php +++ b/tests/Integration/UI/SettingsPageTest.php @@ -139,7 +139,7 @@ public function test_trying_to_save_empty_array_tracking_settings_should_fail(): } /** - * Verify that trying to save tracking settings with an non-array value fails. + * Verify that trying to save tracking settings with a non-array value fails. * * @since 3.2.0 * @@ -159,6 +159,27 @@ public function test_trying_to_save_non_array_tracking_settings_should_fail(): v self::assertSame( $expected, $actual ); } + /** + * Verify that trying to save tracking settings without autotrack value pulls default. + * + * @since 3.2.0 + * + * @covers \Parsely\UI\Settings_Page::__construct + * @covers \Parsely\UI\Settings_Page::validate_options + * @covers \Parsely\UI\Settings_Page::get_logo_default + * @covers \Parsely\UI\Settings_Page::validate_options_post_type_tracking + * @uses \Parsely\Parsely::get_options + * @group ui + */ + public function test_saving_disable_autotrack_works_default_value(): void { + $expected = self::$parsely->get_options(); + $options = self::$parsely->get_options(); + + unset( $options['disable_autotrack'] ); + $actual = self::$settings_page->validate_options( $options ); + self::assertSame( $expected, $actual ); + } + /** * Make sure that the settings URL is correctly returned for single sites and multisites with and without a blog_id param. * diff --git a/tests/e2e/specs/front-end-metadata.spec.js b/tests/e2e/specs/front-end-metadata.spec.js index 7b55a840b..0aeffd12a 100644 --- a/tests/e2e/specs/front-end-metadata.spec.js +++ b/tests/e2e/specs/front-end-metadata.spec.js @@ -34,9 +34,7 @@ describe( 'Front end metadata insertion', () => { const content = await page.content(); - expect( content ).toContain( '' ); + expect( content ).toContain( '' ); expect( content ).not.toContain( ' page.waitForSelector( 'body.wp-admin' ); diff --git a/views/custom-metadata.php b/views/custom-metadata.php deleted file mode 100644 index 88ae35276..000000000 --- a/views/custom-metadata.php +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/views/json-ld.php b/views/json-ld.php deleted file mode 100644 index 22a937c7e..000000000 --- a/views/json-ld.php +++ /dev/null @@ -1,15 +0,0 @@ - - diff --git a/wp-parsely.php b/wp-parsely.php index b6b0aa73c..c08edec71 100644 --- a/wp-parsely.php +++ b/wp-parsely.php @@ -11,7 +11,7 @@ * Plugin Name: Parse.ly * Plugin URI: https://www.parse.ly/help/integration/wordpress * Description: This plugin makes it a snap to add Parse.ly tracking code and metadata to your WordPress blog. - * Version: 3.3.0 + * Version: 3.3.1 * Author: Parse.ly * Author URI: https://www.parse.ly * Text Domain: wp-parsely @@ -49,7 +49,7 @@ return; } -const PARSELY_VERSION = '3.3.0'; +const PARSELY_VERSION = '3.3.1'; const PARSELY_FILE = __FILE__; require __DIR__ . '/src/class-parsely.php';