wordpress.vim icon indicating copy to clipboard operation
wordpress.vim copied to clipboard

Update syntax to WordPress version 4.7

Open joseluis opened this issue 9 years ago • 1 comments

  • Updated Syntax to WordPress 4.7.1 from the previous syntax for WordPress 4.0.
  • Removed functions tagged @access private and @access protected.
  • Included the rest of the functions, even the ones starting with an underscore _.

I made a shell script utility to generate the wordpress.vim syntax file. This is what's changed:

# List of removals/additions
# ==========================

# -------------------------------------------------------------------
# Removed functions:
# -------------------------------------------------------------------
comments_popup_script create_empty_blog do_shortcode_tag fetch_rss force_ssl_login get_admin_users_for_domain get_comments_popup_template get_currentuserinfo get_paged_template get_post_type_labels is_comments_popup json_decode json_encode lowercase_octets mb_substr ms_not_installed popuplinks post_permalink preview_theme preview_theme_ob_filter preview_theme_ob_filter_callback remove_custom_background shutdown_action_hook stripos timer_start wp_check_php_mysql_versions wp_debug_mode wp_embed_handler_googlevideo wp_find_hierarchy_loop wp_find_hierarchy_loop_tortoise_hare wp_fix_server_vars wp_get_active_and_valid_plugins wp_get_active_network_plugins wp_get_http wp_get_mu_plugins wp_get_network wp_get_sidebars_widgets wp_get_sites wp_get_widget_defaults wp_htmledit_pre wp_kses_bad_protocol_once2 wp_kses_js_entities wp_kses_normalize_entities2 wp_kses_normalize_entities3 wp_kses_split2 wp_load_translations_early wp_magic_quotes wp_maintenance wp_not_installed wp_richedit_pre wp_set_all_user_settings wp_set_internal_encoding wp_set_lang_dir wp_set_sidebars_widgets wp_set_wpdb_vars wp_start_object_cache wp_unregister_GLOBALS

