[wp-trac] [WordPress Trac] #34744: Don't use regex replacement to set force_default to true for images under Settings > Discussion > Default Avatar

WordPress Trac noreply at wordpress.org
Sun Apr 17 10:18:42 UTC 2016


#34744: Don't use regex replacement to set force_default to true for images under
Settings > Discussion > Default Avatar
------------------------------+-------------------------
 Reporter:  henry.wright      |       Owner:  swissspidy
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.6
Component:  Administration    |     Version:  4.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-------------------------
Changes (by swissspidy):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37227"]:
 {{{
 #!CommitTicketReference repository="" revision="37227"
 Admin: Fix default avatar handling in Settings -> Discussion.

 By passing the `force_default` argument to `get_avatar()` instead of using
 `preg_replace`, we make it easier for developers to override the output.

 Props henry.wright.
 Fixes #34744.
 }}}

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


More information about the wp-trac mailing list