Docs: Document the usage of $wp_query global in WP_Media_List_Table::display_rows().

Follow-up to [34127].

Props upadalavipul, saumil1611.
Fixes #56839.

git-svn-id: https://develop.svn.wordpress.org/trunk@54661 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-10-21 13:33:54 +00:00
parent c8fcfc846e
commit 022a15b476

View File

@@ -672,7 +672,8 @@ class WP_Media_List_Table extends WP_List_Table {
}
/**
* @global WP_Post $post Global post object.
* @global WP_Post $post Global post object.
* @global WP_Query $wp_query WordPress Query object.
*/
public function display_rows() {
global $post, $wp_query;