Skip to content

Commit

Permalink
Merge pull request #1244 from semperfiwebdesign/development
Browse files Browse the repository at this point in the history
Development to master for 2.4.1.1
  • Loading branch information
michaeltorbert authored Oct 2, 2017
2 parents 7fab9f4 + e135168 commit 763b064
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
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.4.1
Version: 2.4.1.1
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.4.1
* @version 2.4.1.1
*/

if ( ! defined( 'AIOSEOPPRO' ) ) {
define( 'AIOSEOPPRO', false );
}
if ( ! defined( 'AIOSEOP_VERSION' ) ) {
define( 'AIOSEOP_VERSION', '2.4.1' );
define( 'AIOSEOP_VERSION', '2.4.1.1' );
}
global $aioseop_plugin_name;
$aioseop_plugin_name = 'All in One SEO Pack';
Expand Down
7 changes: 6 additions & 1 deletion modules/aioseop_sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,17 @@ function sitemap_notices() {
if ( isset( $options["{$this->prefix}indexes"] ) && 'on ' !== $options["{$this->prefix}indexes"] &&
1001 < $options["{$this->prefix}max_posts"] ) {

$post_counts = $num_terms = 0;

$post_counts = $this->get_total_post_count( array(
'post_type' => $options["{$this->prefix}posttypes"],
'post_status' => 'publish',
) );

$num_terms = array_sum( $this->get_all_term_counts( array( 'taxonomy' => $options["{$this->prefix}taxonomies"] ) ) );
$term_counts = $this->get_all_term_counts( array( 'taxonomy' => $options["{$this->prefix}taxonomies"] ) );
if( isset( $term_counts ) && is_array( $term_counts ) ){
$num_terms = array_sum( $term_counts );
}

$sitemap_urls = $post_counts + $num_terms;

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, WordPress SEO, Google Search Console, XML Sitemap, image seo
Requires at least: 4.0
Tested up to: 4.8
Stable tag: 2.4.1
Stable tag: 2.4.1.1
License: GPLv2 or later
Requires PHP: 5.2.4

Expand Down

0 comments on commit 763b064

Please sign in to comment.