Changeset 60678
- Timestamp:
- 08/26/2025 11:19:47 PM (6 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
-
src/wp-includes/media.php (modified) (3 diffs)
-
tests/phpunit/tests/media/wpPlaylistShortcode.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r60641 r60678 3057 3057 ++$instance; 3058 3058 3059 static $is_loaded = false; 3060 3059 3061 if ( ! empty( $attr['ids'] ) ) { 3060 3062 // 'ids' is explicitly ordered, unless you specify otherwise. … … 3238 3240 ob_start(); 3239 3241 3240 if ( 1 === $instance) {3242 if ( ! $is_loaded ) { 3241 3243 /** 3242 3244 * Prints and enqueues playlist scripts, styles, and JavaScript templates. … … 3248 3250 */ 3249 3251 do_action( 'wp_playlist_scripts', $atts['type'], $atts['style'] ); 3252 $is_loaded = true; 3250 3253 } 3251 3254 ?>
Note: See TracChangeset
for help on using the changeset viewer.