WordPress.org

Make WordPress Core

Ticket #48254: 48254-docs-add-missing-file-deprecated-tags.patch

File 48254-docs-add-missing-file-deprecated-tags.patch, 3.3 KB (added by jrf, 6 weeks ago)

Docs: add missing file deprecation @deprecated tags

  • src/wp-admin/includes/class-wp-upgrader-skins.php

    From 91e313172fedf3b28b9786549c380d30a50f1d45 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Sun, 6 Oct 2019 02:44:27 +0200
    Subject: [PATCH] Docs: add missing file deprecation @deprecated tags
    
    ---
     src/wp-admin/includes/class-wp-upgrader-skins.php | 1 +
     src/wp-includes/class-feed.php                    | 1 +
     src/wp-includes/locale.php                        | 1 +
     src/wp-includes/registration-functions.php        | 2 ++
     src/wp-includes/registration.php                  | 2 ++
     src/wp-includes/rss-functions.php                 | 1 +
     src/wp-includes/session.php                       | 1 +
     7 files changed, 9 insertions(+)
    
    diff --git a/src/wp-admin/includes/class-wp-upgrader-skins.php b/src/wp-admin/includes/class-wp-upgrader-skins.php
    index 183a01193e..636ce1838c 100644
    a b  
    55 * @package WordPress
    66 * @subpackage Upgrader
    77 * @since 2.8.0
     8 * @deprecated 4.7.0
    89 */
    910
    1011_deprecated_file( basename( __FILE__ ), '4.7.0', 'class-wp-upgrader.php' );
  • src/wp-includes/class-feed.php

    diff --git a/src/wp-includes/class-feed.php b/src/wp-includes/class-feed.php
    index 8d174c66b4..5236170450 100644
    a b  
    44 *
    55 * @package WordPress
    66 * @subpackage Feed
     7 * @deprecated 4.7.0
    78 */
    89
    910_deprecated_file( basename( __FILE__ ), '4.7.0', 'fetch_feed()' );
  • src/wp-includes/locale.php

    diff --git a/src/wp-includes/locale.php b/src/wp-includes/locale.php
    index 6a459e3e34..a4a1428b0a 100644
    a b  
    55 * @package WordPress
    66 * @subpackage i18n
    77 * @since 1.2.0
     8 * @deprecated 4.7.0
    89 */
    910
    1011_deprecated_file( basename( __FILE__ ), '4.7.0' );
  • src/wp-includes/registration-functions.php

    diff --git a/src/wp-includes/registration-functions.php b/src/wp-includes/registration-functions.php
    index d48fa27466..347856e543 100644
    a b  
    33 * Deprecated. No longer needed.
    44 *
    55 * @package WordPress
     6 * @deprecated 2.1.0
    67 */
     8
    79_deprecated_file( basename( __FILE__ ), '2.1.0', null, __( 'This file no longer needs to be included.' ) );
  • src/wp-includes/registration.php

    diff --git a/src/wp-includes/registration.php b/src/wp-includes/registration.php
    index c346c1145e..a676e730b1 100644
    a b  
    33 * Deprecated. No longer needed.
    44 *
    55 * @package WordPress
     6 * @deprecated 3.1.0
    67 */
     8
    79_deprecated_file( basename( __FILE__ ), '3.1.0', null, __( 'This file no longer needs to be included.' ) );
  • src/wp-includes/rss-functions.php

    diff --git a/src/wp-includes/rss-functions.php b/src/wp-includes/rss-functions.php
    index a7cc30fdaf..07b0aefb81 100644
    a b  
    33 * Deprecated. Use rss.php instead.
    44 *
    55 * @package WordPress
     6 * @deprecated 2.1.0
    67 */
    78
    89_deprecated_file( basename( __FILE__ ), '2.1.0', WPINC . '/rss.php' );
  • src/wp-includes/session.php

    diff --git a/src/wp-includes/session.php b/src/wp-includes/session.php
    index 3a8411a90b..8e9918ad4c 100644
    a b  
    33 * Session API
    44 *
    55 * @since 4.0.0
     6 * @deprecated 4.7.0
    67 */
    78
    89_deprecated_file( basename( __FILE__ ), '4.7.0' );