Skip to content

Commit

Permalink
Fixed issue with the notice "Function _load_textdomain_just_in_time w…
Browse files Browse the repository at this point in the history
…as called incorrectly."
  • Loading branch information
Alexus450 committed Nov 21, 2024
1 parent d9b85ca commit 69924c0
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/classes/class-wpzoom-plugin-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,15 @@ private static function define_constants() {
*
* @since 2.1.1
*/
if ( function_exists( 'get_plugin_data' ) ) {
$plugin_data = get_plugin_data( WPZOOM_RCB_PLUGIN_FILE );
} else {
$plugin_data = get_file_data(
WPZOOM_RCB_PLUGIN_FILE,
array(
'Version' => 'Version',
'TextDomain' => 'Text Domain',
'AuthorURI' => 'Author URI',
),
'plugin'
);
}
$plugin_data = get_file_data(
WPZOOM_RCB_PLUGIN_FILE,
array(
'Version' => 'Version',
'TextDomain' => 'Text Domain',
'AuthorURI' => 'Author URI',
),
'plugin'
);

define( 'WPZOOM_RCB_VERSION', $plugin_data['Version'] );
define( 'WPZOOM_RCB_TEXT_DOMAIN', $plugin_data['TextDomain'] );
Expand Down

0 comments on commit 69924c0

Please sign in to comment.