WordPress.org

Make WordPress Core

Ticket #20926: logged-in.diff

File logged-in.diff, 800 bytes (added by nacin, 23 months ago)
  • wp-admin/admin-ajax.php

     
    3838 
    3939$core_actions_get = array( 
    4040        'fetch-list', 'ajax-tag-search', 'wp-compression-test', 'imgedit-preview', 'oembed-cache', 
    41         'autocomplete-user', 'dashboard-widgets', 
     41        'autocomplete-user', 'dashboard-widgets', 'logged-in', 
    4242); 
    4343 
    4444$core_actions_post = array( 
  • wp-admin/includes/ajax-actions.php

     
    212212        wp_die(); 
    213213} 
    214214 
     215function wp_ajax_logged_in() { 
     216        wp_die( 1 ); 
     217} 
     218 
    215219/* 
    216220 * Ajax helper. 
    217221 */