[buddypress-trac] [BuddyPress Trac] #7041: Can`t set 'Text size' in Email Customizer

buddypress-trac noreply at wordpress.org
Thu May 26 19:56:31 UTC 2016


#7041: Can`t set 'Text size' in Email Customizer
-----------------------------------------+----------------------
 Reporter:  WeddyWood                    |       Owner:  dcavins
     Type:  defect (bug)                 |      Status:  closed
 Priority:  high                         |   Milestone:  2.6
Component:  Appearance - Template Parts  |     Version:  2.5.0
 Severity:  normal                       |  Resolution:  fixed
 Keywords:  has-patch commit             |
-----------------------------------------+----------------------
Changes (by dcavins):

 * owner:   => dcavins
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10814"]:
 {{{
 #!CommitTicketReference repository="" revision="10814"
 Use absint() to validate numeric input in the WP Customizer.

 `intval()` fails when used with the WP
 Customizer API as a sanitization callback.
 The callback function is attached to
 a filter in `WP_Customize_Setting::sanitize()`
 that passes two arguments to the
 sanitization callback: the `$value` to sanitize
 and the instance of `WP_Customize_Setting`.
 Since `intval()` can accept an optional
 second argument ($base), but isn’t
 expecting an object, it fails.
 `absint()` works because it is only
 expecting the `$value` argument.

 Fixes #7041.

 Props WeddyWood.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7041#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list