WordPress.org

Plugin Directory

Changeset 1801317


Ignore:
Timestamp:
01/11/18 17:35:51 (6 weeks ago)
Author:
hallsofmontezuma
Message:

checking in 2.4.4

Location:
all-in-one-seo-pack
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • all-in-one-seo-pack/tags/2.4.4/admin/aioseop_module_class.php

    r1735818 r1801317  
    22592259                } elseif ( isset( $options['rows'] ) && isset( $options['cols'] ) ) { 
    22602260                    $size = $options['rows'] * $options['cols']; 
     2261                }  
     2262                if ( 'Description' === $options['name'] && isset( $options['name'] ) ) { 
     2263                    $size = ( $size - 90 ) . '-' . $size; 
    22612264                } 
    22622265                if ( isset( $options['count_desc'] ) ) { 
  • all-in-one-seo-pack/tags/2.4.4/aioseop_class.php

    r1735818 r1801317  
    2121 
    2222    // Max numbers of chars in auto-generated description. 
    23     var $maximum_description_length = 160; 
     23    var $maximum_description_length = 320; 
    2424 
    2525    // Minimum number of chars an excerpt should be so that it can be used as description. 
     
    5757     * 
    5858     * @since 2.3.14 #921 More google analytics options added. 
     59     * @since 2.4.0 #1395 Longer Meta Descriptions. 
    5960     */ 
    6061    function __construct() { 
     
    169170                                             '<ul><li>' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '</li><li>' . 
    170171                                             __( '%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                                             __( '%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>' . 
    172173                                             __( '%post_title% - The original title of the post', 'all-in-one-seo-pack' ) . '</li><li>' . 
    173174                                             __( '%wp_title% - The original WordPress title, e.g. post_title for posts', 'all-in-one-seo-pack' ) . '</li><li>' . 
     
    227228            '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' ), 
    228229            '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            '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' ), 
    230231            'run_shortcodes'              => __( 'Check this and shortcodes will get executed for descriptions auto-generated from content.', 'all-in-one-seo-pack' ), 
    231232            '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' ), 
     
    367368                'count'    => true, 
    368369                'cols'     => 80, 
    369                 'rows'     => 2, 
     370                'rows'     => 4, 
    370371                'condshow' => array( 'aiosp_use_static_home_info' => 0 ), 
    371372            ), 
     
    968969                        'count' => true, 
    969970                        'cols'  => 80, 
    970                         'rows'  => 2, 
     971                        'rows'  => 4, 
    971972                    ), 
    972973 
     
    24722473        } 
    24732474 
    2474         return apply_filters( 
    2475             'aioseop_description', 
    2476             $description, 
    2477             empty( $aioseop_options['aiosp_dont_truncate_descriptions'] ) 
    2478         ); 
     2475        return $description; 
    24792476    } 
    24802477 
     
    25382535     * @since 2.3.14 #932 Removes filter "aioseop_description". 
    25392536     * @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. 
    25402538     * 
    25412539     * @param object $post Post object. 
     
    25552553        if ( ! $description ) { 
    25562554            if ( empty( $aioseop_options['aiosp_skip_excerpt'] ) ) { 
    2557                 $description = $this->trim_excerpt_without_filters_full_length( $this->internationalize( $post->post_excerpt ) ); 
     2555                $description = $this->trim_text_without_filters_full_length( $this->internationalize( $post->post_excerpt ) ); 
    25582556            } 
    25592557            if ( ! $description && isset( $aioseop_options['aiosp_generate_descriptions'] ) && $aioseop_options['aiosp_generate_descriptions'] ) { 
     
    25622560                    $content = do_shortcode( $content ); 
    25632561                } 
    2564                 $description =$this->internationalize( $content ); 
    2565             } 
     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            ); 
    25662569        } 
    25672570 
     
    25762579     * @return string 
    25772580     */ 
    2578     function trim_excerpt_without_filters_full_length( $text ) { 
     2581    function trim_text_without_filters_full_length( $text ) { 
    25792582        $text = str_replace( ']]>', ']]&gt;', $text ); 
    25802583        $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text ); 
  • all-in-one-seo-pack/tags/2.4.4/all_in_one_seo_pack.php

    r1784178 r1801317  
    44Plugin URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/ 
    55Description: 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 
     6Version: 2.4.4 
    77Author: Michael Torbert 
    88Author URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/ 
     
    3232 * 
    3333 * @package All-in-One-SEO-Pack 
    34  * @version 2.4.3.1 
     34 * @version 2.4.4 
    3535 */ 
    3636 
     
    3939} 
    4040if ( ! defined( 'AIOSEOP_VERSION' ) ) { 
    41     define( 'AIOSEOP_VERSION', '2.4.3.1' ); 
     41    define( 'AIOSEOP_VERSION', '2.4.4' ); 
    4242} 
    4343global $aioseop_plugin_name; 
  • all-in-one-seo-pack/tags/2.4.4/js/modules/aioseop_module.js

    r1718382 r1801317  
    7373        cntfield.style.backgroundColor = "#f00"; 
    7474    } else { 
    75         if ( cntfield.value > ( field_size - 6 ) ) { 
     75        if ( cntfield.value > ( field_size - 91 ) ) { 
    7676            cntfield.style.color = "#515151"; 
    7777            cntfield.style.backgroundColor = "#ff0"; 
  • all-in-one-seo-pack/tags/2.4.4/readme.txt

    r1784178 r1801317  
    55Requires at least: 4.0 
    66Tested up to: 4.9 
    7 Stable tag: 2.4.3.1 
     7Stable tag: 2.4.4 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    8585== Upgrade Notice == 
    8686 
    87 = 2.3.16 = 
     87= 2.4.4 = 
    8888Various bugfixes, under the hood improvements, and new features. 
    8989 
  • all-in-one-seo-pack/trunk/admin/aioseop_module_class.php

    r1735818 r1801317  
    22592259                } elseif ( isset( $options['rows'] ) && isset( $options['cols'] ) ) { 
    22602260                    $size = $options['rows'] * $options['cols']; 
     2261                }  
     2262                if ( 'Description' === $options['name'] && isset( $options['name'] ) ) { 
     2263                    $size = ( $size - 90 ) . '-' . $size; 
    22612264                } 
    22622265                if ( isset( $options['count_desc'] ) ) { 
  • all-in-one-seo-pack/trunk/aioseop_class.php

    r1735818 r1801317  
    2121 
    2222    // Max numbers of chars in auto-generated description. 
    23     var $maximum_description_length = 160; 
     23    var $maximum_description_length = 320; 
    2424 
    2525    // Minimum number of chars an excerpt should be so that it can be used as description. 
     
    5757     * 
    5858     * @since 2.3.14 #921 More google analytics options added. 
     59     * @since 2.4.0 #1395 Longer Meta Descriptions. 
    5960     */ 
    6061    function __construct() { 
     
    169170                                             '<ul><li>' . __( '%blog_title% - Your blog title', 'all-in-one-seo-pack' ) . '</li><li>' . 
    170171                                             __( '%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                                             __( '%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>' . 
    172173                                             __( '%post_title% - The original title of the post', 'all-in-one-seo-pack' ) . '</li><li>' . 
    173174                                             __( '%wp_title% - The original WordPress title, e.g. post_title for posts', 'all-in-one-seo-pack' ) . '</li><li>' . 
     
    227228            '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' ), 
    228229            '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            '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' ), 
    230231            'run_shortcodes'              => __( 'Check this and shortcodes will get executed for descriptions auto-generated from content.', 'all-in-one-seo-pack' ), 
    231232            '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' ), 
     
    367368                'count'    => true, 
    368369                'cols'     => 80, 
    369                 'rows'     => 2, 
     370                'rows'     => 4, 
    370371                'condshow' => array( 'aiosp_use_static_home_info' => 0 ), 
    371372            ), 
     
    968969                        'count' => true, 
    969970                        'cols'  => 80, 
    970                         'rows'  => 2, 
     971                        'rows'  => 4, 
    971972                    ), 
    972973 
     
    24722473        } 
    24732474 
    2474         return apply_filters( 
    2475             'aioseop_description', 
    2476             $description, 
    2477             empty( $aioseop_options['aiosp_dont_truncate_descriptions'] ) 
    2478         ); 
     2475        return $description; 
    24792476    } 
    24802477 
     
    25382535     * @since 2.3.14 #932 Removes filter "aioseop_description". 
    25392536     * @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. 
    25402538     * 
    25412539     * @param object $post Post object. 
     
    25552553        if ( ! $description ) { 
    25562554            if ( empty( $aioseop_options['aiosp_skip_excerpt'] ) ) { 
    2557                 $description = $this->trim_excerpt_without_filters_full_length( $this->internationalize( $post->post_excerpt ) ); 
     2555                $description = $this->trim_text_without_filters_full_length( $this->internationalize( $post->post_excerpt ) ); 
    25582556            } 
    25592557            if ( ! $description && isset( $aioseop_options['aiosp_generate_descriptions'] ) && $aioseop_options['aiosp_generate_descriptions'] ) { 
     
    25622560                    $content = do_shortcode( $content ); 
    25632561                } 
    2564                 $description =$this->internationalize( $content ); 
    2565             } 
     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            ); 
    25662569        } 
    25672570 
     
    25762579     * @return string 
    25772580     */ 
    2578     function trim_excerpt_without_filters_full_length( $text ) { 
     2581    function trim_text_without_filters_full_length( $text ) { 
    25792582        $text = str_replace( ']]>', ']]&gt;', $text ); 
    25802583        $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text ); 
  • all-in-one-seo-pack/trunk/all_in_one_seo_pack.php

    r1784178 r1801317  
    44Plugin URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/ 
    55Description: 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 
     6Version: 2.4.4 
    77Author: Michael Torbert 
    88Author URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/ 
     
    3232 * 
    3333 * @package All-in-One-SEO-Pack 
    34  * @version 2.4.3.1 
     34 * @version 2.4.4 
    3535 */ 
    3636 
     
    3939} 
    4040if ( ! defined( 'AIOSEOP_VERSION' ) ) { 
    41     define( 'AIOSEOP_VERSION', '2.4.3.1' ); 
     41    define( 'AIOSEOP_VERSION', '2.4.4' ); 
    4242} 
    4343global $aioseop_plugin_name; 
  • all-in-one-seo-pack/trunk/js/modules/aioseop_module.js

    r1718382 r1801317  
    7373        cntfield.style.backgroundColor = "#f00"; 
    7474    } else { 
    75         if ( cntfield.value > ( field_size - 6 ) ) { 
     75        if ( cntfield.value > ( field_size - 91 ) ) { 
    7676            cntfield.style.color = "#515151"; 
    7777            cntfield.style.backgroundColor = "#ff0"; 
  • all-in-one-seo-pack/trunk/readme.txt

    r1784178 r1801317  
    55Requires at least: 4.0 
    66Tested up to: 4.9 
    7 Stable tag: 2.4.3.1 
     7Stable tag: 2.4.4 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    8585== Upgrade Notice == 
    8686 
    87 = 2.3.16 = 
     87= 2.4.4 = 
    8888Various bugfixes, under the hood improvements, and new features. 
    8989 
Note: See TracChangeset for help on using the changeset viewer.