[wp-trac] [WordPress Trac] #45236: Cast the result of the `default_content`, `default_title`, and `default_excerpt` filters

WordPress Trac noreply at wordpress.org
Thu Nov 1 05:19:51 UTC 2018


#45236: Cast the result of the `default_content`, `default_title`, and
`default_excerpt` filters
------------------------------+---------------------
 Reporter:  dd32              |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  5.0
Component:  Editor            |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------

Comment (by pento):

 In [changeset:"43858" 43858]:
 {{{
 #!CommitTicketReference repository="" revision="43858"
 Editor: Cast the result of the `default_content`, `default_title`, and
 `default_excerpt` filters.

 If a plugin returns a non-string value (or returns `null`) on these
 filters, it can cause errors in the block editor. Casting them as a string
 prevents these errors.

 Props dd32.
 See #45236.
 }}}

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


More information about the wp-trac mailing list