mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Populate playlist setting values with their default value if they don't exist while parsing shortcode attributes.
Props kovshenin. See #26631. git-svn-id: https://develop.svn.wordpress.org/trunk@27308 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -396,6 +396,10 @@
|
||||
|
||||
if ( -1 !== jQuery.inArray( prop, ['playlist', 'video-playlist'] ) ) {
|
||||
_.each(['tracknumbers', 'tracklist', 'images', 'artists'], function (setting) {
|
||||
if ( 'undefined' === typeof attrs[ '_' + setting ] ) {
|
||||
attrs[ '_' + setting ] = wp.media[ prop ].defaults[ setting ];
|
||||
}
|
||||
|
||||
if ( attrs['_' + setting] ) {
|
||||
attrs[setting] = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user