| @@ -61,9 +61,10 @@ | ||
| 61 | 61 | 'ayg_block', |
| 62 | 62 | array( |
| 63 | 63 | 'options' => $fields, |
| 64 | 64 | 'i18n' => array( |
| 65 | - 'selected_color' => __( 'Selected Color', 'automatic-youtube-gallery' ) | |
| 65 | + 'selected_color' => __( 'Selected Color', 'automatic-youtube-gallery' ), | |
| 66 | + 'is_loading' => __( 'Loading...', 'automatic-youtube-gallery' ) | |
| 66 | 67 | ) |
| 67 | 68 | ) |
| 68 | 69 | ); |
| 69 | 70 | } |
| @@ -122,19 +123,10 @@ | ||
| 122 | 123 | if ( ! empty( $atts['is_admin'] ) ) { |
| 123 | 124 | $atts['autoplay'] = false; |
| 124 | 125 | } |
| 125 | 126 | |
| 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 | - } | |
| 127 | + if ( ! empty( $atts['uid'] ) ) { | |
| 128 | + $atts['uid'] = md5( $atts['uid'] ); | |
| 137 | 129 | } |
| 138 | 130 | |
| 139 | 131 | // Output |
| 140 | 132 | $output = '<div ' . get_block_wrapper_attributes() . '>'; |