<div dir="ltr"><div class="gmail_extra">
I use the following code for that:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><span class="" style="white-space:pre"> </span>/* Logo Image Upload */</div><div class="gmail_extra">
<span class="" style="white-space:pre"> </span>$wp_customize->add_setting( 'logo_image', array(</div><div class="gmail_extra"><span class="" style="white-space:pre"> </span>'default' => '',</div>
<div class="gmail_extra"><span class="" style="white-space:pre"> </span>'sanitize_callback' => 'esc_url_raw'</div><div class="gmail_extra"><span class="" style="white-space:pre"> </span>) );</div><div class="gmail_extra">
<span class="" style="white-space:pre"> </span></div><div class="gmail_extra"><span class="" style="white-space:pre"> </span>$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo_image', array(</div>
<div class="gmail_extra"><span class="" style="white-space:pre"> </span>'label' => __( 'Logo Image', 'jamedo-bootstrap-start-theme'),</div><div class="gmail_extra"><span class="" style="white-space:pre"> </span>'section' => 'site_logo_settings',</div>
<div class="gmail_extra"><span class="" style="white-space:pre"> </span>'settings' => 'logo_image',</div><div class="gmail_extra"><span class="" style="white-space:pre"> </span>) ) );</div><br><br><div class="gmail_quote">
2014-06-20 20:04 GMT+02:00 Thomas Usborne <span dir="ltr"><<a href="mailto:hello@edge22.com" target="_blank">hello@edge22.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-CA" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I'm interested in this as well.<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I believe 'logo' in that example is the name of the setting.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Tom <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span lang="EN-US" style="font-size:10pt;font-family:Tahoma,sans-serif"> theme-reviewers [mailto:<a href="mailto:theme-reviewers-bounces@lists.wordpress.org" target="_blank">theme-reviewers-bounces@lists.wordpress.org</a>] <b>On Behalf Of </b>Srikanth Koneru<br>
<b>Sent:</b> Friday, June 20, 2014 11:02 AM<br><b>To:</b> Discussion list for WordPress theme reviewers.<br><b>Subject:</b> Re: [theme-reviewers] WP customizer sanitize question<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Thanks Emil, so esc_url_raw appropriate?<u></u><u></u></p></div><p class="MsoNormal">Also what is 'logo' in that example?<u></u><u></u></p></div>
<div><p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p><div><p class="MsoNormal">On Fri, Jun 20, 2014 at 11:26 PM, Emil Uzelac <<a href="mailto:emil@uzelac.me" target="_blank">emil@uzelac.me</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="font-family:Verdana,sans-serif">As far as I know, logo needs to be sanitized as well. <u></u><u></u></span></p></div></div><div><p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p>
<div><div><div><p class="MsoNormal">On Fri, Jun 20, 2014 at 12:47 PM, Srikanth Koneru <<a href="mailto:tskk79@gmail.com" target="_blank">tskk79@gmail.com</a>> wrote:<u></u><u></u></p></div></div><blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div><div><div><div><div><div><p class="MsoNormal" style="margin-bottom:12pt">Does Image control (<a href="http://codex.wordpress.org/Class_Reference/WP_Customize_Image_Control" target="_blank">http://codex.wordpress.org/Class_Reference/WP_Customize_Image_Control</a>) need sanitization?<u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12pt">If so is esc_url_raw appropriate?<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12pt">Also what is 'logo' in that example?<u></u><u></u></p>
</div><p class="MsoNormal">Thanks.<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12pt">_______________________________________________<br>theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><u></u><u></u></p>
</blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal" style="margin-bottom:12pt"><br>_______________________________________________<br>theme-reviewers mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div>
</div></div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div></div>