Changeset 3486796
- Timestamp:
- 03/19/2026 07:41:40 PM (2 weeks ago)
- Location:
- sdaweb-channels-for-youtube/trunk
- Files:
-
- 15 edited
-
admin/views/channel-edit.php (modified) (1 diff)
-
admin/views/channel-list.php (modified) (1 diff)
-
admin/views/dashboard.php (modified) (1 diff)
-
admin/views/settings-page.php (modified) (1 diff)
-
blocks/youtube-channel/block.json (modified) (1 diff)
-
blocks/youtube-channel/render.php (modified) (1 diff)
-
includes/class-rest-api.php (modified) (1 diff)
-
public/views/channel-header.php (modified) (1 diff)
-
public/views/grid.php (modified) (1 diff)
-
public/views/lightbox.php (modified) (1 diff)
-
public/views/slider.php (modified) (1 diff)
-
public/views/tabs.php (modified) (1 diff)
-
public/views/video-card.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
sdaweb-channels-for-youtube.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sdaweb-channels-for-youtube/trunk/admin/views/channel-edit.php
r3474789 r3486796 3 3 exit; 4 4 } 5 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 5 6 6 7 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Admin page routing, no data modification. -
sdaweb-channels-for-youtube/trunk/admin/views/channel-list.php
r3474789 r3486796 3 3 exit; 4 4 } 5 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 5 6 6 7 $list_table = new SDAWCHFO_Channel_List_Table(); -
sdaweb-channels-for-youtube/trunk/admin/views/dashboard.php
r3485029 r3486796 3 3 exit; 4 4 } 5 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 5 6 6 7 $channel_count = SDAWCHFO_Channel_Manager::count(); -
sdaweb-channels-for-youtube/trunk/admin/views/settings-page.php
r3477428 r3486796 3 3 exit; 4 4 } 5 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 5 6 ?> 6 7 <div class="wrap sdawchfo-settings"> -
sdaweb-channels-for-youtube/trunk/blocks/youtube-channel/block.json
r3485052 r3486796 3 3 "apiVersion": 3, 4 4 "name": "sdawchfo/youtube-channel", 5 "version": "1.4. 19",5 "version": "1.4.20", 6 6 "title": "YouTube Channel", 7 7 "category": "embed", -
sdaweb-channels-for-youtube/trunk/blocks/youtube-channel/render.php
r3485052 r3486796 10 10 exit; 11 11 } 12 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 12 13 13 14 $channel_ids = $attributes['channelIds'] ?? array(); -
sdaweb-channels-for-youtube/trunk/includes/class-rest-api.php
r3474789 r3486796 13 13 14 14 public static function register_routes() { 15 // GET /sdawchfo/v1/channels — list all channels (public ).15 // GET /sdawchfo/v1/channels — list all channels (public, read-only). 16 16 register_rest_route( self::REST_NAMESPACE, '/channels', array( 17 17 'methods' => WP_REST_Server::READABLE, 18 18 'callback' => array( __CLASS__, 'get_channels' ), 19 'permission_callback' => '__return_true', 20 ) ); 21 22 // GET /sdawchfo/v1/videos — query videos (public ).19 'permission_callback' => '__return_true', // Public read-only endpoint — serves cached channel data, no data modification 20 ) ); 21 22 // GET /sdawchfo/v1/videos — query videos (public, read-only). 23 23 register_rest_route( self::REST_NAMESPACE, '/videos', array( 24 24 'methods' => WP_REST_Server::READABLE, 25 25 'callback' => array( __CLASS__, 'get_videos' ), 26 'permission_callback' => '__return_true', 26 'permission_callback' => '__return_true', // Public read-only endpoint — serves cached video data, no data modification 27 27 'args' => array( 28 28 'channel_id' => array( -
sdaweb-channels-for-youtube/trunk/public/views/channel-header.php
r3485035 r3486796 11 11 exit; 12 12 } 13 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 13 14 14 15 $channel = $data['channel']; -
sdaweb-channels-for-youtube/trunk/public/views/grid.php
r3485035 r3486796 11 11 exit; 12 12 } 13 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 13 14 14 15 $videos = isset( $data['videos'] ) ? $data['videos'] : array(); -
sdaweb-channels-for-youtube/trunk/public/views/lightbox.php
r3474789 r3486796 7 7 exit; 8 8 } 9 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 9 10 10 11 // Only render lightbox once per page. -
sdaweb-channels-for-youtube/trunk/public/views/slider.php
r3485035 r3486796 11 11 exit; 12 12 } 13 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 13 14 14 15 $videos = isset( $data['videos'] ) ? $data['videos'] : array(); -
sdaweb-channels-for-youtube/trunk/public/views/tabs.php
r3485035 r3486796 12 12 exit; 13 13 } 14 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 14 15 15 16 $channels = isset( $data['channels'] ) ? $data['channels'] : array(); -
sdaweb-channels-for-youtube/trunk/public/views/video-card.php
r3485035 r3486796 13 13 exit; 14 14 } 15 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables set by renderer 15 16 16 17 $video = $data['video']; -
sdaweb-channels-for-youtube/trunk/readme.txt
r3485052 r3486796 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.4. 197 Stable tag: 1.4.20 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 212 212 213 213 == Changelog == 214 215 = 1.4.20 = 216 * Fixed author header format to match WordPress.org SDAweb standard 217 * Added Tested up to header in main plugin file 218 * Added constant definition guards to prevent redefinition conflicts 219 * Added phpcs:disable comments to all template files to suppress false-positive global variable warnings 220 * Added justification comments on public REST API permission callbacks 214 221 215 222 = 1.4.19 = -
sdaweb-channels-for-youtube/trunk/sdaweb-channels-for-youtube.php
r3485029 r3486796 3 3 * Plugin Name: SDAweb Channels for YouTube 4 4 * Description: Curate YouTube channels and display their videos on your site with grids, tabs, and lightbox playback. 5 * Version: 1.4. 196 * Author: SDAweb .no — Vinjar Romsvik, Christer Andvik, Rune Stavdal5 * Version: 1.4.20 6 * Author: SDAweb - Rune Stavdal, Vinjar Romsvik, Christer Andvik 7 7 * Author URI: https://sdaweb.no 8 8 * License: GPL-2.0-or-later … … 12 12 * Requires at least: 5.8 13 13 * Requires PHP: 7.4 14 * Tested up to: 6.9 14 15 */ 15 16 … … 18 19 } 19 20 20 define( 'SDAWCHFO_VERSION', '1.4.19' );21 define( 'SDAWCHFO_PLUGIN_FILE', __FILE__ );22 define( 'SDAWCHFO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );23 define( 'SDAWCHFO_PLUGIN_URL', plugin_dir_url( __FILE__ ) );24 define( 'SDAWCHFO_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );21 if ( ! defined( 'SDAWCHFO_VERSION' ) ) define( 'SDAWCHFO_VERSION', '1.4.20' ); 22 if ( ! defined( 'SDAWCHFO_PLUGIN_FILE' ) ) define( 'SDAWCHFO_PLUGIN_FILE', __FILE__ ); 23 if ( ! defined( 'SDAWCHFO_PLUGIN_DIR' ) ) define( 'SDAWCHFO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 24 if ( ! defined( 'SDAWCHFO_PLUGIN_URL' ) ) define( 'SDAWCHFO_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 25 if ( ! defined( 'SDAWCHFO_PLUGIN_BASENAME' ) ) define( 'SDAWCHFO_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 25 26 26 27 require_once SDAWCHFO_PLUGIN_DIR . 'includes/class-plugin.php';
Note: See TracChangeset
for help on using the changeset viewer.