Changeset 3210162
- Timestamp:
- 12/19/2024 01:07:04 AM (16 months ago)
- Location:
- wp-useronline/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
scb/load.php (modified) (1 diff)
-
wp-useronline.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-useronline/trunk/readme.txt
r3208307 r3210162 5 5 Requires at least: 4.6 6 6 Tested up to: 6.7 7 Stable tag: 2.88. 67 Stable tag: 2.88.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 86 86 87 87 ## Changelog 88 ### 2.88.7 89 * FIXED: WP SCB Framework use init hook 90 * FIXED: Widget now loads seperately in it is own hook 91 88 92 ### 2.88.6 89 93 * FIXED: Revert WP SCB Framework to use plugins_loaded hook -
wp-useronline/trunk/scb/load.php
r3208307 r3210162 40 40 } 41 41 42 if ( did_action( ' plugins_loaded' ) ) {42 if ( did_action( 'init' ) ) { 43 43 self::load(); 44 44 } else { 45 add_action( ' plugins_loaded', array( __CLASS__, 'load' ), 9, 0 );45 add_action( 'init', array( __CLASS__, 'load' ), 9, 0 ); 46 46 } 47 47 } -
wp-useronline/trunk/wp-useronline.php
r3208307 r3210162 4 4 Plugin URI: https://lesterchan.net/portfolio/programming/php/ 5 5 Description: Enable you to display how many users are online on your Wordpress site 6 Version: 2.88. 66 Version: 2.88.7 7 7 Author: Lester 'GaMerZ' Chan 8 8 Author URI: https://lesterchan.net … … 95 95 scb_init( '_useronline_init' ); 96 96 97 add_action( 'plugins_loaded', 'useronline_init_widget' ); 98 function useronline_init_widget() { 99 require_once __DIR__ . '/scb/Widget.php'; 100 require_once __DIR__ . '/widget.php'; 101 scbWidget::init( 'UserOnline_Widget', __FILE__, 'useronline' ); 102 }
Note: See TracChangeset
for help on using the changeset viewer.