All in One SEO Pack - Version 2.4.4

Version Description

Download this release

Release Info

Developer hallsofmontezuma
Plugin Icon 128x128 All in One SEO Pack
Version 2.4.4
Comparing to
See all releases

Code changes from version 2.4.3.1 to 2.4.4

admin/aioseop_module_class.php CHANGED
@@ -2258,6 +2258,9 @@ if ( ! class_exists( 'All_in_One_SEO_Pack_Module' ) ) {
2258
  $size = $options['size'];
2259
  } elseif ( isset( $options['rows'] ) && isset( $options['cols'] ) ) {
2260
  $size = $options['rows'] * $options['cols'];
 
 
 
2261
  }
2262
  if ( isset( $options['count_desc'] ) ) {
2263
  $count_desc = $options['count_desc'];
2258
  $size = $options['size'];
2259
  } elseif ( isset( $options['rows'] ) && isset( $options['cols'] ) ) {
2260
  $size = $options['rows'] * $options['cols'];
2261
+ }
2262
+ if ( 'Description' === $options['name'] && isset( $options['name'] ) ) {
2263
+ $size = ( $size - 90 ) . '-' . $size;
2264
  }
2265
  if ( isset( $options['count_desc'] ) ) {
2266
  $count_desc = $options['count_desc'];
aioseop_class.php CHANGED
@@ -20,7 +20,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
20
  var $version = AIOSEOP_VERSION;
21
 
22
  // Max numbers of chars in auto-generated description.
23
- var $maximum_description_length = 160;
24
 
25
  // Minimum number of chars an excerpt should be so that it can be used as description.
26
  var $minimum_description_length = 1;
@@ -56,6 +56,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
56
  * All_in_One_SEO_Pack constructor.
57
  *
58
  * @since 2.3.14 #921 More google analytics options added.
 
59
  */
60
  function __construct() {
61
  global $aioseop_options;
@@ -168,7 +169,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
168
  'description_format' => __( 'This controls the format of Meta Descriptions.The following macros are supported:', 'all-in-one-seo-pack' ) .
169
  '<ul><li>' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '</li><li>' .
170
  __( '%blog_description% - Your blog description', 'all-in-one-seo-pack' ) . '</li><li>' .
171
- __( '%description% - This outputs the description you write for each page/post or the autogenerated description, if you have that option enabled. Auto-generated descriptions are generated from the Post Excerpt, or the first 160 characters of the post content if there is no Post Excerpt.', 'all-in-one-seo-pack' ) . '</li><li>' .
172
  __( '%post_title% - The original title of the post', 'all-in-one-seo-pack' ) . '</li><li>' .
173
  __( '%wp_title% - The original WordPress title, e.g. post_title for posts', 'all-in-one-seo-pack' ) . '</li><li>' .
174
  __( '%current_date% - The current date (localized)', 'all-in-one-seo-pack' ) . '</li><li>' .
@@ -226,7 +227,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
226
  'paginated_noindex' => __( 'Check this to ask search engines not to index paginated pages/posts. Useful for avoiding duplicate content.', 'all-in-one-seo-pack' ),
227
  'paginated_nofollow' => __( 'Check this to ask search engines not to follow links from paginated pages/posts. Useful for avoiding duplicate content.', 'all-in-one-seo-pack' ),
228
  'skip_excerpt' => __( "This option will auto generate your meta descriptions from your post content instead of your post excerpt. This is useful if you want to use your content for your autogenerated meta descriptions instead of the excerpt. WooCommerce users should read the documentation regarding this setting.", 'all-in-one-seo-pack' ),
229
- 'generate_descriptions' => __( 'Check this and your Meta Descriptions for any Post Type will be auto-generated using the Post Excerpt, or the first 160 characters of the post content if there is no Post Excerpt. You can overwrite any auto-generated Meta Description by editing the post or page.', 'all-in-one-seo-pack' ),
230
  'run_shortcodes' => __( 'Check this and shortcodes will get executed for descriptions auto-generated from content.', 'all-in-one-seo-pack' ),
231
  'hide_paginated_descriptions' => __( 'Check this and your Meta Descriptions will be removed from page 2 or later of paginated content.', 'all-in-one-seo-pack' ),
232
  'dont_truncate_descriptions' => __( 'Check this to prevent your Description from being truncated regardless of its length.', 'all-in-one-seo-pack' ),
@@ -366,7 +367,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
366
  'sanitize' => 'text',
367
  'count' => true,
368
  'cols' => 80,
369
- 'rows' => 2,
370
  'condshow' => array( 'aiosp_use_static_home_info' => 0 ),
371
  ),
372
  'togglekeywords' => array(
@@ -967,7 +968,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
967
  'type' => 'textarea',
968
  'count' => true,
969
  'cols' => 80,
970
- 'rows' => 2,
971
  ),
972
 
973
  'keywords' => array(
@@ -2471,11 +2472,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
2471
  $description = $this->internationalize( $description );
2472
  }
2473
 
2474
- return apply_filters(
2475
- 'aioseop_description',
2476
- $description,
2477
- empty( $aioseop_options['aiosp_dont_truncate_descriptions'] )
2478
- );
2479
  }
