WP Meta SEO - Version 3.6.1

Version Description

  • Fix : Fatal error on frontend on certain configuration
Download this release

Release Info

Developer JoomUnited
Plugin Icon 128x128 WP Meta SEO
Version 3.6.1
Comparing to
See all releases

Code changes from version 3.6.0 to 3.6.1

Files changed (3) hide show
  1. languages/wp-meta-seo-en_US.mo +0 -0
  2. readme.txt +4 -1
  3. wp-meta-seo.php +9 -9
languages/wp-meta-seo-en_US.mo CHANGED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: JoomUnited
3
  Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
  Requires at least: 4.0
5
  Tested up to: 4.9.0
6
- Stable tag: 3.6.0
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -272,6 +272,9 @@ It could be! if you have a lot of pages that need to be indexed with no specific
272
 
273
  == Changelog ==
274
 
 
 
 
275
  = 3.6.0 =
276
  * Add : Full code reformating for better performance and code comments
277
  * Add : Using PHPCS to make standard definitions
3
  Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
  Requires at least: 4.0
5
  Tested up to: 4.9.0
6
+ Stable tag: 3.6.1
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
272
 
273
  == Changelog ==
274
 
275
+ = 3.6.1 =
276
+ * Fix : Fatal error on frontend on certain configuration
277
+
278
  = 3.6.0 =
279
  * Add : Full code reformating for better performance and code comments
280
  * Add : Using PHPCS to make standard definitions
wp-meta-seo.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WP Meta SEO
5
  * Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
  * Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
- * Version: 3.6.0
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
@@ -37,8 +37,8 @@ if (!function_exists('add_action')) {
37
  }
38
 
39
  if (version_compare(PHP_VERSION, '5.3', '<')) {
40
- if (!function_exists('wpms_disable_plugin')) {
41
- function wpms_disable_plugin()
42
  {
43
  if (current_user_can('activate_plugins') && is_plugin_active(plugin_basename(__FILE__))) {
44
  deactivate_plugins(__FILE__);
@@ -47,8 +47,8 @@ if (version_compare(PHP_VERSION, '5.3', '<')) {
47
  }
48
  }
49
 
50
- if (!function_exists('wpms_show_error')) {
51
- function wpms_show_error()
52
  {
53
  echo '<div class="error"><p><strong>WP Meta SEO</strong>
54
  need at least PHP 5.3 version, please update php before installing the plugin.</p></div>';
@@ -56,8 +56,8 @@ if (version_compare(PHP_VERSION, '5.3', '<')) {
56
  }
57
 
58
  //Add actions
59
- add_action('admin_init', 'wpms_disable_plugin');
60
- add_action('admin_notices', 'wpms_show_error');
61
 
62
  //Do not load anything more
63
  return;
@@ -99,7 +99,7 @@ if (!defined('WPMSEO_VERSION')) {
99
  /**
100
  * plugin version
101
  */
102
- define('WPMSEO_VERSION', '3.6.0');
103
  }
104
 
105
  if (!defined('WPMS_CLIENTID')) {
@@ -299,7 +299,7 @@ if (is_admin()) {
299
  }
300
 
301
  if ($meta_description == '') {
302
- $content = apply_filters('the_content', $wp_query->post->post_content);
303
  $content = trim(strip_tags($content));
304
  if (strlen($content) > 156) {
305
  $meta_description = substr($content, 0, 152) . ' ...';
4
  * Plugin Name: WP Meta SEO
5
  * Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
  * Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
+ * Version: 3.6.1
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
37
  }
38
 
39
  if (version_compare(PHP_VERSION, '5.3', '<')) {
40
+ if (!function_exists('wpmsDisablePlugin')) {
41
+ function wpmsDisablePlugin()
42
  {
43
  if (current_user_can('activate_plugins') && is_plugin_active(plugin_basename(__FILE__))) {
44
  deactivate_plugins(__FILE__);
47
  }
48
  }
49
 
50
+ if (!function_exists('wpmsShowError')) {
51
+ function wpmsShowError()
52
  {
53
  echo '<div class="error"><p><strong>WP Meta SEO</strong>
54
  need at least PHP 5.3 version, please update php before installing the plugin.</p></div>';
56
  }
57
 
58
  //Add actions
59
+ add_action('admin_init', 'wpmsDisablePlugin');
60
+ add_action('admin_notices', 'wpmsShowError');
61
 
62
  //Do not load anything more
63
  return;
99
  /**
100
  * plugin version
101
  */
102
+ define('WPMSEO_VERSION', '3.6.1');
103
  }
104
 
105
  if (!defined('WPMS_CLIENTID')) {
299
  }
300
 
301
  if ($meta_description == '') {
302
+ $content = strip_shortcodes($wp_query->post->post_content);
303
  $content = trim(strip_tags($content));
304
  if (strlen($content) > 156) {
305
  $meta_description = substr($content, 0, 152) . ' ...';