All in One SEO Pack - Version 2.4.4.1

Version Description

Download this release

Release Info

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

Code changes from version 2.4.4 to 2.4.4.1

Files changed (3) hide show
  1. aioseop_class.php +21 -6
  2. all_in_one_seo_pack.php +4 -4
  3. readme.txt +1 -1
aioseop_class.php CHANGED
@@ -2436,6 +2436,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
2436
  /**
2437
  * @since 2.3.14 #932 Adds filter "aioseop_description", removes extra filtering.
2438
  * @since 2.4 #951 Trim/truncates occurs inside filter "aioseop_description".
 
2439
  *
2440
  * @param null $post
2441
  *
@@ -2472,6 +2473,22 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
2472
  $description = $this->internationalize( $description );
2473
  }
2474
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2475
  return $description;
2476
  }
2477
 
@@ -2503,6 +2520,9 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
2503
  }
2504
 
2505
  /**
 
 
 
2506
  * @param null $post
2507
  *
2508
  * @return mixed|string
@@ -2561,11 +2581,6 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
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;
@@ -4938,7 +4953,7 @@ EOF;
4938
  // Internal whitespace trim.
4939
  $value = preg_replace( '/\s\s+/u', ' ', $value );
4940
  // Truncate / crop
4941
- if ( ! empty( $truncate ) )
4942
  $value = $this->trim_excerpt_without_filters( $value );
4943
  // Encode to valid SEO html entities
4944
  return $this->seo_entity_encode( $value );
2436
  /**
2437
  * @since 2.3.14 #932 Adds filter "aioseop_description", removes extra filtering.
2438
  * @since 2.4 #951 Trim/truncates occurs inside filter "aioseop_description".
2439
+ * @since 2.4.4.1 #1395 Longer Meta Descriptions & don't trim manual Descriptions.
2440
  *
2441
  * @param null $post
2442
  *
2473
  $description = $this->internationalize( $description );
2474
  }
2475
 
2476
+ $truncate = false;
2477
+ $aioseop_desc = '';
2478
+ if ( ! empty( $post->ID ) ) {
2479
+ $aioseop_desc = get_post_meta( $post->ID, '_aioseop_description', true );
2480
+ }
2481
+
2482
+ if ( empty ( $aioseop_desc ) && 'on' === $aioseop_options['aiosp_generate_descriptions'] && empty( $aioseop_options['aiosp_dont_truncate_descriptions'] ) ) {
2483
+ $truncate = true;
2484
+ }
2485
+
2486
+ $description = apply_filters(
2487
+ 'aioseop_description',
2488
+ $description,
2489
+ $truncate
2490
+ );
2491
+
2492
  return $description;
2493
  }
2494
 
2520
  }
2521
 
2522
  /**
2523
+ * @since ?
2524
+ * @since 2.4 #1395 Longer Meta Descriptions & don't trim manual Descriptions.
2525
+ *
2526
  * @param null $post
2527
  *
2528
  * @return mixed|string
2581
  }
2582
  $description = $this->trim_text_without_filters_full_length( $this->internationalize( $content ) );
2583
  }
 
 
 
 
 
2584
  }
2585
 
2586
  return $description;
4953
  // Internal whitespace trim.
4954
  $value = preg_replace( '/\s\s+/u', ' ', $value );
4955
  // Truncate / crop
4956
+ if ( ! empty( $truncate ) && $truncate )
4957
  $value = $this->trim_excerpt_without_filters( $value );
4958
  // Encode to valid SEO html entities
4959
  return $this->seo_entity_encode( $value );
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.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,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.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';
@@ -454,7 +454,7 @@ if ( ! function_exists( 'aioseop_welcome' ) ){
454
  add_action( 'init', 'aioseop_load_modules', 1 );
455
  //add_action( 'after_setup_theme', 'aioseop_load_modules' );
456
 
457
- if ( is_admin() ) {
458
  add_action( 'wp_ajax_aioseop_ajax_save_meta', 'aioseop_ajax_save_meta' );
459
  add_action( 'wp_ajax_aioseop_ajax_save_url', 'aioseop_ajax_save_url' );
460
  add_action( 'wp_ajax_aioseop_ajax_delete_url', 'aioseop_ajax_delete_url' );
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.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
  * The original WordPress SEO plugin.
32
  *
33
  * @package All-in-One-SEO-Pack
34
+ * @version 2.4.4.1
35
  */
36
 
37
  if ( ! defined( 'AIOSEOPPRO' ) ) {
38
  define( 'AIOSEOPPRO', false );
39
  }
40
  if ( ! defined( 'AIOSEOP_VERSION' ) ) {
41
+ define( 'AIOSEOP_VERSION', '2.4.4.1' );
42
  }
43
  global $aioseop_plugin_name;
44
  $aioseop_plugin_name = 'All in One SEO Pack';
454
  add_action( 'init', 'aioseop_load_modules', 1 );
455
  //add_action( 'after_setup_theme', 'aioseop_load_modules' );
456
 
457
+ if ( is_admin() || defined( 'AIOSEOP_UNIT_TESTING' ) ) {
458
  add_action( 'wp_ajax_aioseop_ajax_save_meta', 'aioseop_ajax_save_meta' );
459
  add_action( 'wp_ajax_aioseop_ajax_save_url', 'aioseop_ajax_save_url' );
460
  add_action( 'wp_ajax_aioseop_ajax_delete_url', 'aioseop_ajax_delete_url' );
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.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10