Make WordPress Core


Ignore:
Timestamp:
06/25/2014 09:47:14 PM (10 years ago)
Author:
DrewAPicture
Message:

Add braces missed while adding docs for the option_page_capability_{$option_page} hook.

See [25372]. See #25229.

File:
1 edited

Legend:

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

    r28530 r28833  
    2727$capability = 'manage_options';
    2828
    29 if ( empty($option_page) ) // This is for back compat and will eventually be removed.
     29// This is for back compat and will eventually be removed.
     30if ( empty($option_page) ) {
    3031    $option_page = 'options';
    31 else
     32} else {
    3233
    3334    /**
     
    4243     */
    4344    $capability = apply_filters( "option_page_capability_{$option_page}", $capability );
     45}
    4446
    4547if ( !current_user_can( $capability ) )
Note: See TracChangeset for help on using the changeset viewer.