Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #29193


Ignore:
Timestamp:
08/12/2014 02:17:07 PM (10 years ago)
Author:
SergeyBiryukov
Comment:

Duplicate of #15335.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29193

    • Property Status changed from new to closed
    • Property Component changed from General to Options, Meta APIs
    • Property Milestone changed from Awaiting Review to
    • Property Keywords has-patch added
    • Property Resolution changed from to duplicate
  • Ticket #29193 – Description

    initial v3  
    22
    33See wp-includes/formatting.php line 3432 - where WordPress applys the santiization filters.
    4    
     4{{{   
    55    $value = apply_filters( "sanitize_option_{$option}", $value, $option );
    6 
     6}}}
    77It passes as second arg of $option, but when registering as setting - the sanitization callback is added to this filter, but the number of accepted args is not specified when adding the filter.