[wp-trac] [WordPress Trac] #60671: If you hook some blocks with Block Hooks API, slashes are stripped from template part block attributes

WordPress Trac noreply at wordpress.org
Mon Mar 11 14:16:23 UTC 2024


#60671: If you hook some blocks with Block Hooks API, slashes are stripped from
template part block attributes
-------------------------------------------------+-------------------------
 Reporter:  karolmanijak                         |       Owner:  Bernhard
                                                 |  Reiter
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.5
Component:  Revisions                            |     Version:  trunk
 Severity:  major                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  reviewed commit                                |
-------------------------------------------------+-------------------------

Comment (by Bernhard Reiter):

 In [changeset:"57803" 57803]:
 {{{
 #!CommitTicketReference repository="" revision="57803"
 Block Hooks: Remove filter global reset from test teardown.

 Resetting the `$wp_current_filter` global during test teardown is
 unnecessary, as it is taken care of by the unit test's base class.

 This changeset removes the reset accordingly.

 Follow-up [57790].

 Reviewed by swissspidy.
 Merges [57799] to the to the 6.5 branch.

 Props swissspidy, timothyblynjacobs.
 See #60671.
 }}}

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


More information about the wp-trac mailing list