Schema - Version 1.7.8.5

Version Description

  • Fixed: Use full headline instead of truncated version.
  • Update: Pumped tested WordPress version to 5.6.1 release.
Download this release

Release Info

Developer hishaman
Plugin Icon 128x128 Schema
Version 1.7.8.5
Comparing to
See all releases

Code changes from version 1.7.8.6 to 1.7.8.5

includes/json/schema-output.php CHANGED
@@ -250,13 +250,10 @@ function schema_wp_get_schema_json_prepare( $post_id = null ) {
250
  // Get publisher array
251
  $publisher = schema_wp_get_publisher_array();
252
 
253
- // Truncate headline
254
- $headline = schema_wp_get_truncate_to_word( $content_post->post_title );
255
-
256
  //
257
  // Putting all together
258
  //
259
- $json["headline"] = apply_filters ( 'schema_wp_filter_headline', $headline );
260
 
261
  $json['description'] = $description;
262
  $json['permalink'] = $permalink;
250
  // Get publisher array
251
  $publisher = schema_wp_get_publisher_array();
252
 
 
 
 
253
  //
254
  // Putting all together
255
  //
256
+ $json["headline"] = apply_filters ( 'schema_wp_filter_headline', $content_post->post_title );
257
 
258
  $json['description'] = $description;
259
  $json['permalink'] = $permalink;
includes/misc-functions.php CHANGED
@@ -947,19 +947,3 @@ function schema_wp_is_blog() {
947
 
948
  return false;
949
  }
950
-
951
- /**
952
- * Truncate a string of content to 110 characters, respecting full words.
953
- *
954
- * @since 1.7.1
955
- * @return string
956
- */
957
- function schema_wp_get_truncate_to_word( $string, $limit = 110, $end = '...' ) {
958
-
959
- $limit = apply_filters( 'schema_wp_truncate_to_word_limit', $limit );
960
- $limit = $limit - strlen($end); // Take into account $end string into the limit
961
- $string = substr($string, 0, $limit);
962
- $string = substr($string, 0, strrpos($string, ' ')) . $end;
963
-
964
- return $string;
965
- }
947
 
948
  return false;
949
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: schema, schema.org, rich snippets, structured data, json-ld, json, google,
5
  Requires at least: 4.0
6
  Tested up to: 5.6.1
7
  Requires PHP: 5.4
8
- Stable tag: 1.7.8.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -223,9 +223,6 @@ Yes, Schema plugin will detect AMP plugin and output a more complete and valid s
223
 
224
  == Changelog ==
225
 
226
- = 1.7.8.6 =
227
- * Fixed: Revert to truncate headline to 110 characters, avoid markup error.
228
-
229
  = 1.7.8.5 =
230
  * Fixed: Use full headline instead of truncated version.
231
  * Update: Pumped tested WordPress version to 5.6.1 release.
5
  Requires at least: 4.0
6
  Tested up to: 5.6.1
7
  Requires PHP: 5.4
8
+ Stable tag: 1.7.8.5
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
223
 
224
  == Changelog ==
225
 
 
 
 
226
  = 1.7.8.5 =
227
  * Fixed: Use full headline instead of truncated version.
228
  * Update: Pumped tested WordPress version to 5.6.1 release.
schema.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The next generation of Structured Data.
6
  * Author: Hesham
7
  * Author URI: http://zebida.com
8
- * Version: 1.7.8.6
9
  * Text Domain: schema-wp
10
  * Domain Path: /languages
11
  * License: GPLv2 or later
@@ -52,7 +52,7 @@ final class Schema_WP {
52
  *
53
  * @since 1.0
54
  */
55
- private $version = '1.7.8.6';
56
 
57
  /**
58
  * The settings instance variable
5
  * Description: The next generation of Structured Data.
6
  * Author: Hesham
7
  * Author URI: http://zebida.com
8
+ * Version: 1.7.8.5
9
  * Text Domain: schema-wp
10
  * Domain Path: /languages
11
  * License: GPLv2 or later
52
  *
53
  * @since 1.0
54
  */
55
+ private $version = '1.7.8.5';
56
 
57
  /**
58
  * The settings instance variable