1jQuery(window).load(function(){ 2 // if ( jQuery('body').hasClass('logged-in')){ 3 // jQuery.post( 4 // "/members/wp-admin/admin-ajax.php", 5 // { 6 // action : 'aam_check_user_in_other_site', 7 // }, 8 // function( response ) { 9 // // console.log( response ); 10 // var menu_html = jQuery('#wp-admin-bar-aam_multisite_memberships-default').html(); 11 // response = jQuery.parseJSON( response ); 12 // jQuery.each(response, function (index, value) { 13 // menu_html += '<li id="wp-admin-bar-aam_ml_' + index + '"><a class="ab-item" href="' + value + '"> '+ index + '</a></li>'; 14 // }); 15 16 // jQuery('#wp-admin-bar-aam_multisite_memberships-default').html(menu_html); 17 // } 18 // ); 19 // } 20 21 // if ( jQuery('body').hasClass('logged-in')){ 22 // var str_url = window.location.pathname; 23 // var ajax_path = '/wp-admin/admin-ajax.php'; 24 // if ( -1 < str_url.indexOf("/members/") ) { 25 // ajax_path = '/members/wp-admin/admin-ajax.php'; 26 // } 27 // jQuery.post( 28 // ajax_path, 29 // { 30 // action : 'aam_check_user_in_other_site_fn', 31 // }, 32 // function( response ) { 33 // if( '' != response ){ 34 // var menu_html = jQuery('#wp-admin-bar-aam_multisite_memberships-default').html(); 35 36 // menu_html += response; 37 // jQuery('#wp-admin-bar-aam_multisite_memberships-default').html(menu_html); 38 // } 39 // } 40 // ); 41 // } 42}) 43
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.