Changeset 3422004
- Timestamp:
- 12/17/2025 02:25:17 PM (4 months ago)
- Location:
- billy
- Files:
-
- 2 edited
-
tags/2.1.0/billy.php (modified) (2 diffs)
-
trunk/billy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
billy/tags/2.1.0/billy.php
r3421992 r3422004 133 133 134 134 /** 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 */ 139 function billy_admin_init(): void { 142 140 // TODO: Temporary workaround to fix a potential "Declaration of Billy_Pro::init() must be compatible with Billy::init(): void" fatal error on plugin activation! 143 141 if ( defined( 'BILLY_PRO_PLUGIN_FILE' ) && version_compare( get_plugin_data( BILLY_PRO_PLUGIN_FILE )['Version'], '2.1.0', '<' ) ) { … … 172 170 add_action( 'admin_notices', 'billy_temp_pdfdirectory_not_writable_admin_notice' ); 173 171 } 174 172 } 173 add_action( 'admin_init', 'billy_admin_init', 998 ); 174 175 /** 176 * On load: Initialize plugin. 177 * 178 * @return void 179 */ 180 function billy_plugins_loaded(): void { 175 181 // Initialize Classes. 176 182 include_once __DIR__ . '/inc/class-billy.php'; -
billy/trunk/billy.php
r3421992 r3422004 133 133 134 134 /** 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 */ 139 function billy_admin_init(): void { 142 140 // TODO: Temporary workaround to fix a potential "Declaration of Billy_Pro::init() must be compatible with Billy::init(): void" fatal error on plugin activation! 143 141 if ( defined( 'BILLY_PRO_PLUGIN_FILE' ) && version_compare( get_plugin_data( BILLY_PRO_PLUGIN_FILE )['Version'], '2.1.0', '<' ) ) { … … 172 170 add_action( 'admin_notices', 'billy_temp_pdfdirectory_not_writable_admin_notice' ); 173 171 } 174 172 } 173 add_action( 'admin_init', 'billy_admin_init', 998 ); 174 175 /** 176 * On load: Initialize plugin. 177 * 178 * @return void 179 */ 180 function billy_plugins_loaded(): void { 175 181 // Initialize Classes. 176 182 include_once __DIR__ . '/inc/class-billy.php';
Note: See TracChangeset
for help on using the changeset viewer.