Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r47088 r47122  
    210210}
    211211
    212 if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists
     212if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists.
    213213    $check_zone_info = false;
    214214    if ( 0 == $current_offset ) {
     
    322322foreach ( $date_formats as $format ) {
    323323    echo "\t<label><input type='radio' name='date_format' value='" . esc_attr( $format ) . "'";
    324     if ( get_option( 'date_format' ) === $format ) { // checked() uses "==" rather than "==="
     324    if ( get_option( 'date_format' ) === $format ) { // checked() uses "==" rather than "===".
    325325        echo " checked='checked'";
    326326        $custom = false;
     
    359359foreach ( $time_formats as $format ) {
    360360    echo "\t<label><input type='radio' name='time_format' value='" . esc_attr( $format ) . "'";
    361     if ( get_option( 'time_format' ) === $format ) { // checked() uses "==" rather than "==="
     361    if ( get_option( 'time_format' ) === $format ) { // checked() uses "==" rather than "===".
    362362        echo " checked='checked'";
    363363        $custom = false;
Note: See TracChangeset for help on using the changeset viewer.