WordPress.org

Plugin Directory

Changeset 535242


Ignore:
Timestamp:
04/23/12 23:36:03 (2 years ago)
Author:
josephscott
Message:

Use $pagenow to determine if we are on the comments page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/admin.php

    r533242 r535242  
    292292 
    293293function akismet_admin_warnings() { 
    294     global $wpcom_api_key; 
     294    global $wpcom_api_key, $pagenow; 
    295295 
    296296    if ( 
    297         basename( $_SERVER['SCRIPT_FILENAME'] ) == 'edit-comments.php' 
     297        $pagenow == 'edit-comments.php' 
    298298        || ( !empty( $_GET['page'] ) && $_GET['page'] == 'akismet-key-config' ) 
    299299        || ( !empty( $_GET['page'] ) && $_GET['page'] == 'akismet-stats-display' ) 
Note: See TracChangeset for help on using the changeset viewer.