diff --git a/admin/aioseop_module_class.php b/admin/aioseop_module_class.php index 3cd6cef5f..77772b536 100644 --- a/admin/aioseop_module_class.php +++ b/admin/aioseop_module_class.php @@ -2258,6 +2258,9 @@ function get_option_html( $args ) { $size = $options['size']; } elseif ( isset( $options['rows'] ) && isset( $options['cols'] ) ) { $size = $options['rows'] * $options['cols']; + } + if ( 'Description' === $options['name'] && isset( $options['name'] ) ) { + $size = ( $size - 90 ) . '-' . $size; } if ( isset( $options['count_desc'] ) ) { $count_desc = $options['count_desc']; diff --git a/aioseop_class.php b/aioseop_class.php index 250b147d3..44a428665 100644 --- a/aioseop_class.php +++ b/aioseop_class.php @@ -20,7 +20,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module { var $version = AIOSEOP_VERSION; // Max numbers of chars in auto-generated description. - var $maximum_description_length = 160; + var $maximum_description_length = 320; // Minimum number of chars an excerpt should be so that it can be used as description. var $minimum_description_length = 1; @@ -56,6 +56,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module { * All_in_One_SEO_Pack constructor. * * @since 2.3.14 #921 More google analytics options added. + * @since 2.4.0 #1395 Longer Meta Descriptions. */ function __construct() { global $aioseop_options; @@ -168,7 +169,7 @@ function __construct() { 'description_format' => __( 'This controls the format of Meta Descriptions.The following macros are supported:', 'all-in-one-seo-pack' ) . '