diff --git a/.gitattributes b/.gitattributes index 2465bcc..1cd857d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,6 +10,8 @@ # Build and config files /bin/ export-ignore /composer.json export-ignore +/composer.lock export-ignore +/package-lock.json export-ignore /package.json export-ignore /phpcs.xml export-ignore /phpunit.xml.dist export-ignore diff --git a/.wordpress-org/banner.psd b/.wordpress-org/banner.psd deleted file mode 100644 index 39bd179..0000000 Binary files a/.wordpress-org/banner.psd and /dev/null differ diff --git a/composer.json b/composer.json index f79be8e..1845e13 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "pfefferle/wordpress-opengraph", "description": "Adds Open Graph metadata to your posts and pages so that they look great when shared on sites like Facebook and Twitter.", "type": "wordpress-plugin", - "license": "Apache License, Version 2.0", + "license": "Apache-2.0", "require": { "php": ">=7.4", "composer/installers": "^1.0 || ^2.0" @@ -21,9 +21,6 @@ "config": { "allow-plugins": true }, - "allow-plugins": { - "composer/installers": true - }, "extra": { "installer-name": "opengraph" }, diff --git a/opengraph.php b/opengraph.php index 6316b89..e4f6872 100644 --- a/opengraph.php +++ b/opengraph.php @@ -5,9 +5,9 @@ * Description: Adds Open Graph metadata to your pages * Author: Will Norris & Matthias Pfefferle * Author URI: https://github.com/pfefferle/wordpress-opengraph - * Version: 2.0.2 + * Version: 3.0.0 * License: Apache License, Version 2.0 - * License URI: http://www.apache.org/licenses/LICENSE-2.0.html + * License URI: https://www.apache.org/licenses/LICENSE-2.0.html * Requires at least: 6.2 * Requires PHP: 7.4 * Text Domain: opengraph diff --git a/package.json b/package.json index bb43e5f..a16af4d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "wordpress-opengraph", "description": "Adds Open Graph metadata to WordPress", "author": "Matthias Pfefferle", - "license": "MIT", + "license": "Apache-2.0", "devDependencies": { "@wordpress/env": "^11.8.1" }, diff --git a/readme.md b/readme.md index 53eb724..25ff65c 100644 --- a/readme.md +++ b/readme.md @@ -4,9 +4,9 @@ - Tags: social, opengraph, ogp, facebook - Requires at least: 6.2 - Tested up to: 7.1 -- Stable tag: 2.0.2 +- Stable tag: 3.0.0 - Requires PHP: 7.4 -- License: Apache License, 2.0 +- License: Apache License, Version 2.0 - License URI: https://www.apache.org/licenses/LICENSE-2.0.html @@ -64,6 +64,19 @@ The plugin populates the meta 'name' attribute alongside the 'property' attribut Project maintained on github at [pfefferle/wordpress-opengraph](https://github.com/pfefferle/wordpress-opengraph). +### 3.0.0 (Sep 18, 2026) + + - simpler image handling: one pass over the post content, catches gallery, media & text and nested block images + - new `opengraph_image_sources` filter to add or remove image sources + - the property filters get the metadata collected so far as second argument + - twitter card is `summary_large_image` whenever the post has an image, `summary` for the fallback images + - use the current page of a multipage post and the `` teaser for the description (#9) + - fixed merging into an existing `prefix` attribute + - fixed a fatal error with The Events Calendar (#39) + - **breaking:** removed `opengraph_block_image`, `opengraph_parsed_image`, `opengraph_attached_image`, `opengraph_ensure_max_image` and `opengraph_site_supports_blocks` (and its filter), use the `opengraph_image_sources` filter instead + - minimum WordPress version is now 6.2 + - added phpunit tests + ### 2.0.2 (Feb 25, 2025) - Add a constant to easily change the max number of images to be included in the OpenGraph meta tags.