Warning: array_filter() expects parameter 1 to be array wp-includes/kses.php on line 1193

125
February 03, 2022, at 02:20 AM

Can Someone help me?, Thank you so much

Warning: array_filter() expects parameter 1 to be array, int given in /home/customer/www/planted365.com/public_html/wp-includes/kses.php on line 1193

and this is the code :

function wp_kses_attr_check( &$name, &$value, &$whole, $vless, $element, $allowed_html ) {
    $name_low    = strtolower( $name );
    $element_low = strtolower( $element );
    if ( ! isset( $allowed_html[ $element_low ] ) ) {
        $name  = '';
        $value = '';
        $whole = '';
        return false;
    }
    $allowed_attr = $allowed_html[ $element_low ];
    if ( ! isset( $allowed_attr[ $name_low ] ) || '' === $allowed_attr[ $name_low ] ) {
        /*
         * Allow `data-*` attributes.
         *
         * When specifying `$allowed_html`, the attribute name should be set as
         * `data-*` (not to be mixed with the HTML 4.0 `data` attribute, see
         * https://www.w3.org/TR/html40/struct/objects.html#adef-data).
         *
         * Note: the attribute name should only contain `A-Za-z0-9_-` chars,
         * double hyphens `--` are not accepted by WordPress.
         */
        if ( strpos( $name_low, 'data-' ) === 0 && ! empty( $allowed_attr['data-*'] ) && preg_match( '/^data(?:-[a-z0-9_]+)+$/', $name_low, $match ) ) {
            /*
             * Add the whole attribute name to the allowed attributes and set any restrictions
             * for the `data-*` attribute values for the current element.
             */
            $allowed_attr[ $match[0] ] = $allowed_attr['data-*'];
        } else {
            $name  = '';
            $value = '';
            $whole = '';
            return false;
        }
    }
    if ( 'style' === $name_low ) {
        $new_value = safecss_filter_attr( $value );
        if ( empty( $new_value ) ) {
            $name  = '';
            $value = '';
            $whole = '';
            return false;
        }
        $whole = str_replace( $value, $new_value, $whole );
        $value = $new_value;
    }
    if ( is_array( $allowed_attr[ $name_low ] ) ) {
        // There are some checks.
        foreach ( $allowed_attr[ $name_low ] as $currkey => $currval ) {
            if ( ! wp_kses_check_attr_val( $value, $vless, $currkey, $currval ) ) {
                $name  = '';
                $value = '';
                $whole = '';
                return false;
            }
        }
    }
    return true;
}
Rent Charter Buses Company
READ ALSO
Send Json file for Async Validation

Send Json file for Async Validation

I am working with Angular reactive forms and async validation and instead of a normal value I want to send Json file for validation

134
I'm on windows os, I'm trying to export the data from mysql workbench to my local file system. But showing an error message like (no disk space)

I'm on windows os, I'm trying to export the data from mysql workbench to my local file system. But showing an error message like (no disk space)

I've searched many threads online but none of them worked for meI found solutions for linux but there is no solution related to windows operating system

108
How can I fade images in sequence? [duplicate]

How can I fade images in sequence? [duplicate]

How do I stop the second image from beginning to fade in until the first one has fully faded in?

110
What is the difference between addFirst and addLast in Deque interface

What is the difference between addFirst and addLast in Deque interface

They seem like behaving in the same way, throwing out the elements in a LIFO pattern

123