var $paging_text;
/**
- * PHP4 Constructor - Sets up the object properties.
+ * PHP5 Constructor - Sets up the object properties.
*
* @since 2.1.0
*
* @param string $role Role name.
* @return WP_User_Search
*/
- function WP_User_Search ($search_term = '', $page = '', $role = '') {
+ function __construct( $search_term = '', $page = '', $role = '' ) {
_deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' );
$this->search_term = wp_unslash( $search_term );
$this->do_paging();
}
+ /**
+ * PHP4 Constructor - Sets up the object properties.
+ *
+ * @since 2.1.0
+ *
+ * @param string $search_term Search terms string.
+ * @param int $page Optional. Page ID.
+ * @param string $role Role name.
+ * @return WP_User_Search
+ */
+ public function WP_User_Search( $search_term = '', $page = '', $role = '' ) {
+ self::__construct( $search_term, $page, $role );
+ }
+
/**
* {@internal Missing Short Description}}
*
function do_paging() {
if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results
$args = array();
- if( ! empty($this->search_term) )
+ if ( ! empty($this->search_term) )
$args['usersearch'] = urlencode($this->search_term);
- if( ! empty($this->role) )
+ if ( ! empty($this->role) )
$args['role'] = urlencode($this->role);
$this->paging_text = paginate_links( array(
* @deprecated 3.3.0
* @deprecated Use wp_editor()
* @see wp_editor()
+ *
+ * @staticvar int $num
*/
function wp_tiny_mce( $teeny = false, $settings = false ) {
_deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );