Ticket #42271: 42271.patch
| File 42271.patch, 3.4 KB (added by , 9 years ago) |
|---|
-
wp-admin/options-discussion.php
9 9 require_once( dirname( __FILE__ ) . '/admin.php' ); 10 10 11 11 if ( ! current_user_can( 'manage_options' ) ) 12 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );12 wp_die( __( 'Sorry, you are not allowed to manage options.' ) ); 13 13 14 14 $title = __('Discussion Settings'); 15 15 $parent_file = 'options-general.php'; -
wp-admin/options-general.php
13 13 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 14 14 15 15 if ( ! current_user_can( 'manage_options' ) ) 16 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );16 wp_die( __( 'Sorry, you are not allowed to manage options.' ) ); 17 17 18 18 $title = __('General Settings'); 19 19 $parent_file = 'options-general.php'; -
wp-admin/options-media.php
10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage options.' ) ); 14 14 15 15 $title = __('Media Settings'); 16 16 $parent_file = 'options-general.php'; -
wp-admin/options-permalink.php
10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage options.' ) ); 14 14 15 15 $title = __('Permalink Settings'); 16 16 $parent_file = 'options-general.php'; -
wp-admin/options-reading.php
10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage options.' ) ); 14 14 15 15 $title = __( 'Reading Settings' ); 16 16 $parent_file = 'options-general.php'; -
wp-admin/options.php
44 44 $capability = apply_filters( "option_page_capability_{$option_page}", $capability ); 45 45 } 46 46 47 if ( ! current_user_can( $capability ) ) { 48 wp_die( 49 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 50 '<p>' . __( 'Sorry, you are not allowed to manage these options.' ) . '</p>', 51 403 52 ); 53 } 47 if ( ! current_user_can( $capability ) ) 48 wp_die( __( 'Sorry, you are not allowed to manage options.' ) ); 54 49 55 50 // Handle admin email change requests 56 51 if ( ! empty( $_GET[ 'adminhash' ] ) ) {