[theme-reviewers] WP customizer sanitize question
Srikanth Koneru
tskk79 at gmail.com
Fri Jun 20 19:19:55 UTC 2014
Thanks Emil and Chip.
On Sat, Jun 21, 2014 at 12:22 AM, Bass Jobsen <bass at w3masters.nl> wrote:
> I use the following code for that:
>
> /* Logo Image Upload */
> $wp_customize->add_setting( 'logo_image', array(
> 'default' => '',
> 'sanitize_callback' => 'esc_url_raw'
> ) );
> $wp_customize->add_control( new WP_Customize_Image_Control(
> $wp_customize, 'logo_image', array(
> 'label' => __( 'Logo Image', 'jamedo-bootstrap-start-theme'),
> 'section' => 'site_logo_settings',
> 'settings' => 'logo_image',
> ) ) );
>
>
> 2014-06-20 20:04 GMT+02:00 Thomas Usborne <hello at edge22.com>:
>
> I'm interested in this as well.
>>
>>
>>
>> I believe 'logo' in that example is the name of the setting.
>>
>>
>>
>> Tom
>>
>>
>>
>> *From:* theme-reviewers [mailto:
>> theme-reviewers-bounces at lists.wordpress.org] *On Behalf Of *Srikanth
>> Koneru
>> *Sent:* Friday, June 20, 2014 11:02 AM
>> *To:* Discussion list for WordPress theme reviewers.
>> *Subject:* Re: [theme-reviewers] WP customizer sanitize question
>>
>>
>>
>> Thanks Emil, so esc_url_raw appropriate?
>>
>> Also what is 'logo' in that example?
>>
>>
>>
>> On Fri, Jun 20, 2014 at 11:26 PM, Emil Uzelac <emil at uzelac.me> wrote:
>>
>> As far as I know, logo needs to be sanitized as well.
>>
>>
>>
>> On Fri, Jun 20, 2014 at 12:47 PM, Srikanth Koneru <tskk79 at gmail.com>
>> wrote:
>>
>> Does Image control (
>> http://codex.wordpress.org/Class_Reference/WP_Customize_Image_Control)
>> need sanitization?
>>
>> If so is esc_url_raw appropriate?
>>
>> Also what is 'logo' in that example?
>>
>> Thanks.
>>
>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140621/ea1e4bea/attachment-0001.html>
More information about the theme-reviewers
mailing list