PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / 2.3.2
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels v2.3.2
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 | includes/functions.php +1 -10 2.4.32.3.2 View file →
@@ -148,9 +148,9 @@
148 148 ob_start();
149 149 include ayg_get_template( AYG_DIR . "public/templates/theme-{$theme}.php", $attributes['theme'] );
150 150 return ob_get_clean();
151 151 } else {
152 - return sprintf( '<div class="ayg ayg-error">%s</div>', wp_kses_post( $response->error_message ) );
152 + return '<p class="ayg-error">' . $response->error_message . '</p>';
153 153 }
154 154 }
155 155
156 156 /**
@@ -375,9 +375,8 @@
375 375 'previous_button_label' => __( 'Previous', 'automatic-youtube-gallery' ),
376 376 'next_button_label' => __( 'Next', 'automatic-youtube-gallery' )
377 377 ),
378 378 'ayg_player_settings' => array(
379 - 'player_width' => '',
380 379 'player_ratio' => 56.25,
381 380 'player_title' => 1,
382 381 'player_description' => 1,
383 382 'autoplay' => 0,
@@ -711,16 +710,8 @@
711 710 function ayg_get_player_settings_fields() {
712 711 $player_settings = get_option( 'ayg_player_settings' );
713 712
714 713 $fields = array(
715 - array(
716 - 'name' => 'player_width',
717 - 'label' => __( 'Player Width', 'automatic-youtube-gallery' ),
718 - 'description' => __( 'In pixels. Maximum width of the player. Leave this field empty to scale 100% of its enclosing container/html element.', 'automatic-youtube-gallery' ),
719 - 'type' => 'text',
720 - 'value' => isset( $player_settings['player_width'] ) ? $player_settings['player_width'] : '',
721 - 'sanitize_callback' => 'ayg_sanitize_int'
722 - ),
723 714 array(
724 715 'name' => 'player_ratio',
725 716 'label' => __( 'Player Height (Ratio)', 'automatic-youtube-gallery' ),
726 717 'description' => __( 'Select the ratio value used to calculate the player height.', 'automatic-youtube-gallery' ),