WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (18 months 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/edit-form-advanced.php

    r47088 r47122  
    77 */
    88
    9 // don't load directly
     9// Don't load directly.
    1010if ( ! defined( 'ABSPATH' ) ) {
    1111    die( '-1' );
     
    9696}
    9797
    98 // Add the local autosave notice HTML
     98// Add the local autosave notice HTML.
    9999add_action( 'admin_footer', '_local_storage_notice' );
    100100
     
    243243$form_extra  .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr( $post_ID ) . "' />";
    244244
    245 // Detect if there exists an autosave newer than the post and if that autosave is different than the post
     245// Detect if there exists an autosave newer than the post and if that autosave is different than the post.
    246246if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
    247247    foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) {
Note: See TracChangeset for help on using the changeset viewer.