Ticket #39125: 39125.diff
File 39125.diff, 1.1 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-customize-manager.php
3889 3889 $this->add_setting( 'external_header_video', array( 3890 3890 'theme_supports' => array( 'custom-header', 'video' ), 3891 3891 'transport' => 'postMessage', 3892 'sanitize_callback' => 'esc_url_raw',3892 'sanitize_callback' => array( $this, '_sanitize_external_header_video' ), 3893 3893 'validate_callback' => array( $this, '_validate_external_header_video' ), 3894 3894 ) ); 3895 3895 … … 4312 4312 } 4313 4313 4314 4314 /** 4315 * Callback for sanitizing the external_header_video value. 4316 * 4317 * @since 4.7.1 4318 * 4319 * @param string $value 4320 * @return string 4321 */ 4322 public function _sanitize_external_header_video( $value ) { 4323 return esc_url_raw( trim( $value ) ); 4324 } 4325 4326 /** 4315 4327 * Callback for rendering the custom logo, used in the custom_logo partial. 4316 4328 * 4317 4329 * This method exists because the partial object and context data are passed