Make WordPress Core

Changeset 47159


Ignore:
Timestamp:
02/02/2020 02:40:50 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments in wp-admin/options.php per the documentation standards.

See #48303.

File:
1 edited

Legend:

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

    r47158 r47159  
    205205$whitelist_options = apply_filters( 'whitelist_options', $whitelist_options );
    206206
    207 /*
    208  * If $_GET['action'] == 'update' we are saving settings sent from a settings page
    209  */
    210 if ( 'update' == $action ) {
     207if ( 'update' == $action ) { // We are saving settings sent from a settings page.
    211208    if ( 'options' == $option_page && ! isset( $_POST['option_page'] ) ) { // This is for back compat and will eventually be removed.
    212209        $unregistered = true;
     
    304301    }
    305302
    306     /**
    307      * Handle settings errors and return to options page
     303    /*
     304     * Handle settings errors and return to options page.
    308305     */
     306
    309307    // If no settings errors were registered add a general 'updated' message.
    310308    if ( ! count( get_settings_errors() ) ) {
     
    313311    set_transient( 'settings_errors', get_settings_errors(), 30 );
    314312
    315     /**
    316      * Redirect back to the settings page that was submitted
    317      */
     313    // Redirect back to the settings page that was submitted.
    318314    $goback = add_query_arg( 'settings-updated', 'true', wp_get_referer() );
    319315    wp_redirect( $goback );
Note: See TracChangeset for help on using the changeset viewer.