[wp-trac] [WordPress Trac] #24544: 404 error when using 2 scripts

WordPress Trac noreply at wordpress.org
Sun Jun 9 13:49:49 UTC 2013


#24544: 404 error when using 2 scripts
----------------------------+----------------------
 Reporter:  nielsniels2012  |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  General         |     Version:  3.5.1
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |
----------------------------+----------------------

Comment (by nielsniels2012):

 Hello Sergeybiryukov,

 thanks for your fast reply. I did the steps on a clean install:
 http://afvallenzwangerschap.nl/

 The only things I did:

 1. adding this code to my functions.php:

 function wp_jquery_cdn_init(){
                 if (!is_admin()){
                     wp_deregister_script('jquery');
                     wp_register_script('jquery',
 "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js");
                     wp_enqueue_script('jquery');
                 }
             }
             add_action('init', 'wp_jquery_cdn_init');

 2. adding this code to my homepage:

 function wp_jquery_cdn_init(){
                 if (!is_admin()){
                     wp_deregister_script('jquery');
                     wp_register_script('jquery',
 "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js");
                     wp_enqueue_script('jquery');
                 }
             }
             add_action('init', 'wp_jquery_cdn_init');

 3. install the "iframe" plugin

 4. downloading 2 social plugins and tried them both, with resulting my
 website to break. I added some screenshots of the proces.

 You can also try it by yourself and you will see that your website breaks.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24544#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list