WordPress.org

Make WordPress Core

Changeset 9250


Ignore:
Timestamp:
10/20/08 00:40:36 (5 years ago)
Author:
ryan
Message:

Don't require use of options whitelisting. Will give plugins more notice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options.php

    r9151 r9250  
    4242 
    4343case 'update': 
    44     $option_page = $_POST[ 'option_page' ]; 
    45     check_admin_referer( $option_page . '-options' ); 
     44    if ( isset($_POST[ 'option_page' ]) ) { 
     45        $option_page = $_POST[ 'option_page' ]; 
     46        check_admin_referer( $option_page . '-options' ); 
     47    } else { 
     48        // This is for back compat and will eventually be removed. 
     49        $option_page = 'options'; 
     50        check_admin_referer( 'update-options' ); 
     51    } 
    4652 
    4753    if ( !isset( $whitelist_options[ $option_page ] ) ) 
Note: See TracChangeset for help on using the changeset viewer.