[wp-trac] [WordPress Trac] #59138: Duotone filter selector does not apply when using Image block alignment

WordPress Trac noreply at wordpress.org
Wed Aug 23 04:45:37 UTC 2023


#59138: Duotone filter selector does not apply when using Image block alignment
------------------------------+---------------------
 Reporter:  nidhidhandhukiya  |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.3.2
Component:  Editor            |     Version:  6.3
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------

Comment (by efrap):

 @bijit027 - Changing that 856 line from layout.php worked, but generate an
 error.

 Instead of array_diff, which removes wp-block-image class, I used
 array_unique(array_merge(...)) to combine the class arrays.

 Replace line 856

 {{{
 $filtered_content_classnames = array_diff( $content_classnames,
 $wrapper_classnames );
 }}}


 With

 {{{
 $filtered_content_classnames = array_unique(array_merge(
 $content_classnames, $wrapper_classnames ));
 }}}

 Seems to be working well.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59138#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list