From 8dd0ced153acf5625d6a20916914a5aa4ec56b1f Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Tue, 8 Oct 2019 13:40:29 +0200
Subject: [PATCH] Remove private assignation from _deprecated_..() and
_doing_it_wrong() functions
---
src/wp-includes/functions.php | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 717da22699..30ca4643e6 100644
|
a
|
b
|
function absint( $maybeint ) { |
| 4525 | 4525 | * This function is to be used in every function that is deprecated. |
| 4526 | 4526 | * |
| 4527 | 4527 | * @since 2.5.0 |
| 4528 | | * @access private |
| | 4528 | * @since 5.4.0 This function is no longer marked as "private". |
| 4529 | 4529 | * |
| 4530 | 4530 | * @param string $function The function that was called. |
| 4531 | 4531 | * @param string $version The version of WordPress that deprecated the function. |
| … |
… |
function _deprecated_function( $function, $version, $replacement = null ) { |
| 4582 | 4582 | * |
| 4583 | 4583 | * @since 4.3.0 |
| 4584 | 4584 | * @since 4.5.0 Added the `$parent_class` parameter. |
| 4585 | | * |
| 4586 | | * @access private |
| | 4585 | * @since 5.4.0 This function is no longer marked as "private". |
| 4587 | 4586 | * |
| 4588 | 4587 | * @param string $class The class containing the deprecated constructor. |
| 4589 | 4588 | * @param string $version The version of WordPress that deprecated the function. |
| … |
… |
function _deprecated_constructor( $class, $version, $parent_class = '' ) { |
| 4675 | 4674 | * This function is to be used in every file that is deprecated. |
| 4676 | 4675 | * |
| 4677 | 4676 | * @since 2.5.0 |
| 4678 | | * @access private |
| | 4677 | * @since 5.4.0 This function is no longer marked as "private". |
| 4679 | 4678 | * |
| 4680 | 4679 | * @param string $file The file that was included. |
| 4681 | 4680 | * @param string $version The version of WordPress that deprecated the file. |
| … |
… |
function _deprecated_file( $file, $version, $replacement = null, $message = '' ) |
| 4742 | 4741 | * The current behavior is to trigger a user error if WP_DEBUG is true. |
| 4743 | 4742 | * |
| 4744 | 4743 | * @since 3.0.0 |
| 4745 | | * @access private |
| | 4744 | * @since 5.4.0 This function is no longer marked as "private". |
| 4746 | 4745 | * |
| 4747 | 4746 | * @param string $function The function that was called. |
| 4748 | 4747 | * @param string $version The version of WordPress that deprecated the argument used. |
| … |
… |
function _deprecated_hook( $hook, $version, $replacement = null, $message = null |
| 4849 | 4848 | * The current behavior is to trigger a user error if `WP_DEBUG` is true. |
| 4850 | 4849 | * |
| 4851 | 4850 | * @since 3.1.0 |
| 4852 | | * @access private |
| | 4851 | * @since 5.4.0 This function is no longer marked as "private". |
| 4853 | 4852 | * |
| 4854 | 4853 | * @param string $function The function that was called. |
| 4855 | 4854 | * @param string $message A message explaining what has been done incorrectly. |