~canonical-sysadmins/wordpress/4.6

« back to all changes in this revision

Viewing changes to wp-admin/admin-ajax.php

  • Committer: Ryan Finnie
  • Date: 2015-08-31 16:09:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: ryan.finnie@canonical.com-20150831160947-1h6rfxby9z1ec62u
Merge WP4.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        'hidden-columns', 'update-welcome-panel', 'menu-get-metabox', 'wp-link-ajax',
57
57
        'menu-locations-save', 'menu-quick-search', 'meta-box-order', 'get-permalink',
58
58
        'sample-permalink', 'inline-save', 'inline-save-tax', 'find_posts', 'widgets-order',
59
 
        'save-widget', 'set-post-thumbnail', 'date_format', 'time_format', 'wp-fullscreen-save-post',
 
59
        'save-widget', 'set-post-thumbnail', 'date_format', 'time_format',
60
60
        'wp-remove-post-lock', 'dismiss-wp-pointer', 'upload-attachment', 'get-attachment',
61
61
        'query-attachments', 'save-attachment', 'save-attachment-compat', 'send-link-to-editor',
62
62
        'send-attachment-to-editor', 'save-attachment-order', 'heartbeat', 'get-revision-diffs',
63
63
        'save-user-color-scheme', 'update-widget', 'query-themes', 'parse-embed', 'set-attachment-thumbnail',
64
64
        'parse-media-shortcode', 'destroy-sessions', 'install-plugin', 'update-plugin', 'press-this-save-post',
65
 
        'press-this-add-category',
 
65
        'press-this-add-category', 'crop-image',
66
66
);
67
67
 
 
68
// Deprecated
 
69
$core_actions_post[] = 'wp-fullscreen-save-post';
 
70
 
68
71
// Register core Ajax calls.
69
72
if ( ! empty( $_GET['action'] ) && in_array( $_GET['action'], $core_actions_get ) )
70
73
        add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 );