Skip to content

Commit

Permalink
update static sitemap when upgrading AIOSEOP to new version awesomemo…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Jun 30, 2016
1 parent dce07bc commit 89089ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/aioseop_updates_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ function version_updates() {
if ( version_compare( $last_active_version, AIOSEOP_VERSION, '<' ) ) {

// Upgrades based on previous version
do_action('before_doing_aioseop_updates');
$this->do_version_updates( $last_active_version );

do_action('after_doing_aioseop_updates');
// If we're running Pro, let the Pro updater set the version.
if ( ! AIOSEOPPRO ) {

Expand Down
1 change: 1 addition & 0 deletions modules/aioseop_sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ function __construct() {

$this->add_help_text_links();

add_action( 'after_doing_aioseop_updates', array( $this, 'do_sitemaps') ); // Update static sitemap when AIOSEOP is upgrade to new version.
add_action( 'init', array( $this, 'load_sitemap_options' ) );
add_action( $this->prefix . 'settings_update', array( $this, 'do_sitemaps' ) );
add_filter( $this->prefix . 'display_settings', array( $this, 'update_post_data' ) );
Expand Down

0 comments on commit 89089ed

Please sign in to comment.