Skip to content

Commit 26a44af

Browse files
committed
Add some list table methods.
1 parent ed1b85e commit 26a44af

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

additionalParams.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
'WP_Http::head' => [$httpReturnType],
1616
'WP_Http::post' => [$httpReturnType],
1717
'WP_Http::request' => [$httpReturnType],
18+
'WP_List_Table::display_tablenav' => ['void', 'which'=>'"top"|"bottom"'],
19+
'WP_List_Table::pagination' => ['void', 'which'=>'"top"|"bottom"'],
1820
];

wordpress-stubs.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4378,6 +4378,8 @@ protected function get_items_per_page($option, $default = 20)
43784378
* @since 3.1.0
43794379
*
43804380
* @param string $which
4381+
* @phpstan-param "top"|"bottom" $which
4382+
* @phpstan-return void
43814383
*/
43824384
protected function pagination($which)
43834385
{
@@ -4494,6 +4496,8 @@ protected function get_table_classes()
44944496
*
44954497
* @since 3.1.0
44964498
* @param string $which
4499+
* @phpstan-param "top"|"bottom" $which
4500+
* @phpstan-return void
44974501
*/
44984502
protected function display_tablenav($which)
44994503
{

0 commit comments

Comments
 (0)