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/includes/class-wp-screen.php

    r46685 r47122  
    227227        if ( $hook_name && post_type_exists( $hook_name ) ) {
    228228            $post_type = $id;
    229             $id        = 'post'; // changes later. ends up being $base.
     229            $id        = 'post'; // Changes later. Ends up being $base.
    230230        } else {
    231231            if ( '.php' == substr( $id, -4 ) ) {
     
    924924            </div>
    925925        <?php
    926         // Setup layout columns
     926        // Setup layout columns.
    927927
    928928        /**
     
    953953        $GLOBALS['screen_layout_columns'] = $this->columns; // Set the global for back-compat.
    954954
    955         // Add screen options
     955        // Add screen options.
    956956        if ( $this->show_screen_options() ) {
    957957            $this->render_screen_options();
     
    11571157
    11581158        foreach ( $columns as $column => $title ) {
    1159             // Can't hide these for they are special
     1159            // Can't hide these for they are special.
    11601160            if ( in_array( $column, $special ) ) {
    11611161                continue;
     
    12561256        }
    12571257
    1258         // Back compat
     1258        // Back compat.
    12591259        if ( isset( $this->post_type ) ) {
    12601260            /** This filter is documented in wp-admin/includes/post.php */
     
    12621262        }
    12631263
    1264         // This needs a submit button
     1264        // This needs a submit button.
    12651265        add_filter( 'screen_options_show_submit', '__return_true' );
    12661266
     
    12891289        $screen = get_current_screen();
    12901290
    1291         // Currently only enabled for posts lists
     1291        // Currently only enabled for posts lists.
    12921292        if ( 'edit' !== $screen->base ) {
    12931293            return;
     
    13171317        global $mode;
    13181318
    1319         // This needs a submit button
     1319        // This needs a submit button.
    13201320        add_filter( 'screen_options_show_submit', '__return_true' );
    13211321        ?>
Note: See TracChangeset for help on using the changeset viewer.