Skip to content

Commit 9b0cf1b

Browse files
committed
Ensure we're using the correct @ignore phpDocumentor tag to mark elements that should be skipped when parsing.
Up to this point, various core elements' DocBlocks incorrectly included an `@internal` tag as a means for skipping the parsing process. When paired with a description (inline or otherwise), `@internal` is a valid tag meant to provide internal-only context, but not necessarily to skip parsing the entire element. See #30987. git-svn-id: https://develop.svn.wordpress.org/trunk@31170 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1f9ee35 commit 9b0cf1b

5 files changed

Lines changed: 16 additions & 12 deletions

File tree

src/wp-admin/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
/**
217217
* Used to call the registered callback for a plugin screen.
218218
*
219-
* @internal
219+
* @ignore
220220
* @since 1.5.0
221221
*/
222222
do_action( $page_hook );

src/wp-cron.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function _get_cron_lock() {
9494
/**
9595
* Fires scheduled events.
9696
*
97-
* @internal
97+
* @ignore
9898
* @since 2.1.0
9999
*
100100
* @param string $hook Name of the hook that was scheduled to be fired.

src/wp-includes/functions.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2684,11 +2684,11 @@ function wp_json_encode( $data, $options = 0, $depth = 512 ) {
26842684
/**
26852685
* Perform sanity checks on data that shall be encoded to JSON.
26862686
*
2687-
* @see wp_json_encode()
2688-
*
2687+
* @ignore
26892688
* @since 4.1.0
26902689
* @access private
2691-
* @internal
2690+
*
2691+
* @see wp_json_encode()
26922692
*
26932693
* @param mixed $data Variable (usually an array or object) to encode as JSON.
26942694
* @param int $depth Maximum depth to walk through $data. Must be greater than 0.
@@ -2747,11 +2747,11 @@ function _wp_json_sanity_check( $data, $depth ) {
27472747
/**
27482748
* Convert a string to UTF-8, so that it can be safely encoded to JSON.
27492749
*
2750-
* @see _wp_json_sanity_check()
2751-
*
2750+
* @ignore
27522751
* @since 4.1.0
27532752
* @access private
2754-
* @internal
2753+
*
2754+
* @see _wp_json_sanity_check()
27552755
*
27562756
* @param string $string The string which is to be converted.
27572757
* @return string The checked string.
@@ -4320,7 +4320,7 @@ function send_nosniff_header() {
43204320
/**
43214321
* Return a MySQL expression for selecting the week number based on the start_of_week option.
43224322
*
4323-
* @internal
4323+
* @ignore
43244324
* @since 3.0.0
43254325
*
43264326
* @param string $column Database column.

src/wp-includes/general-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,9 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
716716
/**
717717
* Display title tag with contents.
718718
*
719+
* @ignore
719720
* @since 4.1.0
720721
* @access private
721-
* @internal
722722
*
723723
* @see wp_title()
724724
*/

src/wp-includes/script-loader.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,9 @@ function print_footer_scripts() {
831831
}
832832

833833
/**
834-
* @internal use
834+
* Print scripts (internal use only)
835+
*
836+
* @ignore
835837
*/
836838
function _print_scripts() {
837839
global $wp_scripts, $compress_scripts;
@@ -997,7 +999,9 @@ function print_late_styles() {
997999
}
9981000

9991001
/**
1000-
* @internal use
1002+
* Print styles (internal use only)
1003+
*
1004+
* @ignore
10011005
*/
10021006
function _print_styles() {
10031007
global $wp_styles, $compress_css;

0 commit comments

Comments
 (0)