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-admin/includes/ms-deprecated.php

    r35407 r37985  
    1717 */
    1818function wpmu_menu() {
    19     _deprecated_function(__FUNCTION__, '3.0' );
     19    _deprecated_function(__FUNCTION__, '3.0.0' );
    2020    // Deprecated. See #11763.
    2121}
     
    2828 */
    2929function wpmu_checkAvailableSpace() {
    30     _deprecated_function(__FUNCTION__, '3.0', 'is_upload_space_available()' );
     30    _deprecated_function(__FUNCTION__, '3.0.0', 'is_upload_space_available()' );
    3131
    3232    if ( !is_upload_space_available() )
     
    4040 */
    4141function mu_options( $options ) {
    42     _deprecated_function(__FUNCTION__, '3.0' );
     42    _deprecated_function(__FUNCTION__, '3.0.0' );
    4343    return $options;
    4444}
     
    5151 */
    5252function activate_sitewide_plugin() {
    53     _deprecated_function(__FUNCTION__, '3.0', 'activate_plugin()' );
     53    _deprecated_function(__FUNCTION__, '3.0.0', 'activate_plugin()' );
    5454    return false;
    5555}
     
    6262 */
    6363function deactivate_sitewide_plugin( $plugin = false ) {
    64     _deprecated_function(__FUNCTION__, '3.0', 'deactivate_plugin()' );
     64    _deprecated_function(__FUNCTION__, '3.0.0', 'deactivate_plugin()' );
    6565}
    6666
     
    7272 */
    7373function is_wpmu_sitewide_plugin( $file ) {
    74     _deprecated_function(__FUNCTION__, '3.0', 'is_network_only_plugin()' );
     74    _deprecated_function(__FUNCTION__, '3.0.0', 'is_network_only_plugin()' );
    7575    return is_network_only_plugin( $file );
    7676}
     
    8383 */
    8484function get_site_allowed_themes() {
    85     _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_network()' );
     85    _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' );
    8686    return array_map( 'intval', WP_Theme::get_allowed_on_network() );
    8787}
     
    9494 */
    9595function wpmu_get_blog_allowedthemes( $blog_id = 0 ) {
    96     _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_site()' );
     96    _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' );
    9797    return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) );
    9898}
Note: See TracChangeset for help on using the changeset viewer.