# -------------------------------------------------------------------
# Added functions:
# -------------------------------------------------------------------
__ add_network_option add_term_meta _admin_bar_bump_cb apply_filters_deprecated atom_site_icon clean_network_cache __clear_multi_author_cache convert_invalid_entities _count_posts_cache_key create_initial_rest_routes delete_network_option delete_term_meta do_action_deprecated do_shortcodes_in_html_tags _e embed_flash embed_flv embed_quicktime embed_wmedia enqueue_embed_scripts _ex _fetch_remote_file filter_default_option force_balance_tags format_for_editor get_avatar_data get_avatar_url get_children _get_component_from_parsed_url_array get_current_network_id get_custom_header_markup get_custom_logo get_default_comment_status get_embed_template get_header_image_tag get_header_video_settings get_header_video_url get_html_split_regex get_language_attributes get_main_network_id _get_meta_table get_network get_network_option get_networks get_oembed_endpoint_url get_oembed_response_data get_oembed_response_data_rich get_parent_theme_file_path get_parent_theme_file_uri get_password_reset_key get_post_embed_html get_post_embed_url get_post_types_by_support get_preview_post_link get_registered_metadata get_registered_meta_keys get_registered_settings get_rest_url get_shortcode_atts_regex get_singular_template get_site get_site_icon_url get_sites get_subdirectory_reserved_names _get_term_hierarchy get_term_meta get_the_archive_description get_the_archive_title get_the_author_posts_link get_the_comments_navigation get_the_comments_pagination get_theme_file_path get_theme_file_uri get_theme_starter_content get_the_post_navigation get_the_posts_navigation get_the_posts_pagination get_the_post_thumbnail_caption get_the_post_thumbnail_url get_user_locale _get_widget_id_base grant_super_admin has_custom_header has_custom_logo has_header_image has_header_video _hash_hmac has_site_icon is_embed is_header_video_active is_locale_switched is_post_type_viewable is_registered_sidebar map_deep _maybe_update_core _mb_strlen _mb_substr mysql_to_rfc3339 _n _n_noop _nx _nx_noop _page_traverse_name print_embed_comments_button print_embed_scripts print_embed_sharing_button print_embed_sharing_dialog print_embed_styles print_emoji_detection_script print_emoji_styles _print_scripts _print_styles random_bytes random_bytes random_bytes random_bytes random_bytes random_bytes random_int registered_meta_key_exists register_initial_settings register_rest_field register_rest_route register_setting _register_widget_form_callback _register_widget_update_callback remove_permastruct remove_rewrite_tag _response_to_rss rest_api_default_filters rest_api_init rest_api_loaded rest_api_register_rewrites rest_authorization_required_code rest_cookie_check_errors rest_cookie_collect_status rest_do_request rest_ensure_request rest_ensure_response rest_get_avatar_sizes rest_get_avatar_urls rest_get_date_with_gmt rest_get_server rest_get_url_prefix rest_handle_deprecated_argument rest_handle_deprecated_function rest_handle_options_request rest_is_boolean rest_is_ip_address restore_current_locale restore_previous_locale rest_output_link_header rest_output_link_wp_head rest_output_rsd rest_parse_date rest_parse_request_arg rest_sanitize_boolean rest_sanitize_request_arg rest_sanitize_value_from_schema rest_send_allow_header rest_send_cors_headers rest_url rest_validate_request_arg rest_validate_value_from_schema __return_empty_array __return_empty_string __return_false __return_null __return_true __return_zero revoke_super_admin rss2_site_icon sanitize_textarea_field site_icon_url _split_shared_term strip_fragment_from_url stripslashes_from_strings_only switch_to_locale the_archive_description the_archive_title the_comments_navigation the_comments_pagination the_custom_header_markup the_custom_logo the_embed_site_title the_excerpt_embed the_header_image_tag the_header_video_url the_meta the_post_navigation the_posts_navigation the_posts_pagination the_post_thumbnail_caption the_post_thumbnail_url unescape_invalid_shortcodes unregister_meta_key unregister_post_type unregister_setting unregister_taxonomy _update_blog_date_on_post_delete _update_blog_date_on_post_publish _update_generic_term_count update_network_cache update_network_option _update_posts_count_on_delete _update_posts_count_on_transition_post_status update_site_cache update_term_meta update_termmeta_cache urldecode_deep url_shorten wp_add_inline_script wp_admin_bar_customize_menu wp_attachment_is wp_authenticate_email_password _wp_batch_split_terms wp_cache_get_last_changed wp_calculate_image_sizes wp_calculate_image_srcset wp_check_comment_data_max_lengths wp_check_comment_flood _wp_check_for_scheduled_split_terms wp_check_jsonp_callback _wp_check_split_default_terms _wp_check_split_nav_menu_terms _wp_check_split_terms_in_menus wp_clean_update_cache wp_custom_css_cb _wp_customize_changeset_filter_insert_post_data _wp_customize_include _wp_customize_loader_settings _wp_customize_publish_changeset wp_delete_file wp_dependencies_unique_hosts wp_doing_ajax wp_embed_excerpt_attachment wp_embed_excerpt_more wp_encode_emoji wp_filter_oembed_result wp_filter_pre_oembed_result _wp_footer_scripts wp_generate_uuid4 wp_get_additional_image_sizes wp_get_attachment_caption wp_get_attachment_image_sizes wp_get_attachment_image_srcset wp_get_attachment_image_url wp_get_canonical_url wp_get_comment_fields_max_lengths wp_get_custom_css wp_get_custom_css_post wp_get_document_title wp_get_ext_types wp_get_image_mime wp_get_password_hint wp_get_raw_referer wp_get_server_protocol wp_get_split_term wp_get_split_terms wp_get_upload_dir wp_get_users_with_no_role wp_handle_comment_submission wp_html_split wp_image_add_srcset_and_sizes _wp_image_editor_choose wp_image_matches_ratio wp_installing wp_is_ini_value_changeable wp_is_numeric_array wp_json_encode wp_kses_attr_check wp_kses_attr_parse _wp_kses_decode_entities_chr _wp_kses_decode_entities_chr_hexdec wp_kses_hair_parse wp_kses_one_attr wp_kses_post_deep wp_list_sort wp_localize_jquery_ui_datepicker wp_make_content_images_responsive wp_maybe_decline_date wp_metadata_lazyloader _wp_mysql_week wp_new_comment_notify_moderator wp_new_comment_notify_postauthor wp_oembed_add_discovery_links wp_oembed_add_host_js wp_oembed_ensure_format wp_oembed_register_route wp_parse_slug_list wp_parse_url wp_post_preview_js _wp_post_thumbnail_class_filter _wp_post_thumbnail_class_filter_add _wp_post_thumbnail_class_filter_remove wp_queue_comments_for_comment_meta_lazyload wp_queue_posts_for_term_meta_lazyload wp_raise_memory_limit _wp_relative_upload_path wp_remote_retrieve_cookie wp_remote_retrieve_cookies wp_remote_retrieve_cookie_value wp_removable_query_args wp_replace_in_html_tags wp_resolve_numeric_slug_conflicts wp_resource_hints wp_roles wp_script_add_data wp_scripts _wp_scripts_maybe_doing_it_wrong wp_send_new_user_notifications wp_site_icon wp_staticize_emoji wp_staticize_emoji_for_email wp_styles wp_term_is_shared wptexturize_primes _wp_translate_php_url_constant_to_key wp_update_custom_css_post _x

# -------------------------------------------------------------------
# Removed deprecated functions:
# --------------------------------------------------------------------
default_topic_count_text funky_javascript_callback get_current_site_name wpmu_current_site

# -------------------------------------------------------------------
# Added deprecated functions:
# -------------------------------------------------
_c comments_popup_script create_empty_blog fetch_rss force_ssl_login get_admin_users_for_domain get_comments_popup_template get_currentuserinfo get_paged_template _get_post_ancestors is_comments_popup _nc __ngettext __ngettext_noop popuplinks post_permalink preview_theme remove_custom_background _save_post_hook wp_embed_handler_googlevideo wp_get_http wp_get_network wp_get_sites wp_htmledit_pre wp_kses_js_entities wp_richedit_pre

