[wp-trac] [WordPress Trac] #33156: Allow admin-ajax crawling

WordPress Trac noreply at wordpress.org
Mon Mar 12 16:06:06 UTC 2018


#33156: Allow admin-ajax crawling
-----------------------------------+-----------------------------
 Reporter:  joostdevalk            |       Owner:  SergeyBiryukov
     Type:  enhancement            |      Status:  closed
 Priority:  normal                 |   Milestone:  4.4
Component:  General                |     Version:
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  2nd-opinion has-patch  |     Focuses:
-----------------------------------+-----------------------------

Comment (by reidbusi):

 Google is getting a 400 error when it is crawling wp-admin/admin-ajax.php
 as the link is defined in javascript in the Avada theme:


 {{{

                                 jQuery( document ).ready( function() {
                                         var ajaxurl = 'https://example.com
 /wp-admin/admin-ajax.php';
                                         if ( 0 < jQuery( '.fusion-login-
 nonce' ).length ) {
                                                 jQuery.get( ajaxurl, {
 'action': 'fusion_login_nonce' }, function( response ) {
                                                         jQuery( '.fusion-
 login-nonce' ).html( response );
                                                 });
                                         }
                                 });
 }}}


 So, maybe this was not a good idea?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33156#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list