Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • This Bug has nothing to do with any plugin, although the bug can be triggered through some plugins which add their own post boxes to the post editor. The bug can also sometimes be triggered by only moving a random postbox within the editor to the top.

    This Bug resists in the avia_builder.js:127 place_top function wich calls a save_order function on uninitialised postboxes.
    I found no trigger to hook in within the postbox js, so I had to change the line

    window.postboxes.save_order(pagenow);
    to:
    setTimeout(function() { window.postboxes.save_order(pagenow); }, 100);

    and now everything works like a charm.

    Best,
    Markus

    My first try was:

    //set the folder that contains the shortcodes
    function myplugin_add_shortcode_folder($paths)
    {
       $paths = array(dirname(__FILE__) ."/avia-shortcodes/");
        return $paths;
    }
    
    add_filter('avia_load_shortcodes', 'myplugin_add_shortcode_folder');

    I ended up with:

    //set the folder that contains the shortcodes
    function myplugin_add_shortcode_folder($paths)
    {
        $paths[] = dirname(__FILE__) . "/avia-shortcodes/";
        return $paths;
    }
    
    add_filter('avia_load_shortcodes', 'myplugin_add_shortcode_folder');

    But thx for the workaround with a lower prio, that should also do the trick.

    • This reply was modified 4 years, 8 months ago by  markusperl.
Viewing 2 posts - 1 through 2 (of 2 total)