Make WordPress Core

Ticket #45657: patch-45657-deprecation-version-number-WP-5.0-vs-5.1.patch

File patch-45657-deprecation-version-number-WP-5.0-vs-5.1.patch, 2.5 KB (added by jrf, 7 years ago)
  • src/wp-admin/includes/deprecated.php

    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() { 
    15191519 * Ajax handler for tag search.
    15201520 *
    15211521 * @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.
    15231523 */
    15241524function 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' );
    15261526
    15271527        if ( ! isset( $_GET['tax'] ) ) {
    15281528                wp_die( 0 );
  • src/wp-includes/ms-deprecated.php

    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 ) { 
    559559 * the new blog's ID. It is the first step in creating a new blog.
    560560 *
    561561 * @since MU (3.0.0)
    562  * @deprecated 5.0.0 Use `wp_insert_site()`
     562 * @deprecated 5.1.0 Use `wp_insert_site()`
    563563 * @see wp_insert_site()
    564564 *
    565565 * @param string $domain  The domain of the new site.
    function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) { 
    568568 * @return int|false The ID of the new row
    569569 */
    570570function 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()' );
    572572
    573573        $data = array(
    574574                'domain'  => $domain,
    function insert_blog($domain, $path, $site_id) { 
    594594 * points to the new blog.
    595595 *
    596596 * @since MU (3.0.0)
    597  * @deprecated 5.0.0
     597 * @deprecated 5.1.0
    598598 *
    599599 * @global wpdb     $wpdb
    600600 * @global WP_Roles $wp_roles
    function insert_blog($domain, $path, $site_id) { 
    605605function install_blog( $blog_id, $blog_title = '' ) {
    606606        global $wpdb, $wp_roles;
    607607
    608         _deprecated_function( __FUNCTION__, '5.0.0' );
     608        _deprecated_function( __FUNCTION__, '5.1.0' );
    609609
    610610        // Cast for security
    611611        $blog_id = (int) $blog_id;