Plugin Directory

Changeset 3210162


Ignore:
Timestamp:
12/19/2024 01:07:04 AM (16 months ago)
Author:
GamerZ
Message:

Deploying wp-useronline from GitHub

Location:
wp-useronline/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-useronline/trunk/readme.txt

    r3208307 r3210162  
    55Requires at least: 4.6 
    66Tested up to: 6.7 
    7 Stable tag: 2.88.6 
     7Stable tag: 2.88.7 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    8686
    8787## 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
    8892### 2.88.6
    8993* FIXED: Revert WP SCB Framework to use plugins_loaded hook
  • wp-useronline/trunk/scb/load.php

    r3208307 r3210162  
    4040        }
    4141
    42         if ( did_action( 'plugins_loaded' ) ) {
     42        if ( did_action( 'init' ) ) {
    4343            self::load();
    4444        } else {
    45             add_action( 'plugins_loaded', array( __CLASS__, 'load' ), 9, 0 );
     45            add_action( 'init', array( __CLASS__, 'load' ), 9, 0 );
    4646        }
    4747    }
  • wp-useronline/trunk/wp-useronline.php

    r3208307 r3210162  
    44Plugin URI: https://lesterchan.net/portfolio/programming/php/
    55Description: Enable you to display how many users are online on your Wordpress site
    6 Version: 2.88.6
     6Version: 2.88.7
    77Author: Lester 'GaMerZ' Chan
    88Author URI: https://lesterchan.net
     
    9595scb_init( '_useronline_init' );
    9696
     97add_action( 'plugins_loaded', 'useronline_init_widget' );
     98function 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.