Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit ed8aa46

Browse files
committed
Version bump and dependency updates
1 parent a5d17ac commit ed8aa46

File tree

6 files changed

+89
-17
lines changed

6 files changed

+89
-17
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**Requires at least:** 4.8.2
66
**Requires PHP:** 5.4
77
**Tested up to:** 4.9.7
8-
**Stable tag:** 3.8.0
8+
**Stable tag:** 3.8.1
99
**License:** MIT
1010
**License URI:** http://opensource.org/licenses/MIT
1111

@@ -87,7 +87,10 @@ The plugin uses a locally cached version of the mystery icon normally provided b
8787
Project actively developed on Github at [pfefferle/wordpress-semantic-linkbacks](https://github.com/pfefferle/wordpress-semantic-linkbacks). Please file support issues there.
8888

8989
### 3.8.1 ###
90-
* All follow post as type
90+
* Add follow post as type
91+
* Add warning to settings page if php-mbstring not installed
92+
* Return false in Emoji function if php-mbstring not installed
93+
* Add approve link to emails sent
9194

9295
### 3.8.0 ###
9396

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"php": ">=5.3.0",
1717
"composer/installers": "~1.0",
18-
"mf2/mf2": "^0.4.2",
18+
"mf2/mf2": "^0.4.3",
1919
"p3k/emoji-detector": "^0.2.0"
2020
},
2121
"require-dev": {

composer.lock

Lines changed: 68 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/class-linkbacks-walker-comment.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ protected static function get_comment_author_link( $comment_id = 0 ) {
5353
}
5454

5555
protected static function is_reaction( $comment ) {
56+
// If this library is not installed then emoji detection will not work
57+
if ( ! function_exists( 'mb_internal_encoding' ) ) {
58+
return false;
59+
}
5660
return Emoji\is_single_emoji( trim( wp_strip_all_tags( $comment->comment_content ) ) ) && empty( $comment->comment_parent );
5761
}
5862

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: webmention, pingback, trackback, linkback, microformats, comments, indiewe
55
Requires at least: 4.8.2
66
Requires PHP: 5.4
77
Tested up to: 4.9.7
8-
Stable tag: 3.8.0
8+
Stable tag: 3.8.1
99
License: MIT
1010
License URI: http://opensource.org/licenses/MIT
1111

@@ -87,7 +87,10 @@ The plugin uses a locally cached version of the mystery icon normally provided b
8787
Project actively developed on Github at [pfefferle/wordpress-semantic-linkbacks](https://github.com/pfefferle/wordpress-semantic-linkbacks). Please file support issues there.
8888

8989
= 3.8.1 =
90-
* All follow post as type
90+
* Add follow post as type
91+
* Add warning to settings page if php-mbstring not installed
92+
* Return false in Emoji function if php-mbstring not installed
93+
* Add approve link to emails sent
9194

9295
= 3.8.0 =
9396

semantic-linkbacks.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ public static function plugin_textdomain() {
132132
*/
133133
public static function settings() {
134134
_e( 'For webmentions that do not have avatars you can pick from several locally served default avatars in the Discussion Settings', 'semantic-linkbacks' );
135+
136+
if ( ! function_exists( 'mb_internal_encoding' ) ) {
137+
?>
138+
<p class="notice notice-warning"><?php _e( 'This server does not have the php-mbstring package installed and Emoji reactions have been disabled.', 'semantic-linkbacks' ); ?></p>
139+
<?php
140+
}
135141
}
136142

137143
/**

0 commit comments

Comments
 (0)