WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/06/2016 12:39:01 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core.

Props metodiew.
Fixes #36495.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-deprecated.php

    r37667 r37985  
    2525 */
    2626function get_dashboard_blog() {
    27     _deprecated_function( __FUNCTION__, '3.1' );
     27    _deprecated_function( __FUNCTION__, '3.1.0' );
    2828    if ( $blog = get_site_option( 'dashboard_blog' ) )
    2929        return get_blog_details( $blog );
     
    4242 */
    4343function generate_random_password( $len = 8 ) {
    44     _deprecated_function( __FUNCTION__, '3.0', 'wp_generate_password()' );
     44    _deprecated_function( __FUNCTION__, '3.0.0', 'wp_generate_password()' );
    4545    return wp_generate_password( $len );
    4646}
     
    6262 */
    6363function is_site_admin( $user_login = '' ) {
    64     _deprecated_function( __FUNCTION__, '3.0', 'is_super_admin()' );
     64    _deprecated_function( __FUNCTION__, '3.0.0', 'is_super_admin()' );
    6565
    6666    if ( empty( $user_login ) ) {
     
    8787 */
    8888function graceful_fail( $message ) {
    89     _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
     89    _deprecated_function( __FUNCTION__, '3.0.0', 'wp_die()' );
    9090    $message = apply_filters( 'graceful_fail', $message );
    9191    $message_template = apply_filters( 'graceful_fail_template',
     
    127127 */
    128128function get_user_details( $username ) {
    129     _deprecated_function( __FUNCTION__, '3.0', 'get_user_by()' );
     129    _deprecated_function( __FUNCTION__, '3.0.0', 'get_user_by()' );
    130130    return get_user_by('login', $username);
    131131}
     
    141141 */
    142142function clear_global_post_cache( $post_id ) {
    143     _deprecated_function( __FUNCTION__, '3.0', 'clean_post_cache()' );
     143    _deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' );
    144144}
    145145
     
    152152 */
    153153function is_main_blog() {
    154     _deprecated_function( __FUNCTION__, '3.0', 'is_main_site()' );
     154    _deprecated_function( __FUNCTION__, '3.0.0', 'is_main_site()' );
    155155    return is_main_site();
    156156}
     
    168168 */
    169169function validate_email( $email, $check_domain = true) {
    170     _deprecated_function( __FUNCTION__, '3.0', 'is_email()' );
     170    _deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' );
    171171    return is_email( $email, $check_domain );
    172172}
     
    184184 */
    185185function get_blog_list( $start = 0, $num = 10, $deprecated = '' ) {
    186     _deprecated_function( __FUNCTION__, '3.0', 'wp_get_sites()' );
     186    _deprecated_function( __FUNCTION__, '3.0.0', 'wp_get_sites()' );
    187187
    188188    global $wpdb;
     
    217217 */
    218218function get_most_active_blogs( $num = 10, $display = true ) {
    219     _deprecated_function( __FUNCTION__, '3.0' );
     219    _deprecated_function( __FUNCTION__, '3.0.0' );
    220220
    221221    $blogs = get_blog_list( 0, 'all', false ); // $blog_id -> $details
     
    268268 */
    269269function wpmu_admin_do_redirect( $url = '' ) {
    270     _deprecated_function( __FUNCTION__, '3.3' );
     270    _deprecated_function( __FUNCTION__, '3.3.0' );
    271271
    272272    $ref = '';
     
    308308 */
    309309function wpmu_admin_redirect_add_updated_param( $url = '' ) {
    310     _deprecated_function( __FUNCTION__, '3.3' );
     310    _deprecated_function( __FUNCTION__, '3.3.0' );
    311311
    312312    if ( strpos( $url, 'updated=true' ) === false ) {
     
    333333 */
    334334function get_user_id_from_string( $string ) {
    335     _deprecated_function( __FUNCTION__, '3.6', 'get_user_by()' );
     335    _deprecated_function( __FUNCTION__, '3.6.0', 'get_user_by()' );
    336336
    337337    if ( is_email( $string ) )
     
    358358 */
    359359function get_blogaddress_by_domain( $domain, $path ) {
    360     _deprecated_function( __FUNCTION__, '3.7' );
     360    _deprecated_function( __FUNCTION__, '3.7.0' );
    361361
    362362    if ( is_subdomain_install() ) {
     
    389389 */
    390390function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) {
    391     _deprecated_function( __FUNCTION__, '4.4' );
     391    _deprecated_function( __FUNCTION__, '4.4.0' );
    392392
    393393    if ( empty($path) )
     
    425425 */
    426426function get_admin_users_for_domain( $sitedomain = '', $path = '' ) {
    427     _deprecated_function( __FUNCTION__, '4.4' );
     427    _deprecated_function( __FUNCTION__, '4.4.0' );
    428428
    429429    global $wpdb;
     
    470470    global $wpdb;
    471471
    472     _deprecated_function( __FUNCTION__, '4.6', 'get_sites()' );
     472    _deprecated_function( __FUNCTION__, '4.6.0', 'get_sites()' );
    473473
    474474    if ( wp_is_large_network() )
Note: See TracChangeset for help on using the changeset viewer.