Changeset 40045 for trunk/src/wp-includes/theme.php
- Timestamp:
- 02/06/2017 02:51:20 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r39888 r40045 1339 1339 $url = esc_url( get_theme_mod( 'external_header_video' ) ); 1340 1340 1341 if ( ! $id && ! $url ) {1342 return false;1343 }1344 1345 1341 if ( $id ) { 1346 1342 // Get the file URL from the attachment ID. 1347 1343 $url = wp_get_attachment_url( $id ); 1344 } 1345 1346 /** 1347 * Filters the header video URL. 1348 * 1349 * @since 4.8.0 1350 * 1351 * @param string $url Header video URL, if available. 1352 */ 1353 $url = apply_filters( 'get_header_video_url', $url ); 1354 1355 if ( ! $id && ! $url ) { 1356 return false; 1348 1357 } 1349 1358
Note: See TracChangeset
for help on using the changeset viewer.