2480
 
2481
  /**
@@ -2537,6 +2534,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
2537
  * @since 2.3.13 #899 Fixes non breacking space, applies filter "aioseop_description".
2538
  * @since 2.3.14 #932 Removes filter "aioseop_description".
2539
  * @since 2.4 #951 Removes "wp_strip_all_tags" and "trim_excerpt_without_filters", they are done later in filter.
 
2540
  *
2541
  * @param object $post Post object.
2542
  *
@@ -2554,15 +2552,20 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
2554
  }
2555
  if ( ! $description ) {
2556
  if ( empty( $aioseop_options['aiosp_skip_excerpt'] ) ) {
2557
- $description = $this->trim_excerpt_without_filters_full_length( $this->internationalize( $post->post_excerpt ) );
2558
  }
2559
  if ( ! $description && isset( $aioseop_options['aiosp_generate_descriptions'] ) && $aioseop_options['aiosp_generate_descriptions'] ) {
2560
  $content = $post->post_content;
2561
  if ( ! empty( $aioseop_options['aiosp_run_shortcodes'] ) ) {
2562
  $content = do_shortcode( $content );
2563
  }
2564
- $description =$this->internationalize( $content );
2565
  }
 
 
 
 
 
2566
  }
2567
 
2568
  return $description;
@@ -2575,7 +2578,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
2575
  *
2576
  * @return string
2577
  */
2578
- function trim_excerpt_without_filters_full_length( $text ) {
2579
  $text = str_replace( ']]>', ']]&gt;', $text );
2580
  $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text );
2581
  $text = wp_strip_all_tags( $text );
20
  var $version = AIOSEOP_VERSION;
21
 
22
  // Max numbers of chars in auto-generated description.
23
+ var $maximum_description_length = 320;
24
 
25
  // Minimum number of chars an excerpt should be so that it can be used as description.
26
  var $minimum_description_length = 1;
56
  * All_in_One_SEO_Pack constructor.
57
  *
58
  * @since 2.3.14 #921 More google analytics options added.
59
+ * @since 2.4.0 #1395 Longer Meta Descriptions.
60
  */
