diff --git a/src/wp-admin/includes/class-wp-ms-themes-list-table.php b/src/wp-admin/includes/class-wp-ms-themes-list-table.php index fb3c33e7ad..eb0d6777ce 100644 --- a/src/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -479,7 +479,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { * * @param array $actions An array of action links. * @param WP_Theme $theme The current WP_Theme object. - * @param string $context Status of the theme. + * @param string $context Status of the theme, one of all', 'enabled', or 'disabled'. */ $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context ); @@ -495,7 +495,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { * * @param array $actions An array of action links. * @param WP_Theme $theme The current WP_Theme object. - * @param string $context Status of the theme. + * @param string $context Status of the theme, one of all', 'enabled', or 'disabled'. */ $actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, $context ); diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 524637b1d4..40f5315395 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -1720,9 +1720,10 @@ class WP_Posts_List_Table extends WP_List_Table { * @since 2.7.0 * * @param string $column_name Name of the column to edit. - * @param string $post_type The post type slug. + * @param string $post_type The post type slug, or current screen name if this is a taxonomy list table. + * @param string taxonomy The taxonomy name, if any. */ - do_action( 'quick_edit_custom_box', $column_name, $screen->post_type ); + do_action( 'quick_edit_custom_box', $column_name, $screen->post_type, '' ); } } diff --git a/src/wp-admin/includes/class-wp-press-this.php b/src/wp-admin/includes/class-wp-press-this.php index 955c7d7b20..1a30e4104d 100644 --- a/src/wp-admin/includes/class-wp-press-this.php +++ b/src/wp-admin/includes/class-wp-press-this.php @@ -1522,7 +1522,7 @@ class WP_Press_This { ' . __( 'Delete' ) . ''; /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */ - $actions = apply_filters( 'theme_action_links', $actions, $theme ); + $actions = apply_filters( 'theme_action_links', $actions, $theme, 'all' ); /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */ - $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme ); + $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, 'all' ); $delete_action = isset( $actions['delete'] ) ? '
' . $actions['delete'] . '
' : ''; unset( $actions['delete'] ); diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index 83bcd1bbc3..e746982e41 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -260,7 +260,7 @@ function wpmu_delete_user( $id ) { clean_user_cache( $user ); /** This action is documented in wp-admin/includes/user.php */ - do_action( 'deleted_user', $id ); + do_action( 'deleted_user', $id, null ); return true; } diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php index 417dce0288..f9de7360bd 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php @@ -1382,7 +1382,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { if ( ! empty( $schema['properties']['guid'] ) ) { $data['guid'] = array( /** This filter is documented in wp-includes/post-template.php */ - 'rendered' => apply_filters( 'get_the_guid', $post->guid ), + 'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ), 'raw' => $post->guid, ); } diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php index 16da36bc42..fdb01dcbca 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php @@ -369,7 +369,7 @@ class WP_REST_Revisions_Controller extends WP_REST_Controller { if ( ! empty( $schema['properties']['guid'] ) ) { $data['guid'] = array( /** This filter is documented in wp-includes/post-template.php */ - 'rendered' => apply_filters( 'get_the_guid', $post->guid ), + 'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ), 'raw' => $post->guid, ); } diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index a1cc0866b2..2b2fbf2403 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -2749,7 +2749,7 @@ function check_theme_switched() { do_action( 'after_switch_theme', $old_theme->get( 'Name' ), $old_theme ); } else { /** This action is documented in wp-includes/theme.php */ - do_action( 'after_switch_theme', $stylesheet ); + do_action( 'after_switch_theme', $stylesheet, $old_theme ); } flush_rewrite_rules(); diff --git a/tests/phpunit/tests/rest-api/rest-revisions-controller.php b/tests/phpunit/tests/rest-api/rest-revisions-controller.php index 4f4fe0f3c9..bd3fac7cf0 100644 --- a/tests/phpunit/tests/rest-api/rest-revisions-controller.php +++ b/tests/phpunit/tests/rest-api/rest-revisions-controller.php @@ -317,7 +317,7 @@ class WP_Test_REST_Revisions_Controller extends WP_Test_REST_Controller_Testcase $rendered_excerpt = apply_filters( 'the_excerpt', apply_filters( 'get_the_excerpt', $revision->post_excerpt, $revision ) ); $this->assertEquals( $rendered_excerpt, $response['excerpt']['rendered'] ); - $rendered_guid = apply_filters( 'get_the_guid', $revision->guid ); + $rendered_guid = apply_filters( 'get_the_guid', $revision->guid, $revision->ID ); $this->assertEquals( $rendered_guid, $response['guid']['rendered'] ); $this->assertEquals( $revision->ID, $response['id'] );