Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 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-includes/vars.php

    r45674 r47122  
    2020    $is_apache, $is_IIS, $is_iis7, $is_nginx;
    2121
    22 // On which page are we ?
     22// On which page are we?
    2323if ( is_admin() ) {
    24     // wp-admin pages are checked more carefully
     24    // wp-admin pages are checked more carefully.
    2525    if ( is_network_admin() ) {
    2626        preg_match( '#/wp-admin/network/?(.*?)$#i', $_SERVER['PHP_SELF'], $self_matches );
     
    3939        $pagenow = strtolower( $self_matches[1] );
    4040        if ( '.php' !== substr( $pagenow, -4, 4 ) ) {
    41             $pagenow .= '.php'; // for Options +Multiviews: /wp-admin/themes/index.php (themes.php is queried)
     41            $pagenow .= '.php'; // For `Options +Multiviews`: /wp-admin/themes/index.php (themes.php is queried).
    4242        }
    4343    }
     
    5151unset( $self_matches );
    5252
    53 // Simple browser detection
     53// Simple browser detection.
    5454$is_lynx   = false;
    5555$is_gecko  = false;
     
    107107$is_IE = ( $is_macIE || $is_winIE );
    108108
    109 // Server detection
     109// Server detection.
    110110
    111111/**
     
    147147    if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
    148148        $is_mobile = false;
    149     } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Mobile' ) !== false // many mobile devices (all iPhone, iPad, etc.)
     149    } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Mobile' ) !== false // Many mobile devices (all iPhone, iPad, etc.)
    150150        || strpos( $_SERVER['HTTP_USER_AGENT'], 'Android' ) !== false
    151151        || strpos( $_SERVER['HTTP_USER_AGENT'], 'Silk/' ) !== false
Note: See TracChangeset for help on using the changeset viewer.