• Resolved Juhan

    (@juhan108)


    Dear developers!

    Does it still work with WP 4.7.x-4.9.x, as is said in plugin directory ? Unfortunately I cannot test the newest version directly with WP 4.7-4.9; yet it definitely does not work with ClassicPress, wich is based on WP 4.9x. The version 2.2.6 works well; with 3.0 site crashes (I restored the previous version).
    Version 3.0 with WP 6.1.1 works well.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author quadlayers

    (@quadlayers)

    Hello @juhan108

    It should be compatible with wp 4.7+

    Can you please share the php errors you have?

    Thread Starter Juhan

    (@juhan108)

    I cleared the log file from the server. Then I disabled all other plugins and then activated the faulty one WP Menu Icons 3.0.1 (at least for ClassicPress 1.5.2, a fork from WP 4.9.8). And the log I have copied into a file that I will include as shared link.

    The site is in a subfolder /s2; it is a back-up site. Now I switched off again this plugin. (Also front-end gave a white screen.) I hope You can get the needed info. It has been a rule of thumb that the plugins that work with WP 4.9.x also work with CP, but of course there could be exceptions.

    Nevertheless I would use this free plugin with CP: simply it is the best for menu icons.

    https://drive.google.com/file/d/1WM3zgWaEqjUvq3hkLuHpe6lMNnBkX-m8/view?usp=sharing

    Thread Starter Juhan

    (@juhan108)

    There is apparently also an aditional delay getting my responses: I am currently in a certain list, and all my responses need to be manually moderated — once I did a post into wrong section.

    Plugin Author quadlayers

    (@quadlayers)

    Hello @juhan108

    Try this code

    <?php
    
    if(!function_exists('determine_locale') ) {
    
    function determine_locale() {
    
        /**
    
         * Filters the locale for the current request prior to the default determination process.
    
         *
    
         * Using this filter allows to override the default logic, effectively short-circuiting the function.
    
         *
    
         * @since 5.0.0
    
         *
    
         * @param string|null $locale The locale to return and short-circuit. Default null.
    
         */
    
        $determined_locale = apply_filters( 'pre_determine_locale', null );
    
        if ( ! empty( $determined_locale ) && is_string( $determined_locale ) ) {
    
            return $determined_locale;
    
        }
    
        $determined_locale = get_locale();
    
        if ( is_admin() ) {
    
            $determined_locale = get_user_locale();
    
        }
    
        if ( isset( $_GET['_locale'] ) && 'user' === $_GET['_locale'] && wp_is_json_request() ) {
    
            $determined_locale = get_user_locale();
    
        }
    
        $wp_lang = '';
    
        if ( ! empty( $_GET['wp_lang'] ) ) {
    
            $wp_lang = sanitize_text_field( $_GET['wp_lang'] );
    
        } elseif ( ! empty( $_COOKIE['wp_lang'] ) ) {
    
            $wp_lang = sanitize_text_field( $_COOKIE['wp_lang'] );
    
        }
    
        if ( ! empty( $wp_lang ) && ! empty( $GLOBALS['pagenow'] ) && 'wp-login.php' === $GLOBALS['pagenow'] ) {
    
            $determined_locale = $wp_lang;
    
        }
    
        /**
    
         * Filters the locale for the current request.
    
         *
    
         * @since 5.0.0
    
         *
    
         * @param string $locale The locale.
    
         */
    
        return apply_filters( 'determine_locale', $determined_locale );
    
    }
    
    }
    Thread Starter Juhan

    (@juhan108)

    Thank You very much for help!

    Still I am not sure where to put in this code. Yet anyway I am contented with this plugin. Unfortunately my new backup site with WP cancelled working (for some other reason). Otherwise I could have made a rollback and test WP Menu Icons with original WP 4.9.

    Plugin Author quadlayers

    (@quadlayers)

    you can try this code, it has a condition that exclude the function if it exists

    Thread Starter Juhan

    (@juhan108)

    Thank You!

    Plugin Author quadlayers

    (@quadlayers)

    Great!

    We would really appreciate it if you could leave your review here. Your feedback would boost our motivation and help us improve the plugin’s rankings and sustainability of this product.

    https://www.ads-software.com/support/plugin/insta-gallery/reviews/?filter=5

    Best regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Version 3.0: compatibility with WP 4.7.x-4.9.x?’ is closed to new replies.