Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 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-custom-background.php

    r46088 r47122  
    125125
    126126        if ( isset( $_POST['remove-background'] ) ) {
    127             // @TODO: Uploaded files are not removed here.
     127            // @todo Uploaded files are not removed here.
    128128            check_admin_referer( 'custom-background-remove', '_wpnonce-custom-background-remove' );
    129129            set_theme_mod( 'background_image', '' );
     
    285285            }
    286286            ?>
    287     <div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?>
     287    <div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // Must be double quote, see above. ?>
    288288            <?php if ( $background_image_thumb ) { ?>
    289289        <img class="custom-background-image" src="<?php echo $background_image_thumb; ?>" style="visibility:hidden;" alt="" /><br />
     
    504504        $filename = wp_basename( $file );
    505505
    506         // Construct the object array
     506        // Construct the object array.
    507507        $object = array(
    508508            'post_title'     => $filename,
     
    513513        );
    514514
    515         // Save the data
     515        // Save the data.
    516516        $id = wp_insert_attachment( $object, $file );
    517517
    518         // Add the meta-data
     518        // Add the metadata.
    519519        wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
    520520        update_post_meta( $id, '_wp_attachment_is_custom_background', get_option( 'stylesheet' ) );
     
    526526
    527527        /** This action is documented in wp-admin/includes/class-custom-image-header.php */
    528         do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication
     528        do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication.
    529529        $this->updated = true;
    530530    }
Note: See TracChangeset for help on using the changeset viewer.