Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Aug 19, 2024
1 parent 5a84147 commit ff67c53
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions languages/webmention.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions webmention.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' );
Expand Down Expand Up @@ -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'];
Expand Down Expand Up @@ -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() );
}
}
Expand Down

0 comments on commit ff67c53

Please sign in to comment.