Changeset 3318124
- Timestamp:
- 06/26/2025 09:41:57 AM (9 months ago)
- Location:
- dmimag-liveblog
- Files:
-
- 28 added
- 4 edited
-
tags/1.2.4 (added)
-
tags/1.2.4/admin (added)
-
tags/1.2.4/admin/class-dmimag-liveblog-admin.php (added)
-
tags/1.2.4/admin/css (added)
-
tags/1.2.4/admin/css/dmimag-liveblog-admin.css (added)
-
tags/1.2.4/admin/index.php (added)
-
tags/1.2.4/admin/js (added)
-
tags/1.2.4/admin/js/dmimag-liveblog-admin.js (added)
-
tags/1.2.4/admin/partials (added)
-
tags/1.2.4/admin/partials/dmimag-liveblog-admin-display.php (added)
-
tags/1.2.4/dmimag-liveblog.php (added)
-
tags/1.2.4/includes (added)
-
tags/1.2.4/includes/class-dmimag-liveblog-activator.php (added)
-
tags/1.2.4/includes/class-dmimag-liveblog-deactivator.php (added)
-
tags/1.2.4/includes/class-dmimag-liveblog-loader.php (added)
-
tags/1.2.4/includes/class-dmimag-liveblog.php (added)
-
tags/1.2.4/includes/index.php (added)
-
tags/1.2.4/index.php (added)
-
tags/1.2.4/license.txt (added)
-
tags/1.2.4/public (added)
-
tags/1.2.4/public/class-dmimag-liveblog-public.php (added)
-
tags/1.2.4/public/css (added)
-
tags/1.2.4/public/css/dmimag-liveblog-public.css (added)
-
tags/1.2.4/public/index.php (added)
-
tags/1.2.4/public/js (added)
-
tags/1.2.4/public/js/dmimag-liveblog-public.js (added)
-
tags/1.2.4/readme.txt (added)
-
tags/1.2.4/uninstall.php (added)
-
trunk/dmimag-liveblog.php (modified) (2 diffs)
-
trunk/includes/class-dmimag-liveblog.php (modified) (1 diff)
-
trunk/public/class-dmimag-liveblog-public.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dmimag-liveblog/trunk/dmimag-liveblog.php
r3317020 r3318124 17 17 * Plugin URI: https://dmimag.site 18 18 * Description: Create an unlimited of Live broadcast that easily fit into your website design. 19 * Version: 1.2. 319 * Version: 1.2.4 20 20 * Author: dmimag 21 21 * Author URI: https://dmimag.site/ … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'DMIMAG_LIVEBLOG_VERSION', '1.2. 3' );37 define( 'DMIMAG_LIVEBLOG_VERSION', '1.2.4' ); 38 38 39 39 /** -
dmimag-liveblog/trunk/includes/class-dmimag-liveblog.php
r3317020 r3318124 72 72 $this->version = DMIMAG_LIVEBLOG_VERSION; 73 73 } else { 74 $this->version = '1.2. 3';74 $this->version = '1.2.4'; 75 75 } 76 76 -
dmimag-liveblog/trunk/public/class-dmimag-liveblog-public.php
r3317020 r3318124 239 239 if ( isset( $atts['id'] ) && is_numeric( $atts['id'] ) ) { 240 240 241 $livebroadcast_completed = get_post_meta( $atts['id'], '_dlb_livebroadcast_completed', true );242 243 if ( ! isset( $livebroadcast_completed ) or $livebroadcast_completed != 'on' ) {244 245 $livebroadcast_interval = get_post_meta( $atts['id'], '_dlb_livebroadcast_interval', true );246 247 if ( isset( $livebroadcast_interval ) && is_numeric( $livebroadcast_interval ) ) {248 $livebroadcast_interval = 1000 * 60 * intval( $livebroadcast_interval );249 } else {250 $livebroadcast_interval = 1000 * 60 * 5;251 }252 253 add_action( 'wp_enqueue_scripts', function() use ( $livebroadcast_interval ) {254 wp_add_inline_script( $this->plugin_name, 'var dmimag_livebroadcast_interval = ' . esc_js( $livebroadcast_interval ), 'before' );255 });256 257 }258 259 241 /** 260 242 * Including JS and CSS only when loading shortcode … … 265 247 266 248 ob_start(); 249 250 $livebroadcast_completed = get_post_meta( $atts['id'], '_dlb_livebroadcast_completed', true ); 251 252 if ( ! isset( $livebroadcast_completed ) or $livebroadcast_completed != 'on' ) { 253 254 $livebroadcast_interval = get_post_meta( $atts['id'], '_dlb_livebroadcast_interval', true ); 255 256 if ( isset( $livebroadcast_interval ) && is_numeric( $livebroadcast_interval ) ) { 257 $livebroadcast_interval = 1000 * 60 * intval( $livebroadcast_interval ); 258 } else { 259 $livebroadcast_interval = 1000 * 60 * 5; 260 } 261 262 /** 263 * https://core.trac.wordpress.org/ticket/54958 264 */ 265 /* 266 add_action( 'wp_enqueue_scripts', function() use ( $livebroadcast_interval ) { 267 wp_add_inline_script( $this->plugin_name, 'var dmimag_livebroadcast_interval = ' . esc_js( $livebroadcast_interval ), 'before' ); 268 }); 269 */ 270 ?> 271 <script>var dmimag_livebroadcast_interval = <?php echo esc_js( $livebroadcast_interval ); ?>;</script> 272 <?php 273 } 267 274 ?> 268 275 <div id="dmilb" class="dmilb liveblog live-broadcast live-broadcast-<?php echo esc_attr( $atts['id'] ); ?>" data-dmilb="<?php echo esc_attr( $atts['id'] ); ?>"> -
dmimag-liveblog/trunk/readme.txt
r3317020 r3318124 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 38 Stable tag: 1.2.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 44 44 == Changelog == 45 45 46 = 1.2.4 = 47 - Fixed a bug related to wp_add_inline_script 48 46 49 = 1.2.3 = 47 50 - Including JS and CSS only when loading plugin shortcode
Note: See TracChangeset
for help on using the changeset viewer.