WordPress.org

Make WordPress Core

Ticket #38868: 38868.patch

File 38868.patch, 3.8 KB (added by ramiy, 5 years ago)
  • wp-admin/options-discussion.php

     
    99require_once( dirname( __FILE__ ) . '/admin.php' );
    1010
    1111if ( ! 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.' ) );
    1313
    1414$title = __('Discussion Settings');
    1515$parent_file = 'options-general.php';
  • wp-admin/options-general.php

     
    1313require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    1414
    1515if ( ! 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.' ) );
    1717
    1818$title = __('General Settings');
    1919$parent_file = 'options-general.php';
  • wp-admin/options-media.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! 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.' ) );
    1414
    1515$title = __('Media Settings');
    1616$parent_file = 'options-general.php';
  • wp-admin/options-permalink.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! 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.' ) );
    1414
    1515$title = __('Permalink Settings');
    1616$parent_file = 'options-general.php';
  • wp-admin/options-reading.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! 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.' ) );
    1414
    1515$title = __( 'Reading Settings' );
    1616$parent_file = 'options-general.php';
  • wp-admin/options-writing.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! 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.' ) );
    1414
    1515$title = __('Writing Settings');
    1616$parent_file = 'options-general.php';
  • wp-admin/options.php

     
    4545}
    4646
    4747if ( ! current_user_can( $capability ) ) {
    48         wp_die(
    49                 '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    50                 '<p>' . __( 'Sorry, you are not allowed to manage these items.' ) . '</p>',
    51                 403
    52         );
     48        wp_die( __( 'Sorry, you are not allowed to manage options.' ), 403 );
    5349}
    5450
    5551// Handle admin email change requests