From 4fbcfe3a8c99253e74cfd3b9e741e3a674b9edcf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Jan 2017 20:37:42 +0000 Subject: [PATCH] Docs: After [38672], update `$type` parameter description for `submit_button()` and `get_submit_button()`. Remove the mention of `secondary` and `delete` classes as core values, add `small` and `large`. Props afercia. Fixes #23477. Built from https://develop.svn.wordpress.org/trunk@39936 git-svn-id: http://core.svn.wordpress.org/trunk@39873 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 83b16bb12c..4e75c0e283 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1896,7 +1896,7 @@ function compression_test() { * * @param string $text The text of the button (defaults to 'Save Changes') * @param string $type Optional. The type and CSS class(es) of the button. Core values - * include 'primary', 'secondary', 'delete'. Default 'primary' + * include 'primary', 'small', and 'large'. Default 'primary'. * @param string $name The HTML name of the submit button. Defaults to "submit". If no * id attribute is given in $other_attributes below, $name will be * used as the button's id. @@ -1919,8 +1919,8 @@ function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap * @since 3.1.0 * * @param string $text Optional. The text of the button. Default 'Save Changes'. - * @param string $type Optional. The type of button. Accepts 'primary', 'secondary', - * or 'delete'. Default 'primary large'. + * @param string $type Optional. The type and CSS class(es) of the button. Core values + * include 'primary', 'small', and 'large'. Default 'primary large'. * @param string $name Optional. The HTML name of the submit button. Defaults to "submit". * If no id attribute is given in $other_attributes below, `$name` will * be used as the button's id. Default 'submit'. diff --git a/wp-includes/version.php b/wp-includes/version.php index ef58469df1..9e422ab626 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39935'; +$wp_version = '4.8-alpha-39936'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.