Changeset 3117803
- Timestamp:
- 07/14/2024 04:39:17 PM (21 months ago)
- Location:
- streamweasels-youtube-integration/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
public/class-streamweasels-youtube-public.php (modified) (3 diffs)
-
streamweasels-youtube.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
streamweasels-youtube-integration/trunk/README.txt
r3115055 r3117803 4 4 Requires at least: 5.0 5 5 Tested up to: 6.5 6 Stable tag: 1. 2.96 Stable tag: 1.3.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 85 85 == Changelog == 86 86 87 = 1. 2.9=87 = 1.3.0 = 88 88 * fixed an issue with undefined variables 89 89 * updating freemius -
streamweasels-youtube-integration/trunk/public/class-streamweasels-youtube-public.php
r3115055 r3117803 204 204 $layout = sanitize_text_field( $args['layout'] ?? $options['swyi_layout'] ?? 'wall' ); 205 205 $titleOverride = sanitize_text_field( $args['channel-title'] ?? '' ); 206 $hideShorts = sanitize_text_field( $args['hide-shorts'] ?? $optionsWall['swyi_wall_hide_shorts'] ?? 0 ); 207 $shortIds = ''; 206 208 $embed = 'page'; 207 209 $autoplay = 0; … … 273 275 } else { 274 276 $inlineScriptHandle = $this->plugin_name; 277 } 278 if ( $hideShorts && $layout == 'wall' && $youtubeChannelID !== '' && $youtubeAPIKey !== '' && $youtubePlaylistID == '' && $youtubeLiveStreamID == '' ) { 279 $youTubeAPI = new SWYI_YouTube_API(); 280 $shortIds = $youTubeAPI->check_shorts( $youtubeAPIKey, $youtubeChannelID ); 275 281 } 276 282 wp_add_inline_script( $inlineScriptHandle, 'const streamWeaselsYouTubeVars' . $uuid . ' = ' . json_encode( array( … … 299 305 'hoverColour' => '', 300 306 'enableCache' => '', 301 'hideShorts' => '',302 'shortsIds' => '',307 'hideShorts' => (int) $hideShorts, 308 'shortsIds' => esc_attr( $shortIds ), 303 309 'translationsLive' => wp_kses_post( $translationsLive ), 304 310 'translationsViews' => wp_kses_post( $translationsViews ), -
streamweasels-youtube-integration/trunk/streamweasels-youtube.php
r3115055 r3117803 16 16 * Plugin Name: SW YouTube Integration - Blocks and Shortcodes for Embedding YouTube 17 17 * Description: Embed YouTube content like Shorts, Video and Live Streams with our collection of YouTube Blocks and Shortcodes. 18 * Version: 1. 2.918 * Version: 1.3.0 19 19 * Author: StreamWeasels 20 20 * Author URI: https://www.streamweasels.com/ … … 33 33 * Rename this for your plugin and update it as you release new versions. 34 34 */ 35 define( 'STREAMWEASELS_YOUTUBE_VERSION', '1. 2.9' );35 define( 'STREAMWEASELS_YOUTUBE_VERSION', '1.3.0' ); 36 36 if ( !defined( 'SWYI_PLUGIN_DIR' ) ) { 37 37 define( 'SWYI_PLUGIN_DIR', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.