Changeset 37985 for trunk/src/wp-includes/pluggable-deprecated.php
- Timestamp:
- 07/06/2016 12:39:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable-deprecated.php
r36651 r37985 31 31 */ 32 32 function set_current_user($id, $name = '') { 33 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_set_current_user()' );33 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_set_current_user()' ); 34 34 return wp_set_current_user($id, $name); 35 35 } … … 47 47 */ 48 48 function get_currentuserinfo() { 49 _deprecated_function( __FUNCTION__, '4.5 ', 'wp_get_current_user()' );49 _deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_current_user()' ); 50 50 51 51 return _wp_get_current_user(); … … 65 65 */ 66 66 function get_userdatabylogin($user_login) { 67 _deprecated_function( __FUNCTION__, '3.3 ', "get_user_by('login')" );67 _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('login')" ); 68 68 return get_user_by('login', $user_login); 69 69 } … … 82 82 */ 83 83 function get_user_by_email($email) { 84 _deprecated_function( __FUNCTION__, '3.3 ', "get_user_by('email')" );84 _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('email')" ); 85 85 return get_user_by('email', $email); 86 86 } … … 103 103 */ 104 104 function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) { 105 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_set_auth_cookie()' );105 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_set_auth_cookie()' ); 106 106 $user = get_user_by('login', $username); 107 107 wp_set_auth_cookie($user->ID, $remember); 108 108 } 109 109 else : 110 _deprecated_function( 'wp_setcookie', '2.5 ', 'wp_set_auth_cookie()' );110 _deprecated_function( 'wp_setcookie', '2.5.0', 'wp_set_auth_cookie()' ); 111 111 endif; 112 112 … … 120 120 */ 121 121 function wp_clearcookie() { 122 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_clear_auth_cookie()' );122 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' ); 123 123 wp_clear_auth_cookie(); 124 124 } 125 125 else : 126 _deprecated_function( 'wp_clearcookie', '2.5 ', 'wp_clear_auth_cookie()' );126 _deprecated_function( 'wp_clearcookie', '2.5.0', 'wp_clear_auth_cookie()' ); 127 127 endif; 128 128 … … 140 140 */ 141 141 function wp_get_cookie_login() { 142 _deprecated_function( __FUNCTION__, '2.5 ' );142 _deprecated_function( __FUNCTION__, '2.5.0' ); 143 143 return false; 144 144 } 145 145 else : 146 _deprecated_function( 'wp_get_cookie_login', '2.5 ' );146 _deprecated_function( 'wp_get_cookie_login', '2.5.0' ); 147 147 endif; 148 148 … … 170 170 */ 171 171 function wp_login($username, $password, $deprecated = '') { 172 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_signon()' );172 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_signon()' ); 173 173 global $error; 174 174 … … 182 182 } 183 183 else : 184 _deprecated_function( 'wp_login', '2.5 ', 'wp_signon()' );184 _deprecated_function( 'wp_login', '2.5.0', 'wp_signon()' ); 185 185 endif; 186 186 … … 199 199 class wp_atom_server { 200 200 public function __call( $name, $arguments ) { 201 _deprecated_function( __CLASS__ . '::' . $name, '3.5 ', 'the Atom Publishing Protocol plugin' );201 _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' ); 202 202 } 203 203 204 204 public static function __callStatic( $name, $arguments ) { 205 _deprecated_function( __CLASS__ . '::' . $name, '3.5 ', 'the Atom Publishing Protocol plugin' );205 _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' ); 206 206 } 207 207 }
Note: See TracChangeset
for help on using the changeset viewer.