@@ -4290,6 +4290,8 @@ protected function get_bulk_actions()
42904290 *
42914291 * @param string $which The location of the bulk actions: 'top' or 'bottom'.
42924292 * This is designated as optional for backward compatibility.
4293+ * @phpstan-param "top"|"bottom" $which
4294+ * @phpstan-return void
42934295 */
42944296 protected function bulk_actions($which = '')
42954297 {
@@ -4378,6 +4380,8 @@ protected function get_items_per_page($option, $default = 20)
43784380 * @since 3.1.0
43794381 *
43804382 * @param string $which
4383+ * @phpstan-param "top"|"bottom" $which
4384+ * @phpstan-return void
43814385 */
43824386 protected function pagination($which)
43834387 {
@@ -4494,6 +4498,8 @@ protected function get_table_classes()
44944498 *
44954499 * @since 3.1.0
44964500 * @param string $which
4501+ * @phpstan-param "top"|"bottom" $which
4502+ * @phpstan-return void
44974503 */
44984504 protected function display_tablenav($which)
44994505 {
@@ -40697,6 +40703,7 @@ class WP_Http
4069740703 * filename?: string,
4069840704 * limit_response_size?: int,
4069940705 * } $args
40706+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
4070040707 */
4070140708 public function request($url, $args = array())
4070240709 {
@@ -40785,6 +40792,7 @@ private function _dispatch_request($url, $args)
4078540792 * @param string|array $args Optional. Override the defaults.
4078640793 * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
4078740794 * A WP_Error instance upon error.
40795+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
4078840796 */
4078940797 public function post($url, $args = array())
4079040798 {
@@ -40800,6 +40808,7 @@ public function post($url, $args = array())
4080040808 * @param string|array $args Optional. Override the defaults.
4080140809 * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
4080240810 * A WP_Error instance upon error.
40811+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
4080340812 */
4080440813 public function get($url, $args = array())
4080540814 {
@@ -40815,6 +40824,7 @@ public function get($url, $args = array())
4081540824 * @param string|array $args Optional. Override the defaults.
4081640825 * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
4081740826 * A WP_Error instance upon error.
40827+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
4081840828 */
4081940829 public function head($url, $args = array())
4082040830 {
@@ -81891,6 +81901,9 @@ function wp_import_upload_form($action)
8189181901 * @param array $callback_args Optional. Data that should be set as the $args property
8189281902 * of the box array (which is the second parameter passed
8189381903 * to your callback). Default null.
81904+ * @phpstan-param "normal"|"side"|"advanced" $context
81905+ * @phpstan-param "high"|"core"|"default"|"low" $priority
81906+ * @phpstan-return void
8189481907 */
8189581908 function add_meta_box($id, $title, $callback, $screen = \null, $context = 'advanced', $priority = 'default', $callback_args = \null)
8189681909 {
@@ -81970,6 +81983,8 @@ function do_meta_boxes($screen, $context, $object)
8197081983 * include 'normal', 'side', and 'advanced'. Comments screen contexts
8197181984 * include 'normal' and 'side'. Menus meta boxes (accordion sections)
8197281985 * all use the 'side' context.
81986+ * @phpstan-param "normal"|"side"|"advanced" $context
81987+ * @phpstan-return void
8197381988 */
8197481989 function remove_meta_box($id, $screen, $context)
8197581990 {
@@ -104003,6 +104018,7 @@ function _wp_http_get_object()
104003104018 * @param string $url URL to retrieve.
104004104019 * @param array $args Optional. Request arguments. Default empty array.
104005104020 * @return array|WP_Error The response or WP_Error on failure.
104021+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
104006104022 */
104007104023 function wp_safe_remote_request($url, $args = array())
104008104024 {
@@ -104021,6 +104037,7 @@ function wp_safe_remote_request($url, $args = array())
104021104037 * @param string $url URL to retrieve.
104022104038 * @param array $args Optional. Request arguments. Default empty array.
104023104039 * @return array|WP_Error The response or WP_Error on failure.
104040+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
104024104041 */
104025104042 function wp_safe_remote_get($url, $args = array())
104026104043 {
@@ -104039,6 +104056,7 @@ function wp_safe_remote_get($url, $args = array())
104039104056 * @param string $url URL to retrieve.
104040104057 * @param array $args Optional. Request arguments. Default empty array.
104041104058 * @return array|WP_Error The response or WP_Error on failure.
104059+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
104042104060 */
104043104061 function wp_safe_remote_post($url, $args = array())
104044104062 {
@@ -104057,6 +104075,7 @@ function wp_safe_remote_post($url, $args = array())
104057104075 * @param string $url URL to retrieve.
104058104076 * @param array $args Optional. Request arguments. Default empty array.
104059104077 * @return array|WP_Error The response or WP_Error on failure.
104078+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
104060104079 */
104061104080 function wp_safe_remote_head($url, $args = array())
104062104081 {
@@ -104097,6 +104116,7 @@ function wp_safe_remote_head($url, $args = array())
104097104116 * cookies: WP_HTTP_Cookie[],
104098104117 * http_response: WP_HTTP_Requests_Response|null,
104099104118 * }
104119+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
104100104120 */
104101104121 function wp_remote_request($url, $args = array())
104102104122 {
@@ -104112,6 +104132,7 @@ function wp_remote_request($url, $args = array())
104112104132 * @param string $url URL to retrieve.
104113104133 * @param array $args Optional. Request arguments. Default empty array.
104114104134 * @return array|WP_Error The response or WP_Error on failure.
104135+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
104115104136 */
104116104137 function wp_remote_get($url, $args = array())
104117104138 {
@@ -104127,6 +104148,7 @@ function wp_remote_get($url, $args = array())
104127104148 * @param string $url URL to retrieve.
104128104149 * @param array $args Optional. Request arguments. Default empty array.
104129104150 * @return array|WP_Error The response or WP_Error on failure.
104151+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
104130104152 */
104131104153 function wp_remote_post($url, $args = array())
104132104154 {
@@ -104142,6 +104164,7 @@ function wp_remote_post($url, $args = array())
104142104164 * @param string $url URL to retrieve.
104143104165 * @param array $args Optional. Request arguments. Default empty array.
104144104166 * @return array|WP_Error The response or WP_Error on failure.
104167+ * @phpstan-return array{headers: \Requests_Utility_CaseInsensitiveDictionary, body: string, response: array{code: int,message: string}, cookies: array<int, \WP_HTTP_Cookie>, filename: string|null, http_response: \WP_HTTP_Requests_Response}|\WP_Error
104145104168 */
104146104169 function wp_remote_head($url, $args = array())
104147104170 {
0 commit comments