Support » Plugin: Campaign Monitor » Wrong usage of “admin_body_class” filter.

  • Hi Guys,

    You have the wrong usage of admin_body_class filter, and you broke all plugin, which tries to use this filter to add some CSS class to the body tag.

    This file:

    wp-content/plugins/forms-for-campaign-monitor/forms/core/Application.phpforms/core/Application.php

    have add_filter definition:


    808 »···»···add_filter('admin_body_class', array(__CLASS__, 'addBodyClass'));

    Which call this function:


    1075 »···public static function addBodyClass()
    1076 »···{
    1077
    1078 »···}

    And the issue is:

    add_filter function must have at least one param, and MUST return this param. In this situation, current admin body class become null.

    Please remove this filter or change function into:


    1075 »···public static function addBodyClass( $classes )
    1076 »···{
    1077 return $classes;
    1078 »···}

    Thank you in advance!

    Marcin

  • The topic ‘Wrong usage of “admin_body_class” filter.’ is closed to new replies.