Make WordPress Core


Ignore:
Timestamp:
02/23/2023 09:32:15 PM (3 years ago)
Author:
flixos90
Message:

Editor: Fix invalid parameters being passed to wp_register_style().

Boolean true is not a valid value for the $ver or $media parameters of wp_register_style().

Props sabernhardt, flixos90, hellofromtonya.
Fixes #57771. See #56990, #57688.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/duotone.php

    r55141 r55417  
    548548        : $selector . '{filter:' . $filter_property . ' !important;}';
    549549
    550     wp_register_style( $filter_id, false, array(), true, true );
     550    wp_register_style( $filter_id, false );
    551551    wp_add_inline_style( $filter_id, $filter_style );
    552552    wp_enqueue_style( $filter_id );
Note: See TracChangeset for help on using the changeset viewer.