Changeset 2788848
- Timestamp:
- 09/22/2022 05:59:18 PM (23 months ago)
- Location:
- akismet/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
akismet/trunk/akismet.php
r2788833 r2788848 7 7 Plugin URI: https://akismet.com/ 8 8 Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. 9 Version: 5.0.1a 19 Version: 5.0.1a 10 10 Author: Automattic 11 11 Author URI: https://automattic.com/wordpress-plugins/ … … 38 38 } 39 39 40 define( 'AKISMET_VERSION', '5.0.1a 1' );40 define( 'AKISMET_VERSION', '5.0.1a' ); 41 41 define( 'AKISMET__MINIMUM_WP_VERSION', '5.0' ); 42 42 define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -
akismet/trunk/class.akismet-admin.php
r2753903 r2788848 75 75 delete_option( 'Activated_Akismet' ); 76 76 if ( ! headers_sent() ) { 77 wp_redirect( add_query_arg( array( 'page' => 'akismet-key-config', 'view' => 'start' ), class_exists( 'Jetpack' ) ? admin_url( 'admin.php' ) : admin_url( 'options-general.php' ) ) ); 77 $admin_url = self::get_page_url( 'init' ); 78 wp_redirect( $admin_url ); 78 79 } 79 80 } … … 91 92 92 93 public static function admin_menu() { 93 if ( class_exists( 'Jetpack' ) ) 94 if ( class_exists( 'Jetpack' ) ) 94 95 add_action( 'jetpack_admin_menu', array( 'Akismet_Admin', 'load_menu' ) ); 95 else96 96 97 self::load_menu(); 98 97 99 } 98 100 … … 405 407 406 408 if ( ! Akismet::get_api_key() ) { 407 $link = add_query_arg( array( 'page' => 'akismet-key-config' ), class_exists( 'Jetpack' ) ? admin_url( 'admin.php' ) : admin_url( 'options-general.php' ));409 $link = ); 408 410 $classes[] = 'ajax-disabled'; 409 411 } … … 826 828 $args = array( 'page' => 'akismet-key-config' ); 827 829 828 if ( $page == 'stats' ) 830 if ( $page == 'stats' ) 829 831 $args = array( 'page' => 'akismet-key-config', 'view' => 'stats' ); 830 elseif ( $page == 'delete_key' )832 831 833 $args = array( 'page' => 'akismet-key-config', 'view' => 'start', 'action' => 'delete-key', '_wpnonce' => wp_create_nonce( self::NONCE ) ); 832 833 $url = add_query_arg( $args, class_exists( 'Jetpack' ) ? admin_url( 'admin.php' ) : admin_url( 'options-general.php' ) ); 834 835 return $url; 834 } elseif ( $page === 'init' ) { 835 $args = array( 'page' => 'akismet-key-config', 'view' => 'start' ); 836 } 837 838 return add_query_arg( $args, menu_page_url( 'akismet-key-config', false ) ); 836 839 } 837 840 -
akismet/trunk/readme.txt
r2788833 r2788848 35 35 *Release Date - TBD* 36 36 37 * Add an empty state for the Statistics section on the admin page. 37 * Added an empty state for the Statistics section on the admin page. 38 * Fixed a bug that broke some admin page links when Jetpack plugins are active. 38 39 39 40 = 5.0 =
Note: See TracChangeset
for help on using the changeset viewer.