Skip to content

Commit

Permalink
Tweak prevent PHP Notice: Function _load_textdomain_just_in_time
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezbrito committed Dec 5, 2024
1 parent 12660bf commit b31d565
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ protected function setup( $file ) {
if ( ! function_exists( 'get_plugin_data' ) ) {
require ABSPATH . 'wp-admin/includes/plugin.php';
}

$data = get_plugin_data( $file );

$data = get_plugin_data( $file, true, false );
$this->set( 'name', $data['Name'] ?? '' );
$this->set( 'version', $data['Version'] ?? '' );
$this->headers = new Fluent( $data );
Expand Down

0 comments on commit b31d565

Please sign in to comment.