We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Please review and fix.
create_function() is deprecated in setup.php on line 14
` $newfunc = create_function( '', ' global $chery_core_version;
$path = trailingslashit( dirname( __FILE__ ) ) . \'cherry-core.php\'; $data = get_file_data( $path, array( \'version\' => \'Version\' ) ); if ( isset( $data[\'version\'] ) ) { $version = $data[\'version\']; } $old_versions = null; if ( null !== $chery_core_version ) { $old_versions = array_keys( $chery_core_version ); } if ( is_array( $old_versions ) && isset( $old_versions[0] ) ) { $compare = version_compare( $old_versions[0], $version, \'<\' ); if ( $compare ) { $chery_core_version = array(); $chery_core_version[ $version ] = $path; } } else { $chery_core_version = array(); $chery_core_version[ $version ] = $path; }
' );`
Issue fixed
`return function () { global $chery_core_version;
$path = trailingslashit( dirname( __FILE__ ) ) . 'cherry-core.php'; $data = get_file_data( $path, array( 'version' => 'Version' ) ); if ( isset( $data['version'] ) ) { $version = $data['version']; } $old_versions = null; if ( null !== $chery_core_version ) { $old_versions = array_keys( $chery_core_version ); } if ( is_array( $old_versions ) && isset( $old_versions[0] ) ) { $compare = version_compare( $old_versions[0], $version, '<' ); if ( $compare ) { $chery_core_version = array(); $chery_core_version[ $version ] = $path; } } else { $chery_core_version = array(); $chery_core_version[ $version ] = $path; }
}; `
The text was updated successfully, but these errors were encountered:
Thx, the fix is working for me
Sorry, something went wrong.
No branches or pull requests
Hello,
Please review and fix.
create_function() is deprecated in setup.php on line 14
`
$newfunc = create_function( '', '
global $chery_core_version;
' );`
Issue fixed
`return function () {
global $chery_core_version;
};
`
The text was updated successfully, but these errors were encountered: