From 4d22c4392a47dc352742c12091976893f65bf3b9 Mon Sep 17 00:00:00 2001
Date: Sat, 15 Dec 2018 14:22:08 +0100
Subject: [PATCH] Fix deprecation version number WP 5.0 vs 5.1
---
src/wp-admin/includes/deprecated.php | 4 ++--
src/wp-includes/ms-deprecated.php | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/wp-admin/includes/deprecated.php b/src/wp-admin/includes/deprecated.php
index 61989cb5b9..eb99e216dd 100644
|
a
|
b
|
function options_permalink_add_js() { |
| 1519 | 1519 | * Ajax handler for tag search. |
| 1520 | 1520 | * |
| 1521 | 1521 | * @since 3.1.0 |
| 1522 | | * @deprecated 5.0.0 Use the REST API tags endpoint instead. |
| | 1522 | * @deprecated 5.1.0 Use the REST API tags endpoint instead. |
| 1523 | 1523 | */ |
| 1524 | 1524 | function wp_ajax_ajax_tag_search() { |
| 1525 | | _deprecated_function( __FUNCTION__, '5.0.0', '/wp-json/wp/v2/tags' ); |
| | 1525 | _deprecated_function( __FUNCTION__, '5.1.0', 'REST API endpoint /wp-json/wp/v2/tags' ); |
| 1526 | 1526 | |
| 1527 | 1527 | if ( ! isset( $_GET['tax'] ) ) { |
| 1528 | 1528 | wp_die( 0 ); |
diff --git a/src/wp-includes/ms-deprecated.php b/src/wp-includes/ms-deprecated.php
index 26544a57f9..6763fcb384 100644
|
a
|
b
|
function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) { |
| 559 | 559 | * the new blog's ID. It is the first step in creating a new blog. |
| 560 | 560 | * |
| 561 | 561 | * @since MU (3.0.0) |
| 562 | | * @deprecated 5.0.0 Use `wp_insert_site()` |
| | 562 | * @deprecated 5.1.0 Use `wp_insert_site()` |
| 563 | 563 | * @see wp_insert_site() |
| 564 | 564 | * |
| 565 | 565 | * @param string $domain The domain of the new site. |
| … |
… |
function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) { |
| 568 | 568 | * @return int|false The ID of the new row |
| 569 | 569 | */ |
| 570 | 570 | function insert_blog($domain, $path, $site_id) { |
| 571 | | _deprecated_function( __FUNCTION__, '5.0.0', 'wp_insert_site()' ); |
| | 571 | _deprecated_function( __FUNCTION__, '5.1.0', 'wp_insert_site()' ); |
| 572 | 572 | |
| 573 | 573 | $data = array( |
| 574 | 574 | 'domain' => $domain, |
| … |
… |
function insert_blog($domain, $path, $site_id) { |
| 594 | 594 | * points to the new blog. |
| 595 | 595 | * |
| 596 | 596 | * @since MU (3.0.0) |
| 597 | | * @deprecated 5.0.0 |
| | 597 | * @deprecated 5.1.0 |
| 598 | 598 | * |
| 599 | 599 | * @global wpdb $wpdb |
| 600 | 600 | * @global WP_Roles $wp_roles |
| … |
… |
function insert_blog($domain, $path, $site_id) { |
| 605 | 605 | function install_blog( $blog_id, $blog_title = '' ) { |
| 606 | 606 | global $wpdb, $wp_roles; |
| 607 | 607 | |
| 608 | | _deprecated_function( __FUNCTION__, '5.0.0' ); |
| | 608 | _deprecated_function( __FUNCTION__, '5.1.0' ); |
| 609 | 609 | |
| 610 | 610 | // Cast for security |
| 611 | 611 | $blog_id = (int) $blog_id; |