From d746950bfcb433f7af9b3c624461228795fdc78f Mon Sep 17 00:00:00 2001 From: Justin Sternberg Date: Fri, 27 Apr 2018 12:25:43 -0400 Subject: [PATCH] Update to 2.1 and remove some errant function completions --- WP-Functions-Completions.sublime-completions | 43 -------------------- messages.json | 3 +- messages/2.1.0.txt | 3 ++ 3 files changed, 5 insertions(+), 44 deletions(-) create mode 100644 messages/2.1.0.txt diff --git a/WP-Functions-Completions.sublime-completions b/WP-Functions-Completions.sublime-completions index c3c0bfb..d8cd20d 100755 --- a/WP-Functions-Completions.sublime-completions +++ b/WP-Functions-Completions.sublime-completions @@ -275,7 +275,6 @@ {"trigger": "_mb_strlen", "contents": "_mb_strlen( ${1:\\$str}, ${2:\\$encoding = null} )" }, {"trigger": "hash_hmac", "contents": "hash_hmac( ${1:\\$algo}, ${2:\\$data}, ${3:\\$key}, ${4:\\$raw_output = false} )" }, {"trigger": "_hash_hmac", "contents": "_hash_hmac( ${1:\\$algo}, ${2:\\$data}, ${3:\\$key}, ${4:\\$raw_output = false} )" }, - {"trigger": "json_encode", "contents": "json_encode( ${1:\\$string} )" }, {"trigger": "json_decode", "contents": "json_decode( ${1:\\$string}, ${2:\\$assoc_array = false} )" }, {"trigger": "_json_decode_object_helper", "contents": "_json_decode_object_helper( ${1:\\$data} )" }, {"trigger": "hash_equals", "contents": "hash_equals( ${1:\\$a}, ${2:\\$b} )" }, @@ -2117,17 +2116,9 @@ {"trigger": "wp_widget_rss_process", "contents": "wp_widget_rss_process( ${1:\\$widget_rss}, ${2:\\$check_feed = true} )" }, {"trigger": "wp_widgets_init", "contents": "wp_widgets_init()" }, {"trigger": "RandomCompat_strlen", "contents": "RandomCompat_strlen( ${1:\\$binary_string} )" }, - {"trigger": "RandomCompat_strlen", "contents": "RandomCompat_strlen( ${1:\\$binary_string} )" }, - {"trigger": "RandomCompat_substr", "contents": "RandomCompat_substr( ${1:\\$binary_string}, ${2:\\$start}, ${3:\\$length = null} )" }, {"trigger": "RandomCompat_substr", "contents": "RandomCompat_substr( ${1:\\$binary_string}, ${2:\\$start}, ${3:\\$length = null} )" }, {"trigger": "RandomCompat_intval", "contents": "RandomCompat_intval( ${1:\\$number}, ${2:\\$fail_open = false} )" }, {"trigger": "random_bytes", "contents": "random_bytes( ${1:\\$length} )" }, - {"trigger": "random_bytes", "contents": "random_bytes( ${1:\\$bytes} )" }, - {"trigger": "random_bytes", "contents": "random_bytes( ${1:\\$bytes} )" }, - {"trigger": "random_bytes", "contents": "random_bytes( ${1:\\$bytes} )" }, - {"trigger": "random_bytes", "contents": "random_bytes( ${1:\\$bytes} )" }, - {"trigger": "random_bytes", "contents": "random_bytes( ${1:\\$bytes} )" }, - {"trigger": "random_bytes", "contents": "random_bytes( ${1:\\$bytes} )" }, {"trigger": "random_int", "contents": "random_int( ${1:\\$min}, ${2:\\$max} )" }, {"trigger": "unpoify", "contents": "unpoify( ${1:\\$string} )" }, {"trigger": "prepend_each_line", "contents": "prepend_each_line( ${1:\\$string}, ${2:\\$with} )" }, @@ -2141,19 +2132,6 @@ {"trigger": "add_comment_to_entry", "contents": "add_comment_to_entry( ${1:&\\$entry}, ${2:\\$po_comment_line} )" }, {"trigger": "trim_quotes", "contents": "trim_quotes( ${1:\\$s} )" }, {"trigger": "get_file", "contents": "get_file( ${1:\\$path} )" }, - {"trigger": "__construct", "contents": "__construct( ${1:\\$location}, ${2:\\$name}, ${3:\\$type} )" }, - {"trigger": "save", "contents": "save( ${1:\\$data} )" }, - {"trigger": "load", "contents": "load()" }, - {"trigger": "mtime", "contents": "mtime()" }, - {"trigger": "touch", "contents": "touch()" }, - {"trigger": "unlink", "contents": "unlink()" }, - {"trigger": "register", "contents": "register( ${1:Requests_Hooks &\\$hooks} )" }, - {"trigger": "register", "contents": "register( ${1:\\$hook}, ${2:\\$callback}, ${3:\\$priority = 0} )" }, - {"trigger": "dispatch", "contents": "dispatch( ${1:\\$hook}, ${2:\\$parameters = array} )" }, - {"trigger": "register", "contents": "register( ${1:Requests_Hooks &\\$hooks} )" }, - {"trigger": "request", "contents": "request( ${1:\\$url}, ${2:\\$headers = array}, ${3:\\$data = array}, ${4:\\$options = array} )" }, - {"trigger": "request_multiple", "contents": "request_multiple( ${1:\\$requests}, ${2:\\$options} )" }, - {"trigger": "test", "contents": "test()" }, {"trigger": "export_add_js", "contents": "export_add_js()" }, {"trigger": "export_date_options", "contents": "export_date_options( ${1:\\$post_type = 'post'} )" }, {"trigger": "maybe_create_table", "contents": "maybe_create_table( ${1:\\$table_name}, ${2:\\$create_ddl} )" }, @@ -2601,25 +2579,6 @@ {"trigger": "get_clean_basedomain", "contents": "get_clean_basedomain()" }, {"trigger": "network_step1", "contents": "network_step1( ${1:\\$errors = false} )" }, {"trigger": "network_step2", "contents": "network_step2( ${1:\\$errors = false} )" }, - {"trigger": "__", "contents": "__()" }, - {"trigger": "_x", "contents": "_x()" }, - {"trigger": "add_filter", "contents": "add_filter()" }, - {"trigger": "esc_attr", "contents": "esc_attr()" }, - {"trigger": "apply_filters", "contents": "apply_filters()" }, - {"trigger": "get_option", "contents": "get_option()" }, - {"trigger": "is_lighttpd_before_150", "contents": "is_lighttpd_before_150()" }, - {"trigger": "add_action", "contents": "add_action()" }, - {"trigger": "did_action", "contents": "did_action()" }, - {"trigger": "do_action_ref_array", "contents": "do_action_ref_array()" }, - {"trigger": "get_bloginfo", "contents": "get_bloginfo()" }, - {"trigger": "is_admin", "contents": "is_admin()" }, - {"trigger": "site_url", "contents": "site_url()" }, - {"trigger": "admin_url", "contents": "admin_url()" }, - {"trigger": "home_url", "contents": "home_url()" }, - {"trigger": "includes_url", "contents": "includes_url()" }, - {"trigger": "wp_guess_url", "contents": "wp_guess_url()" }, - {"trigger": "json_encode", "contents": "json_encode()" }, - {"trigger": "get_file", "contents": "get_file( ${1:\\$path} )" }, {"trigger": "options_discussion_add_js", "contents": "options_discussion_add_js()" }, {"trigger": "options_general_add_js", "contents": "options_general_add_js()" }, {"trigger": "options_permalink_add_js", "contents": "options_permalink_add_js()" }, @@ -2871,10 +2830,8 @@ {"trigger": "upgrade_450", "contents": "upgrade_450()" }, {"trigger": "upgrade_460", "contents": "upgrade_460()" }, {"trigger": "upgrade_network", "contents": "upgrade_network()" }, - {"trigger": "maybe_create_table", "contents": "maybe_create_table( ${1:\\$table_name}, ${2:\\$create_ddl} )" }, {"trigger": "drop_index", "contents": "drop_index( ${1:\\$table}, ${2:\\$index} )" }, {"trigger": "add_clean_index", "contents": "add_clean_index( ${1:\\$table}, ${2:\\$index} )" }, - {"trigger": "maybe_add_column", "contents": "maybe_add_column( ${1:\\$table_name}, ${2:\\$column_name}, ${3:\\$create_ddl} )" }, {"trigger": "maybe_convert_table_to_utf8mb4", "contents": "maybe_convert_table_to_utf8mb4( ${1:\\$table} )" }, {"trigger": "get_alloptions_110", "contents": "get_alloptions_110()" }, {"trigger": "__get_option", "contents": "__get_option( ${1:\\$setting} )" }, diff --git a/messages.json b/messages.json index cc52d24..fd8ac1a 100644 --- a/messages.json +++ b/messages.json @@ -1,3 +1,4 @@ { - "2.0.0": "messages/2.0.0.txt" + "2.0.0": "messages/2.0.0.txt", + "2.1.0": "messages/2.1.0.txt" } diff --git a/messages/2.1.0.txt b/messages/2.1.0.txt new file mode 100644 index 0000000..a04c497 --- /dev/null +++ b/messages/2.1.0.txt @@ -0,0 +1,3 @@ +Thank you for using the WordPress package for Sublime Text. + +This latest updates removes some redundant or incorrect functions that were parsed. \ No newline at end of file