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

WordPress Trac noreply at wordpress.org
Sun Dec 16 01:58:45 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 fixed-5.0  |     Focuses:
----------------------------------------+---------------------

Comment (by jeremyfelt):

 In [changeset:"44224" 44224]:
 {{{
 #!CommitTicketReference repository="" revision="44224"
 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.

 Merges [43858] from the 5.0 branch to trunk.

 Props dd32.
 See #45236.
 }}}

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


More information about the wp-trac mailing list