Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
WordPress 5.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kallookoo committed Jan 9, 2019
1 parent dbd858e commit 28849ab
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 19 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Is a collection of the completions and some snippets for Sublime Text

| Type | Completions |
| ------------ | ----------- |
| Functions | **2611** |
| Actions | **635** |
| Filters | **1421** |
| Functions | **2613** |
| Actions | **634** |
| Filters | **1426** |
| Classes | **371** |
| Methods | **3410** |
| Constants | **514** |
Expand Down
6 changes: 1 addition & 5 deletions completions/actions.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scope": "source.php - variable.other.php",
"comment": "635 WordPress - Actions",
"comment": "634 WordPress - Actions",
"completions": [
{
"trigger": "add_action-_admin_menu\tWP Action",
Expand Down Expand Up @@ -42,10 +42,6 @@
"trigger": "_wp_put_post_revision\tWP Action Name",
"contents": "_wp_put_post_revision"
},
{
"trigger": "add_action-{$action}\tWP Action",
"contents": "add_action( \"${1:\\{${2:\\$action}\\}}\", ${3:\\$function_to_add}, ${4:10}, 4 );"
},
{
"trigger": "add_action-{$new_status}_{$post->post_type}\tWP Action",
"contents": "add_action( \"${1:\\{${2:\\$new_status}\\}}_${3:\\{${4:\\$post->post_type}\\}}\", ${5:\\$function_to_add}, ${6:10}, 2 );"
Expand Down
42 changes: 41 additions & 1 deletion completions/filters.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scope": "source.php - variable.other.php",
"comment": "1421 WordPress - Filters",
"comment": "1426 WordPress - Filters",
"completions": [
{
"trigger": "add_filter-_get_page_link\tWP Filter",
Expand Down Expand Up @@ -562,6 +562,14 @@
"trigger": "block_categories\tWP Filter Name",
"contents": "block_categories"
},
{
"trigger": "add_filter-block_editor_no_javascript_message\tWP Filter",
"contents": "add_filter( 'block_editor_no_javascript_message', ${1:\\$function_to_add}, ${2:10}, 2 );"
},
{
"trigger": "block_editor_no_javascript_message\tWP Filter Name",
"contents": "block_editor_no_javascript_message"
},
{
"trigger": "add_filter-block_editor_preload_paths\tWP Filter",
"contents": "add_filter( 'block_editor_preload_paths', ${1:\\$function_to_add}, ${2:10}, 2 );"
Expand Down Expand Up @@ -3958,6 +3966,30 @@
"trigger": "load_image_to_edit_path\tWP Filter Name",
"contents": "load_image_to_edit_path"
},
{
"trigger": "add_filter-load_script_textdomain_relative_path\tWP Filter",
"contents": "add_filter( 'load_script_textdomain_relative_path', ${1:\\$function_to_add}, ${2:10}, 2 );"
},
{
"trigger": "load_script_textdomain_relative_path\tWP Filter Name",
"contents": "load_script_textdomain_relative_path"
},
{
"trigger": "add_filter-load_script_translation_file\tWP Filter",
"contents": "add_filter( 'load_script_translation_file', ${1:\\$function_to_add}, ${2:10}, 3 );"
},
{
"trigger": "load_script_translation_file\tWP Filter Name",
"contents": "load_script_translation_file"
},
{
"trigger": "add_filter-load_script_translations\tWP Filter",
"contents": "add_filter( 'load_script_translations', ${1:\\$function_to_add}, ${2:10}, 4 );"
},
{
"trigger": "load_script_translations\tWP Filter Name",
"contents": "load_script_translations"
},
{
"trigger": "add_filter-load_textdomain_mofile\tWP Filter",
"contents": "add_filter( 'load_textdomain_mofile', ${1:\\$function_to_add}, ${2:10}, 2 );"
Expand Down Expand Up @@ -5926,6 +5958,14 @@
"trigger": "pre_kses\tWP Filter Name",
"contents": "pre_kses"
},
{
"trigger": "add_filter-pre_load_script_translations\tWP Filter",
"contents": "add_filter( 'pre_load_script_translations', ${1:\\$function_to_add}, ${2:10}, 4 );"
},
{
"trigger": "pre_load_script_translations\tWP Filter Name",
"contents": "pre_load_script_translations"
},
{
"trigger": "add_filter-pre_move_uploaded_file\tWP Filter",
"contents": "add_filter( 'pre_move_uploaded_file', ${1:\\$function_to_add}, ${2:10}, 4 );"
Expand Down
26 changes: 17 additions & 9 deletions completions/functions.sublime-completions
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scope": "source.php - variable.other.php",
"comment": "2611 WordPress - Functions",
"comment": "2613 WordPress - Functions",
"completions": [
{
"trigger": "__\tWP Function",
Expand Down Expand Up @@ -3914,14 +3914,6 @@
"trigger": "grant_super_admin\tWP Function",
"contents": "grant_super_admin( ${1:\\$user_id} )${2:;}"
},
{
"trigger": "gutenberg_draft_or_post_title\tWP Function",
"contents": "gutenberg_draft_or_post_title( ${1:\\$post} )${2:;}"
},
{
"trigger": "gutenberg_render_block_core_latest_comments\tWP Function",
"contents": "gutenberg_render_block_core_latest_comments(${1: ${2:array( ${3:'${4:}'} )} })${5:;}"
},
{
"trigger": "has_action\tWP Function",
"contents": "has_action( ${1:\\$tag}${2:, ${3:false}} )${4:;}"
Expand Down Expand Up @@ -4622,6 +4614,10 @@
"trigger": "load_script_textdomain\tWP Function",
"contents": "load_script_textdomain( ${1:\\$handle}, ${2:\\$domain}${3:, ${4:null}} )${5:;}"
},
{
"trigger": "load_script_translations\tWP Function",
"contents": "load_script_translations( ${1:\\$file}, ${2:\\$handle}, ${3:\\$domain} )${4:;}"
},
{
"trigger": "load_template\tWP Function",
"contents": "load_template( ${1:\\$_template_file}${2:, ${3:true}} );"
Expand Down Expand Up @@ -5602,6 +5598,10 @@
"trigger": "render_block_core_categories\tWP Function",
"contents": "render_block_core_categories( ${1:\\$attributes} )${2:;}"
},
{
"trigger": "render_block_core_latest_comments\tWP Function",
"contents": "render_block_core_latest_comments(${1: ${2:array( ${3:'${4:}'} )} })${5:;}"
},
{
"trigger": "render_block_core_latest_posts\tWP Function",
"contents": "render_block_core_latest_posts( ${1:\\$attributes} )${2:;}"
Expand Down Expand Up @@ -8850,6 +8850,10 @@
"trigger": "wp_kses_version\tWP Function",
"contents": "wp_kses_version()${1:;}"
},
{
"trigger": "wp_latest_comments_draft_or_post_title\tWP Function",
"contents": "wp_latest_comments_draft_or_post_title( ${1:\\$post} )${2:;}"
},
{
"trigger": "wp_link_category_checklist\tWP Function",
"contents": "wp_link_category_checklist( ${1:\\$link_id} );"
Expand Down Expand Up @@ -10058,6 +10062,10 @@
"trigger": "wp_unique_filename\tWP Function",
"contents": "wp_unique_filename( ${1:\\$dir}, ${2:\\$filename}${3:, ${4:null}} )${5:;}"
},
{
"trigger": "wp_unique_id\tWP Function",
"contents": "wp_unique_id(${1: ${2:'${3:}'} })${4:;}"
},
{
"trigger": "wp_unique_post_slug\tWP Function",
"contents": "wp_unique_post_slug( ${1:\\$slug}, ${2:\\$post_ID}, ${3:\\$post_status}, ${4:\\$post_type}, ${5:\\$post_parent} )${6:;}"
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
"4.9.8+1.2": "messages/49812.txt",
"4.9.8+1.2.1": "messages/498121.txt",
"5.0.0+1.0": "messages/50010.txt",
"5.0.1+1.0": "messages/50110.txt"
"5.0.1+1.0": "messages/50110.txt",
"5.0.3+1.0": "messages/50310.txt"
}
4 changes: 4 additions & 0 deletions messages/50310.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Version 5.0.3+1.0
-----------------------------------------

WordPress 5.0.3

0 comments on commit 28849ab

Please sign in to comment.