<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Plugins and/or themes shouldn't check for anything. wp_enqueue_script( 'jquery' ) ensures the script is printed only once. Any plugin or theme doing it differently is _doing_it_wrong();</div><div><br></div><div>Daniel</div><br><div><div>On Aug 25, 2012, at 2:03 AM, Emil Uzelac wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font color="#333333"><font><font face="arial,helvetica,sans-serif">Gotcha, thanks for additional information.</font></font></font><div><font color="#333333"><font><font face="arial,helvetica,sans-serif"><br></font></font></font></div>

<div><font color="#333333"><font><font face="arial,helvetica,sans-serif">Emil<br></font></font></font><br><div class="gmail_quote">On Fri, Aug 24, 2012 at 5:46 PM, Justin Tadlock <span dir="ltr">&lt;<a href="mailto:justin@justintadlock.com" target="_blank">justin@justintadlock.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Just a note on this:&nbsp; The only thing that should de-register
    core-bundled scripts is a plugin for specifically doing that.&nbsp; You
    could have something like the "Use Google jQuery" plugin.&nbsp; Of
    course, that plugin should come with a warning that it could break
    stuff.&nbsp; That's the only legitimate case I can think of though.<div><div class="h5"><br>
    <br>
    <div>On 8/24/2012 5:10 PM, Chip Bennett
      wrote:<br>
    </div>
    <blockquote type="cite">I'm not sure I understand the question.
      <div>
        <ul>
          <li>If a Theme wants to use jQuery, it should call
            wp_enqueue_script( 'jquery' ), to enqueue the core-bundled
            jQuery library.</li>
          <li>If a&nbsp;Plugin wants to use jQuery, it should call
            wp_enqueue_script( 'jquery' ), to enqueue the core-bundled
            jQuery library.</li>
          <li>No Theme or Plugin should de-register core-bundled jQuery,
            in order to register any other version of jQuery.</li>
        </ul>
      </div>
      <div>Out of curiosity: what prompted the question?</div>
      <div><br>
      </div>
      <div>Chip</div>
      <div><br>
        <div class="gmail_quote">On Fri, Aug 24, 2012 at 4:57 PM, Emil
          Uzelac <span dir="ltr">&lt;<a href="mailto:emil@themeid.com" target="_blank">emil@themeid.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <font color="#333333"><font><font face="arial,helvetica,sans-serif">Guys!</font></font></font>
            <div><font color="#333333"><font><font face="arial,helvetica,sans-serif"><br>
                  </font></font></font></div>
            <div><font color="#333333"><font><font face="arial,helvetica,sans-serif">Should plugin
                    check first if the Theme is already "calling" the
                    jQuery and if it does, plugin should do nothing and
                    also not to remove&nbsp;</font></font></font><font color="#333333" face="arial, helvetica, sans-serif">wp_enqueue_script
                and "inject" higher version via Google API?</font></div>
            <div><font color="#333333" face="arial, helvetica,
                sans-serif"><br>
              </font></div>
            <div><font color="#333333" face="arial, helvetica,
                sans-serif">Thanks,</font></div>
            <div><font color="#333333" face="arial, helvetica,
                sans-serif">Emil</font></div>
            <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><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
theme-reviewers mailing list
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
    </blockquote>
    <br>
  </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>
_______________________________________________<br>theme-reviewers mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>http://lists.wordpress.org/mailman/listinfo/theme-reviewers<br></blockquote></div><br></body></html>