• Resolved Slams

    (@slams)


    Hello, @gvectorssupport!

    I can’t load class.WpdiscuzWalker.php for child theme which dinamicaly swithed by Device Theme Switcher plugin.

    Bug appearead because of early include /utils/functions.php

    $wpcCurrentThemDir allways be parent theme because it is loads too early and DTS plugins add_filter( ‘stylesheet’, array( $this, ‘deliver_stylesheet’ ), 10, 0 ); (class-switcher.php:54) fire after $wpcCurrentThemDir is set.

    wpdiscuz.css loaded correctly.

    • This topic was modified 5 years, 9 months ago by Slams.
    • This topic was modified 5 years, 9 months ago by Slams.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Slams

    (@slams)

    If I’m not mistaken, it is a good practice for such includings inside init() function and fire it in constructor
    add_action('wp_loaded', array(&$this, 'init'));

    • This reply was modified 5 years, 9 months ago by Slams.
    Plugin Support gVectors Support

    (@gvectorssupport)

    Hi @slams,

    Thank you for letting us know. We’ll check it and if the issue is possible to fix by wpDiscuz side, we’ll fix it in the future release.

    Thread Starter Slams

    (@slams)

    I’ve move all includes before WpdiscuzCore and all code from __construct() to init() as I’ve wrote above and seems everything work fine for now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Device Theme Swither (and probably other) bug’ is closed to new replies.