WordPress.org

Make WordPress Core

Ticket #40231: 40231.4.diff

File 40231.4.diff, 1.3 KB (added by westonruter, 2 years ago)
  • src/wp-admin/custom-header.php

    diff --git src/wp-admin/custom-header.php src/wp-admin/custom-header.php
    index 5cc64ef7bf..880caddfde 100644
    wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> 
    13041304        }
    13051305
    13061306        /**
     1307         * Updates the last-used postmeta on a header image attachment after saving a new header image via the customizer.
    13071308         *
    1308          * @param WP_Customize_Manager $wp_customize
     1309         * @param WP_Customize_Manager $wp_customize Customize manager.
    13091310         */
    13101311        public function customize_set_last_used( $wp_customize ) {
    13111312                $data = $wp_customize->get_setting( 'header_image_data' )->post_value();
    wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> 
    13201321        }
    13211322
    13221323        /**
     1324         * Gets the details of default header images if defined.
    13231325         *
    1324          * @return array
     1326         * @return array Default header images.
    13251327         */
    13261328        public function get_default_header_images() {
    13271329                $this->process_default_headers();
    wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> 
    13601362        }
    13611363
    13621364        /**
     1365         * Gets the previously uploaded header images.
    13631366         *
    1364          * @return array
     1367         * @return array Uploaded header images.
    13651368         */
    13661369        public function get_uploaded_header_images() {
    13671370                $header_images = get_uploaded_header_images();