Skip to content

Commit ff67c53

Browse files
committed
version bump
1 parent 5a84147 commit ff67c53

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

languages/webmention.pot

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# This file is distributed under the MIT.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Webmention 5.3.2\n"
5+
"Project-Id-Version: Webmention 5.3.3\n"
66
"Report-Msgid-Bugs-To: "
77
"https://wordpress.org/support/plugin/wordpress-webmention\n"
8-
"POT-Creation-Date: 2024-07-22 09:20:10+00:00\n"
8+
"POT-Creation-Date: 2024-08-19 08:12:05+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"

readme.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Tags:** webmention, pingback, trackback, linkback, indieweb
55
**Requires at least:** 4.9
66
**Tested up to:** 6.6
7-
**Stable tag:** 5.3.2
7+
**Stable tag:** 5.3.3
88
**Requires PHP:** 7.0
99
**License:** MIT
1010
**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
100100

101101
Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention).
102102

103+
### 5.3.3 ###
104+
105+
* Load CSS also if comments are closed, because Webmentions ignore that setting
106+
* Improve `version()` method
107+
103108
### 5.3.2 ###
104109

105110
* Several small fixes

readme.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://notiz.blog/donate/
44
Tags: webmention, pingback, trackback, linkback, indieweb
55
Requires at least: 4.9
66
Tested up to: 6.6
7-
Stable tag: 5.3.2
7+
Stable tag: 5.3.3
88
Requires PHP: 7.0
99
License: MIT
1010
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
100100

101101
Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention).
102102

103+
= 5.3.3 =
104+
105+
* Load CSS also if comments are closed, because Webmentions ignore that setting
106+
* Improve `version()` method
107+
103108
= 5.3.2 =
104109

105110
* Several small fixes

webmention.php

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Webmention support for WordPress posts
66
* Author: Matthias Pfefferle
77
* Author URI: https://notiz.blog/
8-
* Version: 5.3.2
8+
* Version: 5.3.3
99
* License: MIT
1010
* License URI: https://opensource.org/licenses/MIT
1111
* Text Domain: webmention
@@ -16,6 +16,8 @@
1616

1717
use WP_CLI;
1818

19+
define( 'WEBMENTION_VERSION', '5.3.3' );
20+
1921
defined( 'WEBMENTION_ALWAYS_SHOW_HEADERS' ) || define( 'WEBMENTION_ALWAYS_SHOW_HEADERS', 0 );
2022
defined( 'WEBMENTION_COMMENT_APPROVE' ) || define( 'WEBMENTION_COMMENT_APPROVE', 0 );
2123
defined( 'WEBMENTION_COMMENT_TYPE' ) || define( 'WEBMENTION_COMMENT_TYPE', 'webmention' );
@@ -50,6 +52,10 @@
5052
* Plugin Version Number used for caching.
5153
*/
5254
function version() {
55+
if ( defined( 'WEBMENTION_VERSION' ) ) {
56+
return WEBMENTION_VERSION;
57+
}
58+
5359
$meta = get_plugin_meta( array( 'Version' => 'Version' ) );
5460

5561
return $meta['Version'];
@@ -165,7 +171,7 @@ function activation() {
165171
* Add CSS and JavaScript
166172
*/
167173
function enqueue_scripts() {
168-
if ( \is_singular() && \comments_open() ) {
174+
if ( \is_singular() ) {
169175
wp_enqueue_style( 'webmention', plugin_dir_url( __FILE__ ) . 'assets/css/webmention.css', array(), version() );
170176
}
171177
}

0 commit comments

Comments
 (0)