Skip to content

Commit

Permalink
Docs: Docblock improvements in _deprecated_class() function, as per…
Browse files Browse the repository at this point in the history
… docblocks standards.

Follow-up to [56467].

See #58833.




git-svn-id: https://develop.svn.wordpress.org/trunk@56471 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Aug 25, 2023
1 parent 2f76410 commit 73f7ecc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5599,8 +5599,7 @@ function _deprecated_constructor( $class_name, $version, $parent_class = '' ) {
* Marks a class as deprecated and informs when it has been used.
*
* There is a {@see 'deprecated_class_run'} hook that will be called that can be used
* to get the backtrace up to what file and function called the
* deprecated class.
* to get the backtrace up to what file and function called the deprecated class.
*
* The current behavior is to trigger a user error if `WP_DEBUG` is true.
*
Expand All @@ -5609,7 +5608,7 @@ function _deprecated_constructor( $class_name, $version, $parent_class = '' ) {
*
* @since 6.4.0
*
* @param string $class The class being instantiated
* @param string $class The class being instantiated.
* @param string $version The version of WordPress that deprecated the class.
* @param string $replacement Optional. The class or function that should have been called.
* Default empty string.
Expand All @@ -5621,7 +5620,7 @@ function _deprecated_class( $class, $version, $replacement = '' ) {
*
* @since 6.4.0
*
* @param string $class The class being instantiated
* @param string $class The class being instantiated.
* @param string $replacement The class or function that should have been called.
* @param string $version The version of WordPress that deprecated the class.
*/
Expand Down

0 comments on commit 73f7ecc

Please sign in to comment.