• Resolved efc

    (@eceleste)


    When I upgraded to WP 3.6.1 with WP_DEBUG true I got a number of errors thrown from the custom-admin-bar plugin. I found that by changing the first few lines of the Wdcab_AdminPages class. Please consider changing the first few lines to:

    function Wdcab_AdminPages () {
    
    }
    
    /**
     * Main entry point.
     *
     * @static
     */
    static function serve () {

    Note, this makes the serve() function truly static and eliminates a redundant definition of __construct().

    http://wordpress.org/plugins/custom-admin-bar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there @eceleste, I hope you’re well today!

    What errors exactly were you getting?

    Thread Starter efc

    (@eceleste)

    Hi @aristath, if you turn on WP_DEBUG you should see them too. One complained about the redundant definition of the constructor, the other about the static call to a non-static function.

    Today I realize that you may have written this as it is to cover your PHP 4 and 5 bases. If that is the case, then maybe we just have to live with the notifications under WP_DEBUG.

    Mike

    (@michael-copestake)

    If there are no errors when WP_DEBUG is disabled then this isn’t something to worry about, if the plugin still functions fine then I personally would just ignore the errors.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP errors in strict mode for custom-admin-bar’ is closed to new replies.