Skip to content

Commit

Permalink
Merge pull request #1044 from semperfiwebdesign/development
Browse files Browse the repository at this point in the history
Development to master for 2.3.15.2
  • Loading branch information
michaeltorbert authored Aug 5, 2017
2 parents 4edf5ca + 4725cff commit 5e53904
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
5 changes: 4 additions & 1 deletion aioseop_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,10 @@ function get_post_description( $post ) {
$description = $this->trim_excerpt_without_filters_full_length( $this->internationalize( $post->post_excerpt ) );
}
if ( ! $description && isset( $aioseop_options['aiosp_generate_descriptions'] ) && $aioseop_options['aiosp_generate_descriptions'] ) {
$content = do_shortcode( $post->post_content );
if ( ! empty( $aioseop_options['aiosp_run_shortcodes'] ) ) {
$content = do_shortcode( $content );
}
$content = wp_strip_all_tags( $content );
$description = $this->trim_excerpt_without_filters( $this->internationalize( $content ) );
}
}
Expand Down
6 changes: 3 additions & 3 deletions all_in_one_seo_pack.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: All In One SEO Pack
Plugin URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
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.
Version: 2.3.15.1
Version: 2.3.15.2
Author: Michael Torbert
Author URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
Text Domain: all-in-one-seo-pack
Expand Down Expand Up @@ -31,14 +31,14 @@
* The original WordPress SEO plugin.
*
* @package All-in-One-SEO-Pack
* @version 2.3.15.1
* @version 2.3.15.2
*/

if ( ! defined( 'AIOSEOPPRO' ) ) {
define( 'AIOSEOPPRO', false );
}
if ( ! defined( 'AIOSEOP_VERSION' ) ) {
define( 'AIOSEOP_VERSION', '2.3.15.1' );
define( 'AIOSEOP_VERSION', '2.3.15.2' );
}
global $aioseop_plugin_name;
$aioseop_plugin_name = 'All in One SEO Pack';
Expand Down
8 changes: 6 additions & 2 deletions modules/aioseop_opengraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,6 @@ function filter_settings( $settings, $location, $current ) {
);

// Add filters
$description = do_shortcode( $description );
$description = apply_filters( 'aioseop_description', $description );
// Add placholders
$settings["{$prefix}title"]['placeholder'] = apply_filters( 'aioseop_opengraph_placeholder', $title );
Expand Down Expand Up @@ -1190,9 +1189,14 @@ function add_meta() {
}
}

if ( ! empty( $this->options['aiosp_opengraph_title_shortcodes'] ) ) {
$title = do_shortcode( $title );
}
if ( ! empty( $description ) ) {
$description = $aiosp->internationalize( preg_replace( '/\s+/', ' ', $description ) );
$description = do_shortcode( $description );
if ( ! empty( $this->options['aiosp_opengraph_description_shortcodes'] ) ) {
$description = do_shortcode( $description );
}
$description = $aiosp->trim_excerpt_without_filters( $description, 1000 );
}

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtor
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
Requires at least: 4.0
Tested up to: 4.8
Stable tag: 2.3.15.1
Stable tag: 2.3.15.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down

0 comments on commit 5e53904

Please sign in to comment.