Make WordPress Core

Changeset 46602


Ignore:
Timestamp:
10/27/2019 02:19:13 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Remove "private" designation from _doing_it_wrong() and related functions:

  • _deprecated_function()
  • _deprecated_argument()
  • _deprecated_constructor()
  • _deprecated_file()

Plugins and themes should be allowed to use these functions to throw appropriate error notices.

This brings them in line with newer do_action_deprecated() and apply_filters_deprecated() functions, which are not marked as private.

Props jrf.
Fixes #48251.

File:
1 edited

Legend:

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

    r46599 r46602  
    45484548 *
    45494549 * @since 2.5.0
    4550  * @access private
     4550 * @since 5.4.0 This function is no longer marked as "private".
    45514551 *
    45524552 * @param string $function    The function that was called.
     
    46054605 * @since 4.3.0
    46064606 * @since 4.5.0 Added the `$parent_class` parameter.
    4607  *
    4608  * @access private
     4607 * @since 5.4.0 This function is no longer marked as "private".
    46094608 *
    46104609 * @param string $class        The class containing the deprecated constructor.
     
    46984697 *
    46994698 * @since 2.5.0
    4700  * @access private
     4699 * @since 5.4.0 This function is no longer marked as "private".
    47014700 *
    47024701 * @param string $file        The file that was included.
     
    47654764 *
    47664765 * @since 3.0.0
    4767  * @access private
     4766 * @since 5.4.0 This function is no longer marked as "private".
    47684767 *
    47694768 * @param string $function The function that was called.
     
    48724871 *
    48734872 * @since 3.1.0
    4874  * @access private
     4873 * @since 5.4.0 This function is no longer marked as "private".
    48754874 *
    48764875 * @param string $function The function that was called.
Note: See TracChangeset for help on using the changeset viewer.