@@ -78,6 +78,8 @@ function wp_ajax_nopriv_heartbeat() {
7878 * Ajax handler for fetching a list table.
7979 *
8080 * @since 3.1.0
81+ *
82+ * @global WP_List_Table $wp_list_table
8183 */
8284function wp_ajax_fetch_list () {
8385 global $ wp_list_table ;
@@ -226,6 +228,8 @@ function wp_ajax_imgedit_preview() {
226228 * Ajax handler for oEmbed caching.
227229 *
228230 * @since 3.1.0
231+ *
232+ * @global WP_Embed $wp_embed
229233 */
230234function wp_ajax_oembed_cache () {
231235 $ GLOBALS ['wp_embed ' ]->cache_oembed ( $ _GET ['post ' ] );
@@ -762,6 +766,8 @@ function wp_ajax_add_link_category( $action ) {
762766 * Ajax handler to add a tag.
763767 *
764768 * @since 3.1.0
769+ *
770+ * @global WP_List_Table $wp_list_table
765771 */
766772function wp_ajax_add_tag () {
767773 global $ wp_list_table ;
@@ -864,6 +870,9 @@ function wp_ajax_get_tagcloud() {
864870 *
865871 * @since 3.1.0
866872 *
873+ * @global WP_List_Table $wp_list_table
874+ * @global int $post_id
875+ *
867876 * @param string $action Action to perform.
868877 */
869878function wp_ajax_get_comments ( $ action ) {
@@ -915,6 +924,8 @@ function wp_ajax_get_comments( $action ) {
915924 *
916925 * @since 3.1.0
917926 *
927+ * @global WP_List_Table $wp_list_table
928+ *
918929 * @param string $action Action to perform.
919930 */
920931function wp_ajax_replyto_comment ( $ action ) {
@@ -1016,6 +1027,8 @@ function wp_ajax_replyto_comment( $action ) {
10161027 * Ajax handler for editing a comment.
10171028 *
10181029 * @since 3.1.0
1030+ *
1031+ * @global WP_List_Table $wp_list_table
10191032 */
10201033function wp_ajax_edit_comment () {
10211034 global $ wp_list_table ;
@@ -1229,6 +1242,8 @@ function wp_ajax_add_meta() {
12291242 *
12301243 * @since 3.1.0
12311244 *
1245+ * @global WP_List_Table $wp_list_table
1246+ *
12321247 * @param string $action Action to perform.
12331248 */
12341249function wp_ajax_add_user ( $ action ) {
@@ -1499,6 +1514,8 @@ function wp_ajax_sample_permalink() {
14991514 * Ajax handler for Quick Edit saving a post from a list table.
15001515 *
15011516 * @since 3.1.0
1517+ *
1518+ * @global WP_List_Table $wp_list_table
15021519 */
15031520function wp_ajax_inline_save () {
15041521 global $ wp_list_table ;
@@ -1591,6 +1608,8 @@ function wp_ajax_inline_save() {
15911608 * Ajax handler for quick edit saving for a term.
15921609 *
15931610 * @since 3.1.0
1611+ *
1612+ * @global WP_List_Table $wp_list_table
15941613 */
15951614function wp_ajax_inline_save_tax () {
15961615 global $ wp_list_table ;
@@ -1743,6 +1762,10 @@ function wp_ajax_widgets_order() {
17431762 * Ajax handler for saving a widget.
17441763 *
17451764 * @since 3.1.0
1765+ *
1766+ * @global array $wp_registered_widgets
1767+ * @global array $wp_registered_widget_controls
1768+ * @global array $wp_registered_widget_updates
17461769 */
17471770function wp_ajax_save_widget () {
17481771 global $ wp_registered_widgets , $ wp_registered_widget_controls , $ wp_registered_widget_updates ;
@@ -1832,6 +1855,8 @@ function wp_ajax_save_widget() {
18321855 * Ajax handler for saving a widget.
18331856 *
18341857 * @since 3.9.0
1858+ *
1859+ * @global WP_Customize_Manager $wp_customize
18351860 */
18361861function wp_ajax_update_widget () {
18371862 global $ wp_customize ;
@@ -2475,6 +2500,9 @@ function wp_ajax_send_attachment_to_editor() {
24752500 * - video_send_to_editor_url
24762501 *
24772502 * @since 3.5.0
2503+ *
2504+ * @global WP_Post $post
2505+ * @global WP_Embed $wp_embed
24782506 */
24792507function wp_ajax_send_link_to_editor () {
24802508 global $ post , $ wp_embed ;
@@ -2627,6 +2655,8 @@ function wp_ajax_get_revision_diffs() {
26272655 * a user's own profile.
26282656 *
26292657 * @since 3.8.0
2658+ *
2659+ * @global array $_wp_admin_css_colors
26302660 */
26312661function wp_ajax_save_user_color_scheme () {
26322662 global $ _wp_admin_css_colors ;
@@ -2652,6 +2682,9 @@ function wp_ajax_save_user_color_scheme() {
26522682 * Ajax handler for getting themes from themes_api().
26532683 *
26542684 * @since 3.9.0
2685+ *
2686+ * @global array $themes_allowedtags
2687+ * @global array $theme_field_defaults
26552688 */
26562689function wp_ajax_query_themes () {
26572690 global $ themes_allowedtags , $ theme_field_defaults ;
@@ -2699,8 +2732,9 @@ function wp_ajax_query_themes() {
26992732 *
27002733 * @since 4.0.0
27012734 *
2702- * @global WP_Post $post Global $post.
2703- * @global WP_Embed $wp_embed Embed API instance.
2735+ * @global WP_Post $post Global $post.
2736+ * @global WP_Embed $wp_embed Embed API instance.
2737+ * @global WP_Scripts $wp_scripts
27042738 */
27052739function wp_ajax_parse_embed () {
27062740 global $ post , $ wp_embed ;
@@ -2788,6 +2822,11 @@ function wp_ajax_parse_embed() {
27882822 ) );
27892823}
27902824
2825+ /**
2826+ *
2827+ * @global WP_Post $post
2828+ * @global WP_Scripts $wp_scripts
2829+ */
27912830function wp_ajax_parse_media_shortcode () {
27922831 global $ post , $ wp_scripts ;
27932832
@@ -2967,6 +3006,8 @@ function wp_ajax_update_plugin() {
29673006 * AJAX handler for saving a post from Press This.
29683007 *
29693008 * @since 4.2.0
3009+ *
3010+ * @global WP_Press_This $wp_press_this
29703011 */
29713012function wp_ajax_press_this_save_post () {
29723013 if ( empty ( $ GLOBALS ['wp_press_this ' ] ) ) {
@@ -2980,6 +3021,8 @@ function wp_ajax_press_this_save_post() {
29803021 * AJAX handler for creating new category from Press This.
29813022 *
29823023 * @since 4.2.0
3024+ *
3025+ * @global WP_Press_This $wp_press_this
29833026 */
29843027function wp_ajax_press_this_add_category () {
29853028 if ( empty ( $ GLOBALS ['wp_press_this ' ] ) ) {
0 commit comments