WordPress.org

Make WordPress Core

Ticket #40231: 40231.5.diff

File 40231.5.diff, 1.4 KB (added by westonruter, 2 years ago)

Add since tags

  • src/wp-admin/custom-header.php

    diff --git src/wp-admin/custom-header.php src/wp-admin/custom-header.php
    index 5cc64ef7bf..1e1febcc4e 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         * @since 3.9.0
     1310         *
     1311         * @param WP_Customize_Manager $wp_customize Customize manager.
    13091312         */
    13101313        public function customize_set_last_used( $wp_customize ) {
    13111314                $data = $wp_customize->get_setting( 'header_image_data' )->post_value();
    wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> 
    13201323        }
    13211324
    13221325        /**
     1326         * Gets the details of default header images if defined.
     1327         *
     1328         * @since 3.9.0
    13231329         *
    1324          * @return array
     1330         * @return array Default header images.
    13251331         */
    13261332        public function get_default_header_images() {
    13271333                $this->process_default_headers();
    wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> 
    13601366        }
    13611367
    13621368        /**
     1369         * Gets the previously uploaded header images.
     1370         *
     1371         * @since 3.9.0
    13631372         *
    1364          * @return array
     1373         * @return array Uploaded header images.
    13651374         */
    13661375        public function get_uploaded_header_images() {
    13671376                $header_images = get_uploaded_header_images();