| @@ -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' ), |