Pitufo

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Pitufo
    Participant

    May be related to bot activities. As I only experience this on the palabola themed sites and only examined code, not tracked logs, I’m unsure about the origin.

    Too much thanks!

    in reply to: Invalid argument supplied for foreach() #42267
    Pitufo
    Participant

    Thanks, ronschi, this works perfect for my installed WP too!

    I expect your code will be included in future versions. wp-cli is widely deployed. I saved it as a patch.

    --- wp-content/themes/parabola/includes/theme-styles.php        2017-01-27 13:07:55.627920010 +0100
    +++ wp-content/themes/parabola/includes/theme-styles.php      2017-01-28 05:44:28.000000000 +0100
    @@ -10,7 +10,7 @@
    
     function parabola_register_styles() {
            global $parabolas;
    -       foreach ($parabolas as $key => $value) { ${"$key"} = $value ;}
    +       if (is_array($parabolas)) {foreach ($parabolas as $key => $value) { ${"$key"} = $value ;}}
    
            wp_register_style( 'parabola-style', get_stylesheet_uri(), NULL, _CRYOUT_THEME_VERSION );
    
    
Viewing 2 posts - 1 through 2 (of 2 total)