From ff67c5347af43e07a3bd230fa6ccc0c9e35c28b7 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 19 Aug 2024 10:14:21 +0200 Subject: [PATCH] version bump --- languages/webmention.pot | 4 ++-- readme.md | 7 ++++++- readme.txt | 7 ++++++- webmention.php | 10 ++++++++-- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/languages/webmention.pot b/languages/webmention.pot index 3b8e163..eeb45a5 100644 --- a/languages/webmention.pot +++ b/languages/webmention.pot @@ -2,10 +2,10 @@ # This file is distributed under the MIT. msgid "" msgstr "" -"Project-Id-Version: Webmention 5.3.2\n" +"Project-Id-Version: Webmention 5.3.3\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/wordpress-webmention\n" -"POT-Creation-Date: 2024-07-22 09:20:10+00:00\n" +"POT-Creation-Date: 2024-08-19 08:12:05+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/readme.md b/readme.md index 3806723..2d11081 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ **Tags:** webmention, pingback, trackback, linkback, indieweb **Requires at least:** 4.9 **Tested up to:** 6.6 -**Stable tag:** 5.3.2 +**Stable tag:** 5.3.3 **Requires PHP:** 7.0 **License:** MIT **License URI:** https://opensource.org/licenses/MIT @@ -100,6 +100,11 @@ While not all display options can be settings, we are looking to provide some si Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention). +### 5.3.3 ### + +* Load CSS also if comments are closed, because Webmentions ignore that setting +* Improve `version()` method + ### 5.3.2 ### * Several small fixes diff --git a/readme.txt b/readme.txt index 4c410dc..0494a00 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://notiz.blog/donate/ Tags: webmention, pingback, trackback, linkback, indieweb Requires at least: 4.9 Tested up to: 6.6 -Stable tag: 5.3.2 +Stable tag: 5.3.3 Requires PHP: 7.0 License: MIT License URI: https://opensource.org/licenses/MIT @@ -100,6 +100,11 @@ While not all display options can be settings, we are looking to provide some si Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention). += 5.3.3 = + +* Load CSS also if comments are closed, because Webmentions ignore that setting +* Improve `version()` method + = 5.3.2 = * Several small fixes diff --git a/webmention.php b/webmention.php index c8842d2..a9e6083 100755 --- a/webmention.php +++ b/webmention.php @@ -5,7 +5,7 @@ * Description: Webmention support for WordPress posts * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ - * Version: 5.3.2 + * Version: 5.3.3 * License: MIT * License URI: https://opensource.org/licenses/MIT * Text Domain: webmention @@ -16,6 +16,8 @@ use WP_CLI; +define( 'WEBMENTION_VERSION', '5.3.3' ); + defined( 'WEBMENTION_ALWAYS_SHOW_HEADERS' ) || define( 'WEBMENTION_ALWAYS_SHOW_HEADERS', 0 ); defined( 'WEBMENTION_COMMENT_APPROVE' ) || define( 'WEBMENTION_COMMENT_APPROVE', 0 ); defined( 'WEBMENTION_COMMENT_TYPE' ) || define( 'WEBMENTION_COMMENT_TYPE', 'webmention' ); @@ -50,6 +52,10 @@ * Plugin Version Number used for caching. */ function version() { + if ( defined( 'WEBMENTION_VERSION' ) ) { + return WEBMENTION_VERSION; + } + $meta = get_plugin_meta( array( 'Version' => 'Version' ) ); return $meta['Version']; @@ -165,7 +171,7 @@ function activation() { * Add CSS and JavaScript */ function enqueue_scripts() { - if ( \is_singular() && \comments_open() ) { + if ( \is_singular() ) { wp_enqueue_style( 'webmention', plugin_dir_url( __FILE__ ) . 'assets/css/webmention.css', array(), version() ); } }