61
  function __construct() {
62
  global $aioseop_options;
169
  'description_format' => __( 'This controls the format of Meta Descriptions.The following macros are supported:', 'all-in-one-seo-pack' ) .
170
  '<ul><li>' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '</li><li>' .
171
  __( '%blog_description% - Your blog description', 'all-in-one-seo-pack' ) . '</li><li>' .
172
+ __( '%description% - This outputs the description you write for each page/post or the autogenerated description, if you have that option enabled. Auto-generated descriptions are generated from the Post Excerpt, or the first 320 characters of the post content if there is no Post Excerpt.', 'all-in-one-seo-pack' ) . '</li><li>' .
173
  __( '%post_title% - The original title of the post', 'all-in-one-seo-pack' ) . '</li><li>' .
174
  __( '%wp_title% - The original WordPress title, e.g. post_title for posts', 'all-in-one-seo-pack' ) . '</li><li>' .
175
  __( '%current_date% - The current date (localized)', 'all-in-one-seo-pack' ) . '</li><li>' .
227
  'paginated_noindex' => __( 'Check this to ask search engines not to index paginated pages/posts. Useful for avoiding duplicate content.', 'all-in-one-seo-pack' ),
228
  'paginated_nofollow' => __( 'Check this to ask search engines not to follow links from paginated pages/posts. Useful for avoiding duplicate content.', 'all-in-one-seo-pack' ),
229
  'skip_excerpt' => __( "This option will auto generate your meta descriptions from your post content instead of your post excerpt. This is useful if you want to use your content for your autogenerated meta descriptions instead of the excerpt. WooCommerce users should read the documentation regarding this setting.", 'all-in-one-seo-pack' ),
230
+ 'generate_descriptions' => __( 'Check this and your Meta Descriptions for any Post Type will be auto-generated using the Post Excerpt, or the first 320 characters of the post content if there is no Post Excerpt. You can overwrite any auto-generated Meta Description by editing the post or page.', 'all-in-one-seo-pack' ),
231
  'run_shortcodes' => __( 'Check this and shortcodes will get executed for descriptions auto-generated from content.', 'all-in-one-seo-pack' ),
232
  'hide_paginated_descriptions' => __( 'Check this and your Meta Descriptions will be removed from page 2 or later of paginated content.', 'all-in-one-seo-pack' ),
233
  'dont_truncate_descriptions' => __( 'Check this to prevent your Description from being truncated regardless of its length.', 'all-in-one-seo-pack' ),
367
  'sanitize' => 'text',
368
  'count' => true,
369
  'cols' => 80,
370
+ 'rows' => 4,
371
  'condshow' => array( 'aiosp_use_static_home_info' => 0 ),
372
  ),
373
  'togglekeywords' => array(
968
  'type' => 'textarea',
969
  'count' => true,
970
  'cols' => 80,
971
+ 'rows' => 4,
972
  ),
973
 
974
  'keywords' => array(
2472
  $description = $this->internationalize( $description );
2473
  }
2474
 
2475
+ return $description;
 
 
 
 
2476
  }
2477
 
2478
  /**
2534
  * @since 2.3.13 #899 Fixes non breacking space, applies filter "aioseop_description".
2535
  * @since 2.3.14 #932 Removes filter "aioseop_description".
2536
  * @since 2.4 #951 Removes "wp_strip_all_tags" and "trim_excerpt_without_filters", they are done later in filter.
2537
+ * @since 2.4 #1395 Longer Meta Descriptions & don't trim manual Descriptions.
2538
  *
2539
  * @param object $post Post object.
2540
  *
2552
  }
2553
  if ( ! $description ) {
2554
  if ( empty( $aioseop_options['aiosp_skip_excerpt'] ) ) {
2555
+ $description = $this->trim_text_without_filters_full_length( $this->internationalize( $post->post_excerpt ) );
2556
  }
2557
  if ( ! $description && isset( $aioseop_options['aiosp_generate_descriptions'] ) && $aioseop_options['aiosp_generate_descriptions'] ) {
2558
  $content = $post->post_content;
2559
  if ( ! empty( $aioseop_options['aiosp_run_shortcodes'] ) ) {
2560
  $content = do_shortcode( $content );
2561
  }
2562
+ $description = $this->trim_text_without_filters_full_length( $this->internationalize( $content ) );
2563
  }
2564
+ $description = apply_filters(
2565
+ 'aioseop_description',
2566
+ $description,
2567
+ empty( $aioseop_options['aiosp_dont_truncate_descriptions'] )
2568
+ );
2569
  }
2570
 
2571
  return $description;
2578
  *
2579
  * @return string
2580
  */
2581
+ function trim_text_without_filters_full_length( $text ) {
2582
  $text = str_replace( ']]>', ']]&gt;', $text );
2583
  $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text );
2584
  $text = wp_strip_all_tags( $text );
