Skip to content

Commit 0f17001

Browse files
Docs: Correct duplicate hook references in various files.
This commit adjusts cross-reference comments where the hook was moved to a different file but the cross-reference was not updated. Props apermo, mukesh27. See #64224. git-svn-id: https://develop.svn.wordpress.org/trunk@61878 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 636b79b commit 0f17001

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

src/wp-admin/includes/ajax-actions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,7 +2382,7 @@ function wp_ajax_save_widget() {
23822382
*/
23832383
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
23842384

2385-
/** This action is documented in wp-admin/widgets.php */
2385+
/** This action is documented in wp-admin/widgets-form.php */
23862386
do_action( 'sidebar_admin_setup' );
23872387

23882388
$id_base = wp_unslash( $_POST['id_base'] );
@@ -2410,7 +2410,7 @@ function wp_ajax_save_widget() {
24102410
'delete_widget' => '1',
24112411
);
24122412

2413-
/** This action is documented in wp-admin/widgets.php */
2413+
/** This action is documented in wp-admin/widgets-form.php */
24142414
do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base );
24152415

24162416
} elseif ( $settings && preg_match( '/__i__|%i%/', key( $settings ) ) ) {
@@ -2486,7 +2486,7 @@ function wp_ajax_delete_inactive_widgets() {
24862486
do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
24872487
/** This action is documented in wp-admin/includes/ajax-actions.php */
24882488
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
2489-
/** This action is documented in wp-admin/widgets.php */
2489+
/** This action is documented in wp-admin/widgets-form.php */
24902490
do_action( 'sidebar_admin_setup' );
24912491

24922492
$sidebars_widgets = wp_get_sidebars_widgets();

src/wp-admin/includes/ms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
9797
if ( $drop ) {
9898
wp_delete_site( $blog_id );
9999
} else {
100-
/** This action is documented in wp-includes/ms-blogs.php */
100+
/** This action is documented in wp-includes/ms-site.php */
101101
do_action_deprecated( 'delete_blog', array( $blog_id, false ), '5.1.0' );
102102

103103
$users = get_users(
@@ -116,7 +116,7 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
116116

117117
update_blog_status( $blog_id, 'deleted', 1 );
118118

119-
/** This action is documented in wp-includes/ms-blogs.php */
119+
/** This action is documented in wp-includes/ms-site.php */
120120
do_action_deprecated( 'deleted_blog', array( $blog_id, false ), '5.1.0' );
121121
}
122122

src/wp-includes/class-wp-customize-widgets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function customize_controls_init() {
338338
/** This action is documented in wp-admin/includes/ajax-actions.php */
339339
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
340340

341-
/** This action is documented in wp-admin/widgets.php */
341+
/** This action is documented in wp-admin/widgets-form.php */
342342
do_action( 'sidebar_admin_setup' );
343343
}
344344

@@ -1722,7 +1722,7 @@ public function wp_ajax_update_widget() {
17221722
/** This action is documented in wp-admin/includes/ajax-actions.php */
17231723
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
17241724

1725-
/** This action is documented in wp-admin/widgets.php */
1725+
/** This action is documented in wp-admin/widgets-form.php */
17261726
do_action( 'sidebar_admin_setup' );
17271727

17281728
$widget_id = $this->get_post_value( 'widget-id' );

src/wp-includes/class-wp-query.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3469,21 +3469,21 @@ public function get_posts() {
34693469
}
34703470

34713471
if ( ! empty( $this->posts ) && $this->is_comment_feed && $this->is_singular ) {
3472-
/** This filter is documented in wp-includes/query.php */
3472+
/** This filter is documented in wp-includes/class-wp-query.php */
34733473
$cjoin = apply_filters_ref_array( 'comment_feed_join', array( '', &$this ) );
34743474

3475-
/** This filter is documented in wp-includes/query.php */
3475+
/** This filter is documented in wp-includes/class-wp-query.php */
34763476
$cwhere = apply_filters_ref_array( 'comment_feed_where', array( "WHERE comment_post_ID = '{$this->posts[0]->ID}' AND comment_approved = '1'", &$this ) );
34773477

3478-
/** This filter is documented in wp-includes/query.php */
3478+
/** This filter is documented in wp-includes/class-wp-query.php */
34793479
$cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( '', &$this ) );
34803480
$cgroupby = ( ! empty( $cgroupby ) ) ? 'GROUP BY ' . $cgroupby : '';
34813481

3482-
/** This filter is documented in wp-includes/query.php */
3482+
/** This filter is documented in wp-includes/class-wp-query.php */
34833483
$corderby = apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) );
34843484
$corderby = ( ! empty( $corderby ) ) ? 'ORDER BY ' . $corderby : '';
34853485

3486-
/** This filter is documented in wp-includes/query.php */
3486+
/** This filter is documented in wp-includes/class-wp-query.php */
34873487
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );
34883488

34893489
$comments_request = "SELECT {$wpdb->comments}.comment_ID FROM {$wpdb->comments} $cjoin $cwhere $cgroupby $corderby $climits";

src/wp-includes/class-wp-text-diff-renderer-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function _deleted( $lines, $encode = true ) {
235235
if ( $encode ) {
236236
$processed_line = htmlspecialchars( $line );
237237

238-
/** This filter is documented in wp-includes/wp-diff.php */
238+
/** This filter is documented in wp-includes/class-wp-text-diff-renderer-table.php */
239239
$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'deleted' );
240240
}
241241
if ( $this->_show_split_view ) {
@@ -260,7 +260,7 @@ public function _context( $lines, $encode = true ) {
260260
if ( $encode ) {
261261
$processed_line = htmlspecialchars( $line );
262262

263-
/** This filter is documented in wp-includes/wp-diff.php */
263+
/** This filter is documented in wp-includes/class-wp-text-diff-renderer-table.php */
264264
$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'unchanged' );
265265
}
266266
if ( $this->_show_split_view ) {

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ function wp_allow_comment( $commentdata, $wp_error = false ) {
807807
);
808808

809809
if ( $is_flood ) {
810-
/** This filter is documented in wp-includes/comment-template.php */
810+
/** This filter is documented in wp-includes/comment.php */
811811
$comment_flood_message = apply_filters( 'comment_flood_message', __( 'You are posting comments too quickly. Slow down.' ) );
812812

813813
return new WP_Error( 'comment_flood', $comment_flood_message, 429 );

src/wp-includes/ms-load.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ function ms_load_current_site_and_network( $domain, $path, $subdomain = false )
383383

384384
// No network has been found, bail.
385385
if ( empty( $current_site ) ) {
386-
/** This action is documented in wp-includes/ms-settings.php */
386+
/** This action is documented in wp-includes/ms-load.php */
387387
do_action( 'ms_network_not_found', $domain, $path );
388388

389389
return false;

src/wp-includes/rest-api/class-wp-rest-server.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,16 +1383,16 @@ public function get_index( $request ) {
13831383
$input_formats = array( 'image/jpeg', 'image/png', 'image/gif', 'image/webp', 'image/avif', 'image/heic' );
13841384
$output_formats = array();
13851385
foreach ( $input_formats as $mime_type ) {
1386-
/** This filter is documented in wp-includes/class-wp-image-editor.php */
1386+
/** This filter is documented in wp-includes/media.php */
13871387
$output_formats = apply_filters( 'image_editor_output_format', $output_formats, '', $mime_type );
13881388
}
13891389
$available['image_output_formats'] = (object) $output_formats;
13901390

1391-
/** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */
1391+
/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
13921392
$available['jpeg_interlaced'] = (bool) apply_filters( 'image_save_progressive', false, 'image/jpeg' );
1393-
/** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */
1393+
/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
13941394
$available['png_interlaced'] = (bool) apply_filters( 'image_save_progressive', false, 'image/png' );
1395-
/** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */
1395+
/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
13961396
$available['gif_interlaced'] = (bool) apply_filters( 'image_save_progressive', false, 'image/gif' );
13971397
}
13981398

0 commit comments

Comments
 (0)