From 4b0f8654c988514903e1168402cd386909a64715 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Thu, 22 Jun 2017 16:46:08 +0200
Subject: [PATCH] Implement usage of the new `_deprecated_class()` function
where appropriate.
---
src/wp-admin/includes/deprecated.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/wp-admin/includes/deprecated.php b/src/wp-admin/includes/deprecated.php
index a9e0e6f..4458af5 100644
a
|
b
|
class WP_User_Search { |
480 | 480 | * @return WP_User_Search |
481 | 481 | */ |
482 | 482 | function __construct( $search_term = '', $page = '', $role = '' ) { |
483 | | _deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' ); |
| 483 | _deprecated_class( __CLASS__, '3.1.0', 'WP_User_Query' ); |
484 | 484 | |
485 | 485 | $this->search_term = wp_unslash( $search_term ); |
486 | 486 | $this->raw_page = ( '' == $page ) ? false : (int) $page; |
… |
… |
class WP_User_Search { |
503 | 503 | * @return WP_User_Search |
504 | 504 | */ |
505 | 505 | public function WP_User_Search( $search_term = '', $page = '', $role = '' ) { |
| 506 | _deprecated_constructor( 'WP_User_Query', '3.1.0', get_class( $this ) ); |
506 | 507 | self::__construct( $search_term, $page, $role ); |
507 | 508 | } |
508 | 509 | |