Make WordPress Core

Ticket #45186: 45186.diff

File 45186.diff, 3.6 KB (added by SergeyBiryukov, 4 years ago)
  • src/wp-admin/options-discussion.php

     
    3838
    3939<div class="wrap">
    4040<h1><?php echo esc_html( $title ); ?></h1>
     41<?php settings_errors(); ?>
    4142
    4243<form method="post" action="options.php">
    4344<?php settings_fields( 'discussion' ); ?>
  • src/wp-admin/options-general.php

     
    5555
    5656<div class="wrap">
    5757<h1><?php echo esc_html( $title ); ?></h1>
     58<?php settings_errors(); ?>
    5859
    5960<form method="post" action="options.php" novalidate="novalidate">
    6061<?php settings_fields( 'general' ); ?>
  • src/wp-admin/options-head.php

     
    1515        add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
    1616}
    1717
    18 settings_errors();
     18/*
     19 * Display settings errors for non-core files.
     20 * For core files, settings_errors() is called after
     21 * the first heading on individual settings screens.
     22 */
     23if ( ! file_exists( ABSPATH . "/wp-admin/$pagenow" ) ) {
     24        settings_errors();
     25}
  • src/wp-admin/options-media.php

     
    4848
    4949<div class="wrap">
    5050<h1><?php echo esc_html( $title ); ?></h1>
     51<?php settings_errors(); ?>
    5152
    5253<form action="options.php" method="post">
    5354<?php settings_fields( 'media' ); ?>
  • src/wp-admin/options-permalink.php

     
    207207?>
    208208<div class="wrap">
    209209<h1><?php echo esc_html( $title ); ?></h1>
     210<?php settings_errors(); ?>
    210211
    211212<form name="form" action="options-permalink.php" method="post">
    212213<?php wp_nonce_field( 'update-permalink' ); ?>
  • src/wp-admin/options-reading.php

     
    5959
    6060<div class="wrap">
    6161<h1><?php echo esc_html( $title ); ?></h1>
     62<?php settings_errors(); ?>
    6263
    6364<form method="post" action="options.php">
    6465<?php
  • src/wp-admin/options-writing.php

     
    5959
    6060<div class="wrap">
    6161<h1><?php echo esc_html( $title ); ?></h1>
     62<?php settings_errors(); ?>
    6263
    6364<form method="post" action="options.php">
    6465<?php settings_fields( 'writing' ); ?>
  • src/wp-admin/options.php

     
    356356
    357357<div class="wrap">
    358358        <h1><?php esc_html_e( 'All Settings' ); ?></h1>
     359        <?php settings_errors(); ?>
    359360
    360361        <div class="notice notice-warning">
    361362                <p><strong><?php _e( 'Warning:' ); ?></strong> <?php _e( 'This page allows direct access to your site settings. You can break things here. Please be cautious!' ); ?></p>