Plugin Directory

Changeset 3422004


Ignore:
Timestamp:
12/17/2025 02:25:17 PM (4 months ago)
Author:
them.es
Message:

updated trunk

Location:
billy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • billy/tags/2.1.0/billy.php

    r3421992 r3422004  
    133133
    134134/**
    135  * On load:
    136  * 1. Test compatibility.
    137  * 2. Initialize plugin.
    138  *
    139  * @return void
    140  */
    141 function billy_plugins_loaded(): void {
     135 * On admin init: Test compatibility.
     136 *
     137 * @return void
     138 */
     139function billy_admin_init(): void {
    142140    // TODO: Temporary workaround to fix a potential "Declaration of Billy_Pro::init() must be compatible with Billy::init(): void" fatal error on plugin activation!
    143141    if ( defined( 'BILLY_PRO_PLUGIN_FILE' ) && version_compare( get_plugin_data( BILLY_PRO_PLUGIN_FILE )['Version'], '2.1.0', '<' ) ) {
     
    172170        add_action( 'admin_notices', 'billy_temp_pdfdirectory_not_writable_admin_notice' );
    173171    }
    174 
     172}
     173add_action( 'admin_init', 'billy_admin_init', 998 );
     174
     175/**
     176 * On load: Initialize plugin.
     177 *
     178 * @return void
     179 */
     180function billy_plugins_loaded(): void {
    175181    // Initialize Classes.
    176182    include_once __DIR__ . '/inc/class-billy.php';
  • billy/trunk/billy.php

    r3421992 r3422004  
    133133
    134134/**
    135  * On load:
    136  * 1. Test compatibility.
    137  * 2. Initialize plugin.
    138  *
    139  * @return void
    140  */
    141 function billy_plugins_loaded(): void {
     135 * On admin init: Test compatibility.
     136 *
     137 * @return void
     138 */
     139function billy_admin_init(): void {
    142140    // TODO: Temporary workaround to fix a potential "Declaration of Billy_Pro::init() must be compatible with Billy::init(): void" fatal error on plugin activation!
    143141    if ( defined( 'BILLY_PRO_PLUGIN_FILE' ) && version_compare( get_plugin_data( BILLY_PRO_PLUGIN_FILE )['Version'], '2.1.0', '<' ) ) {
     
    172170        add_action( 'admin_notices', 'billy_temp_pdfdirectory_not_writable_admin_notice' );
    173171    }
    174 
     172}
     173add_action( 'admin_init', 'billy_admin_init', 998 );
     174
     175/**
     176 * On load: Initialize plugin.
     177 *
     178 * @return void
     179 */
     180function billy_plugins_loaded(): void {
    175181    // Initialize Classes.
    176182    include_once __DIR__ . '/inc/class-billy.php';
Note: See TracChangeset for help on using the changeset viewer.