PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / 2.6.3
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels v2.6.3
2.9.1 2.9.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 2.0.0 2.1.0 2.2.0 2.3.2 2.3.3 2.3.5 2.3.6 2.3.8 2.3.9 2.4.3 All 37 releases
← All changes | block/block.php +12 -4 2.3.22.6.3 View file →
@@ -61,10 +61,9 @@
61 61 'ayg_block',
62 62 array(
63 63 'options' => $fields,
64 64 'i18n' => array(
65 - 'selected_color' => __( 'Selected Color', 'automatic-youtube-gallery' ),
66 - 'is_loading' => __( 'Loading...', 'automatic-youtube-gallery' )
65 + 'selected_color' => __( 'Selected Color', 'automatic-youtube-gallery' )
67 66 )
68 67 )
69 68 );
70 69 }
@@ -123,10 +122,19 @@
123 122 if ( ! empty( $atts['is_admin'] ) ) {
124 123 $atts['autoplay'] = false;
125 124 }
126 125
127 - if ( ! empty( $atts['uid'] ) ) {
128 - $atts['uid'] = md5( $atts['uid'] );
126 + // Deprecated since v2.5.8. Retained for backward compatibility.
127 + if ( ! empty( $atts['uid'] ) ) {
128 + $atts['deprecated_uid'] = md5( $atts['uid'] );
129 + unset( $atts['uid'] );
130 + }
131 +
132 + // If popup is enabled and type is video, force theme to popup
133 + if ( isset( $atts['popup'] ) && ! empty( $atts['popup'] ) ) {
134 + if ( isset( $atts['type'] ) && 'video' == $atts['type'] ) {
135 + $atts['theme'] = 'popup';
136 + }
129 137 }
130 138
131 139 // Output
132 140 $output = '<div ' . get_block_wrapper_attributes() . '>';