all_in_one_seo_pack.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: All In One SEO Pack
4
  Plugin URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
5
  Description: Out-of-the-box SEO for your WordPress blog. Features like XML Sitemaps, SEO for custom post types, SEO for blogs or business sites, SEO for ecommerce sites, and much more. More than 30 million downloads since 2007.
6
- Version: 2.4.3.1
7
  Author: Michael Torbert
8
  Author URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
9
  Text Domain: all-in-one-seo-pack
@@ -31,14 +31,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
31
  * The original WordPress SEO plugin.
32
  *
33
  * @package All-in-One-SEO-Pack
34
- * @version 2.4.3.1
35
  */
36
 
37
  if ( ! defined( 'AIOSEOPPRO' ) ) {
38
  define( 'AIOSEOPPRO', false );
39
  }
40
  if ( ! defined( 'AIOSEOP_VERSION' ) ) {
41
- define( 'AIOSEOP_VERSION', '2.4.3.1' );
42
  }
43
  global $aioseop_plugin_name;
44
  $aioseop_plugin_name = 'All in One SEO Pack';
3
  Plugin Name: All In One SEO Pack
4
  Plugin URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
5
  Description: Out-of-the-box SEO for your WordPress blog. Features like XML Sitemaps, SEO for custom post types, SEO for blogs or business sites, SEO for ecommerce sites, and much more. More than 30 million downloads since 2007.
6
+ Version: 2.4.4
7
  Author: Michael Torbert
8
  Author URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
9
  Text Domain: all-in-one-seo-pack
31
  * The original WordPress SEO plugin.
32
  *
33
  * @package All-in-One-SEO-Pack
34
+ * @version 2.4.4
35
  */
36
 
37
  if ( ! defined( 'AIOSEOPPRO' ) ) {
38
  define( 'AIOSEOPPRO', false );
39
  }
40
  if ( ! defined( 'AIOSEOP_VERSION' ) ) {
41
+ define( 'AIOSEOP_VERSION', '2.4.4' );
42
  }
43
  global $aioseop_plugin_name;
44
  $aioseop_plugin_name = 'All in One SEO Pack';
js/modules/aioseop_module.js CHANGED
@@ -72,7 +72,7 @@ function countChars( field, cntfield ) {
72
  cntfield.style.color = "#fff";
73
  cntfield.style.backgroundColor = "#f00";
74
  } else {
75
- if ( cntfield.value > ( field_size - 6 ) ) {
76
  cntfield.style.color = "#515151";
77
  cntfield.style.backgroundColor = "#ff0";
78
  } else {
72
  cntfield.style.color = "#fff";
73
  cntfield.style.backgroundColor = "#f00";
74
  } else {
75
+ if ( cntfield.value > ( field_size - 91 ) ) {
76
  cntfield.style.color = "#515151";
77
  cntfield.style.backgroundColor = "#ff0";
78
  } else {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtor
4
  Tags: seo, all in one seo, google, twitter, page, image seo, social, search engine optimization, sitemap, WordPress SEO, meta, meta description, xml sitemap, google sitemap, sitemaps, robots meta, yahoo, bing, news sitemaps, multisite, canonical, nofollow, noindex, keywords, description, webmaster tools, google webmaster tools, google analytics
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
- Stable tag: 2.4.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -84,7 +84,7 @@ https://www.youtube.com/watch?v=A0VKinM5s00
84
 
85
  == Upgrade Notice ==
86
 
87
- = 2.3.16 =
88
  Various bugfixes, under the hood improvements, and new features.
89
 
90
 
4
  Tags: seo, all in one seo, google, twitter, page, image seo, social, search engine optimization, sitemap, WordPress SEO, meta, meta description, xml sitemap, google sitemap, sitemaps, robots meta, yahoo, bing, news sitemaps, multisite, canonical, nofollow, noindex, keywords, description, webmaster tools, google webmaster tools, google analytics
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
84
 
85
  == Upgrade Notice ==
86
 
87
+ = 2.4.4 =
88
  Various bugfixes, under the hood improvements, and new features.
89
 
90