# -------------------------------------------------------------------
# Removed classes:
# -------------------------------------------------------------------
getid3_handler Services_JSON_Error SimplePie_Cache_DB wp_atom_server WP_Image_Editor WP_Session_Tokens

# -------------------------------------------------------------------
# Added classes:
# -------------------------------------------------------------------
Requests Requests_Auth_Basic Requests_Cookie Requests_Cookie_Jar Requests_Exception Requests_Exception_HTTP Requests_Exception_HTTP_304 Requests_Exception_HTTP_305 Requests_Exception_HTTP_306 Requests_Exception_HTTP_400 Requests_Exception_HTTP_401 Requests_Exception_HTTP_402 Requests_Exception_HTTP_403 Requests_Exception_HTTP_404 Requests_Exception_HTTP_405 Requests_Exception_HTTP_406 Requests_Exception_HTTP_407 Requests_Exception_HTTP_408 Requests_Exception_HTTP_409 Requests_Exception_HTTP_410 Requests_Exception_HTTP_411 Requests_Exception_HTTP_412 Requests_Exception_HTTP_413 Requests_Exception_HTTP_414 Requests_Exception_HTTP_415 Requests_Exception_HTTP_416 Requests_Exception_HTTP_417 Requests_Exception_HTTP_418 Requests_Exception_HTTP_428 Requests_Exception_HTTP_429 Requests_Exception_HTTP_431 Requests_Exception_HTTP_500 Requests_Exception_HTTP_501 Requests_Exception_HTTP_502 Requests_Exception_HTTP_503 Requests_Exception_HTTP_504 Requests_Exception_HTTP_505 Requests_Exception_HTTP_511 Requests_Exception_HTTP_Unknown Requests_Exception_Transport Requests_Exception_Transport_cURL Requests_Hooks Requests_IDNAEncoder Requests_IPv6 Requests_IRI Requests_Proxy_HTTP Requests_Response Requests_Response_Headers Requests_Session Requests_SSL Requests_Transport_cURL Requests_Transport_fsockopen Requests_Utility_CaseInsensitiveDictionary Requests_Utility_FilteredIterator WP_Comment WP_Customize_Background_Position_Control WP_Customize_Cropped_Image_Control WP_Customize_Custom_CSS_Setting WP_Customize_Media_Control WP_Customize_Nav_Menu_Auto_Add_Control WP_Customize_Nav_Menu_Control WP_Customize_Nav_Menu_Item_Control WP_Customize_Nav_Menu_Item_Setting WP_Customize_Nav_Menu_Location_Control WP_Customize_Nav_Menu_Name_Control WP_Customize_Nav_Menus WP_Customize_Nav_Menu_Section WP_Customize_Nav_Menu_Setting WP_Customize_Nav_Menus_Panel WP_Customize_New_Menu_Control WP_Customize_New_Menu_Section WP_Customize_Partial WP_Customize_Selective_Refresh WP_Customize_Sidebar_Section WP_Customize_Site_Icon_Control WP_Customize_Theme_Control WP_Customize_Themes_Section WP_Hook WP_HTTP_Requests_Hooks WP_HTTP_Requests_Response WP_HTTP_Response WP_List_Util WP_Locale_Switcher WP_Metadata_Lazyloader WP_Network WP_Network_Query WP_oEmbed_Controller WP_Post_Type WP_REST_Attachments_Controller WP_REST_Comment_Meta_Fields WP_REST_Comments_Controller WP_REST_Post_Meta_Fields WP_REST_Posts_Controller WP_REST_Post_Statuses_Controller WP_REST_Post_Types_Controller WP_REST_Request WP_REST_Response WP_REST_Revisions_Controller WP_REST_Server WP_REST_Settings_Controller WP_REST_Taxonomies_Controller WP_REST_Term_Meta_Fields WP_REST_Terms_Controller WP_REST_User_Meta_Fields WP_REST_Users_Controller WP_Site WP_Site_Query WP_Taxonomy WP_Term WP_Term_Query


# ==================
# Summary statistics
# ==================

In the original file '../syntax/wordpress.vim':
	Functions: 1447	Deprecated: 171	Classes: 186

In the new file 'out/new-wordpress-4.7.1.vim':
	Functions: 1711	Deprecated: 193	Classes: 290

ADDED:  	Functions: 321	Deprecated: 26	Classes: 110
REMOVED:	Functions: 57	Deprecated: 4	Classes: 6

DIFFERENCE:	Functions: 264	Deprecated: 22	Classes: 104

EDIT: syntax file updated to 4.7.1

joseluis avatar Nov 10 '16 17:11 joseluis

I switched to your repo instead this one but the syntax can be update to wordpress 4.9? I had to disable this plugin because create issue with deoplete :-/

Mte90 avatar Jan 11 '18 16:01 Mte90