Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17056 r17986  
    11<?php
    22/**
    3  * Options Management Administration Panel.
     3 * Options Management Administration Screen.
    44 *
    55 * If accessed directly in a browser this page shows a list of all saved options
     
    2525wp_reset_vars(array('action', 'option_page'));
    2626
     27$capability = 'manage_options';
     28
    2729if ( empty($option_page) ) // This is for back compat and will eventually be removed.
    2830    $option_page = 'options';
    29 
    30 if ( !current_user_can('manage_options') )
     31else
     32    $capability = apply_filters( "option_page_capability_{$option_page}", $capability );
     33
     34if ( !current_user_can( $capability ) )
    3135    wp_die(__('Cheatin&#8217; uh?'));
    3236
Note: See TracChangeset for help on using the changeset viewer.