Taxonomy: restore TagSearch unit tests and correct deprecated version string.
Reverts unit test removal, instead changing them to expect the function to be deprecated. Correct the version the ajax callback was deprecated. Amends [42614]. Props dlh, ocean90. Fixes #38922. Built from https://develop.svn.wordpress.org/trunk@42737 git-svn-id: http://core.svn.wordpress.org/trunk@42567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
395667f916
commit
505c2ddb61
|
@ -1519,10 +1519,10 @@ function options_permalink_add_js() {
|
|||
* Ajax handler for tag search.
|
||||
*
|
||||
* @since 3.1.0
|
||||
* @deprecated 4.9.0 Use the REST API tags endpoint instead.
|
||||
* @deprecated 5.0.0 Use the REST API tags endpoint instead.
|
||||
*/
|
||||
function wp_ajax_ajax_tag_search() {
|
||||
_deprecated_function( __FUNCTION__, '4.8', '/wp-json/wp/v2/tags' );
|
||||
_deprecated_function( __FUNCTION__, '5.0.0', '/wp-json/wp/v2/tags' );
|
||||
|
||||
if ( ! isset( $_GET['tax'] ) ) {
|
||||
wp_die( 0 );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42736';
|
||||
$wp_version = '5.0-alpha-42737';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue