new_versions = $updated_versions; } // load new messages if ( $old_version ){ if ( version_compare( $old_version, '1.4.5' ) == -1 ){ $this->new_versions[] = '1.4.5'; } // put notices into session to be able to give if back if ( $this->new_versions !== $updated_versions ) { $_SESSION['advanced_ads_version_notices'] = $this->new_versions; } } if ( $this->new_versions == array() ) { return; } // load update notices // not ready for translation, since there will always be change $this->update_notices = array( '1.4.5' => 'Advanced Ads 1.4.5 changes the behavior of some display conditions. Please read this update post to learn if this change should concern you.', ); // register update notices add_action( 'admin_notices', array($this, 'show_update_admin_notices' ) ); } /** * * display update notice * */ public function show_update_admin_notices(){ if ( $this->new_versions == array() ) { return; } ?>