• Resolved francescfp

    (@francescfp)


    Hi! I need to know if with this plugin (v 2.6.4) I can update to WC 8.0.2 and WP 6.3.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Compatibility with WordPress 6.3 seems fine in my tests.

    I can’t comment on specific versions of other plugins. Loco Translate is a PO file editor. It can be used with any plugin, but localisation issues with specific plugins are beyond the scope of this support.

    Hello @timwhitlock ,

    Although it doesn’t have errors, PHPCS is still triggered by the has_magic_quotes function.

    Could you update if to tell PHPCS to ignore the line as the PHP version check is done manually to avoid error?

    private static function has_magic_quotes(){
            // phpcs:ignore -- PHP version is checked prior to deprecated function call.
            return version_compare(PHP_VERSION,'7.4','<') && ( get_magic_quotes_gpc() || get_magic_quotes_runtime() );
        }

    Same in the DebugController line 158 and following.

    if( version_compare(PHP_VERSION,'7.4','<') ){
                // phpcs:disable -- PHP version is checked prior to deprecated function call.
                if( get_magic_quotes_gpc() ){
                    Loco_error_AdminNotices::info('You have "magic_quotes_gpc" enabled. We recommend you disable this in PHP');
                }
                if( get_magic_quotes_runtime() ){
                    Loco_error_AdminNotices::info('You have "magic_quotes_runtime" enabled. We recommend you disable this in PHP');
                }
                if( version_compare(PHP_VERSION,'5.6.20','<') ){
                    Loco_error_AdminNotices::info('Your PHP version is very old. We recommend you upgrade');
                }
                // phpcs:enable
            }

    Plugin Author Tim W

    (@timwhitlock)

    Thanks for this information. I am about to make a release, probably today so will add these comments.

    There are of course many lines of code that apply to older versions of PHP as the minimum PHP version (5.6) is aligned with older WordPress (min 5.2). Please let me know if there are other warnings that could be suppressed.

    Plugin Author Tim W

    (@timwhitlock)

    This is the dev branch now.

    If you’re evaluating compatibility with new versions of WordPress, or other plugins, it should be done against this, because it will become v 2.6.5 quite shortly. Generally the trunk is stable, but mistakes happen. Best tested in a dev or staging environment.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Compatibility with WC 8.0.2 and WP 6.3’ is closed to new replies.