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/post-new.php

    r45742 r47122  
    4040        if ( ! isset( $_registered_pages[ get_plugin_page_hookname( "post-new.php?post_type=$post_type", $post_type_object->show_in_menu ) ] ) ) {
    4141            if ( isset( $_registered_pages[ get_plugin_page_hookname( "edit.php?post_type=$post_type", $post_type_object->show_in_menu ) ] ) ) {
    42                 // Fall back to edit.php for that post type, if it exists
     42                // Fall back to edit.php for that post type, if it exists.
    4343                $submenu_file = "edit.php?post_type=$post_type";
    4444            } else {
    45                 // Otherwise, give up and highlight the parent
     45                // Otherwise, give up and highlight the parent.
    4646                $submenu_file = $parent_file;
    4747            }
Note: See TracChangeset for help on using the changeset viewer.