[wp-trac] Re: [WordPress Trac] #9585: wp-ajax-response not loaded !

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 19 20:48:11 GMT 2009


#9585: wp-ajax-response not loaded !
----------------------------+-----------------------------------------------
 Reporter:  arena           |        Owner:  anonymous
     Type:  defect (bug)    |       Status:  closed   
 Priority:  normal          |    Milestone:  2.8      
Component:  Administration  |      Version:           
 Severity:  normal          |   Resolution:  duplicate
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by azaozz):

 What exactly do you want to achieve by changing the handle for a default
 script? The problem is that load-scripts.php doesn't load the rest of
 WordPress and cannot see your changes while loading and concatenating the
 scripts as it reads the handles/paths from script-loader.

 If you want to use a modified version of wp-ajax-response, copy it to your
 plugin's directory and load it as external script. If not, just queue it.

 You can change some of the i18n strings there at runtime:
 {{{
 <script type="text/javascript">
 wpAyax['broken'] = (your string...);
 ...
 }}}

 Best hook for this is `do_action("admin_footer-$hook_suffix");`.

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


More information about the wp-trac mailing list