diff --git a/src/Visitor.php b/src/Visitor.php index 1455fcc..4968917 100644 --- a/src/Visitor.php +++ b/src/Visitor.php @@ -9,30 +9,20 @@ use phpDocumentor\Reflection\DocBlock\Tags\Param; use phpDocumentor\Reflection\DocBlock\Tags\Return_; use phpDocumentor\Reflection\DocBlock\Tags\Var_; +use phpDocumentor\Reflection\DocBlockFactoryInterface; +use phpDocumentor\Reflection\DocBlockFactory; use phpDocumentor\Reflection\Type; -use phpDocumentor\Reflection\Types\Never_; -use phpDocumentor\Reflection\Types\Void_; +use phpDocumentor\Reflection\Types\String_; use PhpParser\Comment\Doc; -use PhpParser\ConstExprEvaluator; use PhpParser\Node; -use PhpParser\Node\Expr\Yield_; -use PhpParser\Node\Expr\YieldFrom; use PhpParser\NodeFinder; use PhpParser\Node\Identifier; -use PhpParser\Node\Name; -use PhpParser\Node\Expr\Exit_; -use PhpParser\Node\Expr\FuncCall; -use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt\ClassLike; use PhpParser\Node\Stmt\ClassMethod; -use PhpParser\Node\Stmt\Expression; use PhpParser\Node\Stmt\Function_; use PhpParser\Node\Stmt\Namespace_; use PhpParser\Node\Stmt\Property; -use PhpParser\Node\Stmt\Return_ as Stmt_Return; use StubsGenerator\NodeVisitor; -use phpDocumentor\Reflection\DocBlockFactoryInterface; -use phpDocumentor\Reflection\DocBlockFactory; use function assert; use function sprintf; @@ -58,12 +48,14 @@ class Visitor extends NodeVisitor private array $additionalTagStrings = []; private NodeFinder $nodeFinder; + private VoidOrNeverAnalyzer $voidOrNeverAnalyzer; public function __construct() { $this->docBlockFactory = DocBlockFactory::createInstance(); $this->nodeFinder = new NodeFinder(); $this->functionMap = require sprintf('%s/functionMap.php', dirname(__DIR__)); + $this->voidOrNeverAnalyzer = new VoidOrNeverAnalyzer($this->nodeFinder, $this->docBlockFactory); } /** @@ -71,7 +63,7 @@ public function __construct() */ public function enterNode(Node $node) { - $voidOrNever = $this->voidOrNever($node); + $this->voidOrNeverAnalyzer->setAttribute($node); parent::enterNode($node); @@ -100,16 +92,25 @@ public function enterNode(Node $node) $this->additionalTagStrings[$symbolName] = $additions; } + $voidOrNever = $node->getAttribute(VoidOrNeverAnalyzer::ATTRIBUTE_NAME); + if (! ($voidOrNever instanceof Type)) { return null; } - $addition = sprintf('@phpstan-return %s', $voidOrNever->__toString()); + $hasPhpstanReturnTag = array_filter( + $additions, + static function (string $addition): bool { + return str_contains($addition, '@phpstan-return'); + } + ); - if (in_array($addition, $additions, true)) { + if ($hasPhpstanReturnTag) { return null; } + $addition = sprintf('@phpstan-return %s', $voidOrNever->__toString()); + $this->additionalTagStrings[$symbolName] = [...$additions, $addition]; return null; @@ -620,7 +621,7 @@ private static function getAdditionFromVar(Var_ $tag): ?WordPressTag private static function getTypeNameFromDescription(Description $tagVariableDescription, Type $tagVariableType): ?string { - if (! ($tagVariableType instanceof \phpDocumentor\Reflection\Types\String_)) { + if (! ($tagVariableType instanceof String_)) { return null; } @@ -797,113 +798,6 @@ private static function isOptional(string $description): bool || (stripos($description, 'Defaults to ') !== false); } - private function voidOrNever(Node $node): ?Type - { - $never = new Never_(); - $void = new Void_(); - - if (! ($node instanceof Function_) && ! ($node instanceof ClassMethod)) { - return null; - } - - if (! isset($node->stmts) || count($node->stmts) === 0) { - // Interfaces and abstract methods. - return null; - } - - if ($node->getReturnType() !== null) { - return null; - } - - $yields = $this->nodeFinder->findFirst( - $node, - static function (Node $node): bool { - return $node instanceof Yield_ || $node instanceof YieldFrom; - } - ) instanceof Node; - - if ($yields) { - // Generator functions do not return void or never. - return null; - } - - $returnStmts = $this->nodeFinder->findInstanceOf($node, Stmt_Return::class); - - // If there is a return statement, it's not return type never. - if (count($returnStmts) !== 0) { - // If there is at least one return statement that is not void, - // it's not return type void. - if ( - $this->nodeFinder->findFirst( - $returnStmts, - static function (Node $node): bool { - return property_exists($node, 'expr') && $node->expr !== null; - } - ) instanceof Node - ) { - return null; - } - // If there is no return statement that is not void, - // it's return type void. - return $void; - } - - // Check for never return type. - foreach ($node->stmts as $stmt) { - if (! ($stmt instanceof Expression)) { - continue; - } - // If a first level statement is exit/die, it's return type never. - if ($stmt->expr instanceof Exit_) { - if (! $stmt->expr->expr instanceof String_) { - return $never; - } - if (str_contains($stmt->expr->expr->value, 'must be overridden')) { - return null; - } - return $never; - } - if (! ($stmt->expr instanceof FuncCall) || ! ($stmt->expr->name instanceof Name)) { - continue; - } - $name = strtolower((string)$stmt->expr->name); - // If a first level statement is a call to wp_send_json(_success/error), - // it's return type never. - if (str_starts_with($name, 'wp_send_json')) { - return $never; - } - // Skip all functions but wp_die(). - if (! str_starts_with($name, 'wp_die')) { - continue; - } - $args = $stmt->expr->getArgs(); - // If wp_die is called without 3rd parameter, it's return type never. - if (count($args) < 3) { - return $never; - } - // If wp_die is called with 3rd parameter, we need additional checks. - try { - $arg = (new ConstExprEvaluator())->evaluateSilently($args[2]->value); - } catch (\PhpParser\ConstExprEvaluationException $e) { - // If we don't know the value of the 3rd parameter, we can't be sure. - continue; - } - - if (is_int($arg)) { - return $never; - } - - if (! is_array($arg)) { - continue; - } - - if (! array_key_exists('exit', $arg) || (bool)$arg['exit']) { - return $never; - } - } - return null; - } - private function cleanComments(Node $node): void { if (count($node->getComments()) === 0) { diff --git a/src/VoidOrNeverAnalyzer.php b/src/VoidOrNeverAnalyzer.php new file mode 100644 index 0000000..e0aae06 --- /dev/null +++ b/src/VoidOrNeverAnalyzer.php @@ -0,0 +1,240 @@ +nodeFinder = $nodeFinder; + $this->docBlockFactory = $docBlockFactory; + } + + public function setAttribute(Node $node): void + { + if (! $this->shouldAnalyze($node)) { + return; + } + + $returnStmts = $this->nodeFinder->findInstanceOf($node, Return_::class); + + if (count($returnStmts) !== 0) { + $this->analyzeWithReturns($node, $returnStmts); + return; + } + + // Infer never return type. + $this->analyzeWithoutReturns($node); + + if ($node->hasAttribute(self::ATTRIBUTE_NAME)) { + return; + } + + // No return statements and no inferred never, default to void. + $node->setAttribute(self::ATTRIBUTE_NAME, new Void_()); + } + + /** + * @phpstan-assert-if-true \PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\ClassMethod $node + */ + private function shouldAnalyze(Node $node): bool + { + if (! ($node instanceof Function_) && ! ($node instanceof ClassMethod)) { + return false; + } + + if ( + $node instanceof ClassMethod + && strtolower($node->name->name) === '__construct' + ) { + return false; + } + + if ($node->getReturnType() !== null) { + return false; + } + + if (! isset($node->stmts) || count($node->stmts) === 0) { + // Interfaces and abstract methods. + return false; + } + + $yields = $this->nodeFinder->findFirst( + $node, + static function (Node $node): bool { + return $node instanceof Yield_ || $node instanceof YieldFrom; + } + ) instanceof Node; + + // Generator functions do not return void or never. + if ($yields) { + return false; + } + + if ($node->getDocComment() === null) { + return false; + } + + try { + $docBlock = $this->docBlockFactory->create($node->getDocComment()->getText()); + } catch (\RuntimeException | \InvalidArgumentException $e) { + // Skip if the docblock is invalid. + return false; + } + + // Skip deprecated and pseudo-abstract functions. + if ( + $docBlock->getTagsByName('deprecated') !== [] + || $docBlock->getTagsByName('abstract') !== [] + ) { + return false; + } + + // Skip if there is already a @return or @phpstan-return tag. + return $docBlock->getTagsByName('return') === [] + && $docBlock->getTagsByName('phpstan-return') === []; + } + + /** + * @param \PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\ClassMethod $node + * @param array<\PhpParser\Node\Stmt\Return_> $returnStmts + */ + private function analyzeWithReturns(Node $node, array $returnStmts): void + { + $hasNonVoidReturn = $this->nodeFinder->findFirst( + $returnStmts, + static function (Node $node): bool { + return property_exists($node, 'expr') && $node->expr !== null; + } + ) instanceof Node; + + if ($hasNonVoidReturn) { + return; + } + + $node->setAttribute(self::ATTRIBUTE_NAME, new Void_()); + } + + /** + * @param \PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\ClassMethod $node + */ + private function analyzeWithoutReturns(Node $node): void + { + foreach ((array)$node->stmts as $stmt) { + if (! ($stmt instanceof Expression)) { + continue; + } + + if ( + ! $this->isTopLevelExitOrThrow($stmt) + && ! $this->isTopLevelNeverFunctionCall($stmt) + ) { + continue; + } + + $node->setAttribute(self::ATTRIBUTE_NAME, new Never_()); + return; + } + } + + private function isTopLevelExitOrThrow(Expression $stmt): bool + { + if (! ($stmt->expr instanceof Exit_ || $stmt->expr instanceof Throw_)) { + return false; + } + + if (! ($stmt->expr->expr instanceof String_)) { + return true; + } + + // Skip throw/exit for functions that are meant to be overridden. + return ! $this->isMeantToBeOverridden($stmt->expr->expr); + } + + private function isMeantToBeOverridden(String_ $message): bool + { + $message = strtolower($message->value); + return str_contains($message, 'override') + || str_contains($message, 'overridden'); + } + + private function isTopLevelNeverFunctionCall(Expression $stmt): bool + { + if (! ($stmt->expr instanceof FuncCall) || ! ($stmt->expr->name instanceof Name)) { + return false; + } + + $name = $stmt->expr->name->toLowerString(); + + // A top-level call to wp_send_json(_success/error) implies return type never. + if (str_starts_with($name, 'wp_send_json')) { + return true; + } + + // wp_die() needs additional checks. + if (str_starts_with($name, 'wp_die')) { + return $this->isNeverFromWpDieCall($stmt->expr); + } + + return false; + } + + private function isNeverFromWpDieCall(FuncCall $funcCall): bool + { + $args = $funcCall->getArgs(); + + // If wp_die is called without 3rd parameter, it's return type never. + if (count($args) < 3) { + return true; + } + + // If wp_die is called with 3rd parameter, we need additional checks. + try { + $arg = (new ConstExprEvaluator())->evaluateSilently($args[2]->value); + } catch (\PhpParser\ConstExprEvaluationException $e) { + // If we don't know the value of the 3rd parameter, we can't be sure. + return false; + } + + // Integer argument means it will exit. + if (is_int($arg)) { + return true; + } + + if (! is_array($arg)) { + return false; + } + + // Truthy 'exit' or no 'exit' array key (default: true) means it will exit. + return ! array_key_exists('exit', $arg) || (bool)$arg['exit']; + } +} diff --git a/wordpress-stubs.php b/wordpress-stubs.php index 919ec08..f4ebd31 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -69,6 +69,7 @@ public function __construct($args = array()) * @since 2.8.0 * * @param WP_Upgrader $upgrader + * @phpstan-return void */ public function set_upgrader(&$upgrader) { @@ -87,6 +88,7 @@ public function add_strings() * @since 2.8.0 * * @param string|bool|WP_Error $result The result of an upgrade. + * @phpstan-return void */ public function set_result($result) { @@ -134,6 +136,7 @@ public function footer() * @since 2.8.0 * * @param string|WP_Error $errors Errors. + * @phpstan-return void */ public function error($errors) { @@ -267,6 +270,7 @@ public function feedback($feedback, ...$args) * Creates a new output buffer. * * @since 3.7.0 + * @phpstan-return void */ public function header() { @@ -275,6 +279,7 @@ public function header() * Retrieves the buffered content, deletes the buffer, and processes the output. * * @since 3.7.0 + * @phpstan-return void */ public function footer() { @@ -320,6 +325,7 @@ public function __construct($args = array()) * Sets up the strings used in the update process. * * @since 3.0.0 + * @phpstan-return void */ public function add_strings() { @@ -341,6 +347,7 @@ public function feedback($feedback, ...$args) * Displays the header before the update process. * * @since 3.0.0 + * @phpstan-return void */ public function header() { @@ -349,6 +356,7 @@ public function header() * Displays the footer following the update process. * * @since 3.0.0 + * @phpstan-return void */ public function footer() { @@ -360,6 +368,7 @@ public function footer() * @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support. * * @param string|WP_Error $errors Errors. + * @phpstan-return void */ public function error($errors) { @@ -368,6 +377,7 @@ public function error($errors) * Displays the header before the bulk update process. * * @since 3.0.0 + * @phpstan-return void */ public function bulk_header() { @@ -376,6 +386,7 @@ public function bulk_header() * Displays the footer following the bulk update process. * * @since 3.0.0 + * @phpstan-return void */ public function bulk_footer() { @@ -386,6 +397,7 @@ public function bulk_footer() * @since 3.0.0 * * @param string $title + * @phpstan-return void */ public function before($title = '') { @@ -396,6 +408,7 @@ public function before($title = '') * @since 3.0.0 * * @param string $title + * @phpstan-return void */ public function after($title = '') { @@ -404,6 +417,7 @@ public function after($title = '') * Resets the properties used in the update process. * * @since 3.0.0 + * @phpstan-return void */ public function reset() { @@ -412,6 +426,7 @@ public function reset() * Flushes all output buffers. * * @since 3.0.0 + * @phpstan-return void */ public function flush_output() { @@ -441,6 +456,7 @@ class Bulk_Plugin_Upgrader_Skin extends \Bulk_Upgrader_Skin * Sets up the strings used in the update process. * * @since 3.0.0 + * @phpstan-return void */ public function add_strings() { @@ -451,6 +467,7 @@ public function add_strings() * @since 3.0.0 * * @param string $title + * @phpstan-return void */ public function before($title = '') { @@ -461,6 +478,7 @@ public function before($title = '') * @since 3.0.0 * * @param string $title + * @phpstan-return void */ public function after($title = '') { @@ -469,6 +487,7 @@ public function after($title = '') * Displays the footer following the bulk update process. * * @since 3.0.0 + * @phpstan-return void */ public function bulk_footer() { @@ -499,6 +518,7 @@ class Bulk_Theme_Upgrader_Skin extends \Bulk_Upgrader_Skin * Sets up the strings used in the update process. * * @since 3.0.0 + * @phpstan-return void */ public function add_strings() { @@ -509,6 +529,7 @@ public function add_strings() * @since 3.0.0 * * @param string $title + * @phpstan-return void */ public function before($title = '') { @@ -519,6 +540,7 @@ public function before($title = '') * @since 3.0.0 * * @param string $title + * @phpstan-return void */ public function after($title = '') { @@ -527,6 +549,7 @@ public function after($title = '') * Displays the footer following the bulk update process. * * @since 3.0.0 + * @phpstan-return void */ public function bulk_footer() { @@ -627,6 +650,7 @@ public function __construct($skin = \null) * * @since 2.8.0 * @since 6.3.0 Added the `schedule_temp_backup_cleanup()` task. + * @phpstan-return void */ public function init() { @@ -635,6 +659,7 @@ public function init() * Schedules the cleanup of the temporary backup directory. * * @since 6.3.0 + * @phpstan-return void */ protected function schedule_temp_backup_cleanup() { @@ -643,6 +668,7 @@ protected function schedule_temp_backup_cleanup() * Adds the generic strings to WP_Upgrader::$strings. * * @since 2.8.0 + * @phpstan-return void */ public function generic_strings() { @@ -955,6 +981,7 @@ class Core_Upgrader extends \WP_Upgrader * Initializes the upgrade strings. * * @since 2.8.0 + * @phpstan-return void */ public function upgrade_strings() { @@ -1065,6 +1092,7 @@ public function init() * Sets up the enqueue for the CSS & JavaScript files. * * @since 3.0.0 + * @phpstan-return void */ public function admin_load() { @@ -1082,6 +1110,7 @@ public function take_action() * Displays the custom background page. * * @since 3.0.0 + * @phpstan-return void */ public function admin_page() { @@ -1130,7 +1159,6 @@ public function filter_upload_tabs($tabs) /** * @since 3.4.0 * @deprecated 3.5.0 - * @phpstan-return never */ public function wp_set_background_image() { @@ -1193,6 +1221,7 @@ public function init() * Adds contextual help. * * @since 3.0.0 + * @phpstan-return void */ public function help() { @@ -1211,6 +1240,7 @@ public function step() * Sets up the enqueue for the JavaScript files. * * @since 2.1.0 + * @phpstan-return void */ public function js_includes() { @@ -1219,6 +1249,7 @@ public function js_includes() * Sets up the enqueue for the CSS files. * * @since 2.7.0 + * @phpstan-return void */ public function css_includes() { @@ -1254,6 +1285,7 @@ public function process_default_headers() * @param string $type The header type. One of 'default' (for the Uploaded Images control) * or 'uploaded' (for the Uploaded Images control). * @phpstan-param 'default'|'uploaded' $type + * @phpstan-return void */ public function show_header_selector($type = 'default') { @@ -1262,6 +1294,7 @@ public function show_header_selector($type = 'default') * Executes JavaScript depending on step. * * @since 2.1.0 + * @phpstan-return void */ public function js() { @@ -1270,6 +1303,7 @@ public function js() * Displays JavaScript based on Step 1 and 3. * * @since 2.6.0 + * @phpstan-return void */ public function js_1() { @@ -1278,6 +1312,7 @@ public function js_1() * Displays JavaScript based on Step 2. * * @since 2.6.0 + * @phpstan-return void */ public function js_2() { @@ -1286,6 +1321,7 @@ public function js_2() * Displays first step of custom header image page. * * @since 2.1.0 + * @phpstan-return void */ public function step_1() { @@ -1320,6 +1356,7 @@ public function step_3() * Displays last step of custom header image page. * * @since 2.1.0 + * @phpstan-return void */ public function finished() { @@ -1328,6 +1365,7 @@ public function finished() * Displays the page based on the current step. * * @since 2.1.0 + * @phpstan-return void */ public function admin_page() { @@ -1376,6 +1414,7 @@ final public function set_header_image($choice) * Removes a header image. * * @since 3.4.0 + * @phpstan-return void */ final public function remove_header_image() { @@ -1877,6 +1916,7 @@ public function __construct($args = array()) * Performs an action before a language pack update. * * @since 3.7.0 + * @phpstan-return void */ public function before() { @@ -1888,6 +1928,7 @@ public function before() * @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support. * * @param string|WP_Error $errors Errors. + * @phpstan-return void */ public function error($errors) { @@ -1896,6 +1937,7 @@ public function error($errors) * Performs an action following a language pack update. * * @since 3.7.0 + * @phpstan-return void */ public function after() { @@ -1904,6 +1946,7 @@ public function after() * Displays the footer following the bulk update process. * * @since 3.7.0 + * @phpstan-return void */ public function bulk_footer() { @@ -1954,6 +1997,7 @@ public static function async_upgrade($upgrader = \false) * Initializes the upgrade strings. * * @since 3.7.0 + * @phpstan-return void */ public function upgrade_strings() { @@ -2232,6 +2276,7 @@ public function __construct($args = array()) * Performs an action before installing a plugin. * * @since 2.8.0 + * @phpstan-return void */ public function before() { @@ -2308,6 +2353,7 @@ public function __construct($args = array()) * Performs an action following a single plugin update. * * @since 2.8.0 + * @phpstan-return void */ public function after() { @@ -2355,6 +2401,7 @@ class Plugin_Upgrader extends \WP_Upgrader * Initializes the upgrade strings. * * @since 2.8.0 + * @phpstan-return void */ public function upgrade_strings() { @@ -2363,6 +2410,7 @@ public function upgrade_strings() * Initializes the installation strings. * * @since 2.8.0 + * @phpstan-return void */ public function install_strings() { @@ -2550,6 +2598,7 @@ public function __construct($args = array()) * Performs an action before installing a theme. * * @since 2.8.0 + * @phpstan-return void */ public function before() { @@ -2610,6 +2659,7 @@ public function __construct($args = array()) * Performs an action following a single theme update. * * @since 2.8.0 + * @phpstan-return void */ public function after() { @@ -2656,6 +2706,7 @@ class Theme_Upgrader extends \WP_Upgrader * Initializes the upgrade strings. * * @since 2.8.0 + * @phpstan-return void */ public function upgrade_strings() { @@ -2664,6 +2715,7 @@ public function upgrade_strings() * Initializes the installation strings. * * @since 2.8.0 + * @phpstan-return void */ public function install_strings() { @@ -3078,6 +3130,7 @@ class Walker_Category_Checklist extends \Walker * checked_ontop?: bool, * echo?: bool, * } $args See wp_terms_checklist() + * @phpstan-return void */ public function start_lvl(&$output, $depth = 0, $args = array()) { @@ -3101,6 +3154,7 @@ public function start_lvl(&$output, $depth = 0, $args = array()) * checked_ontop?: bool, * echo?: bool, * } $args See wp_terms_checklist() + * @phpstan-return void */ public function end_lvl(&$output, $depth = 0, $args = array()) { @@ -3128,6 +3182,7 @@ public function end_lvl(&$output, $depth = 0, $args = array()) * checked_ontop?: bool, * echo?: bool, * } $args See wp_terms_checklist() + * @phpstan-return void */ public function start_el(&$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0) { @@ -3153,6 +3208,7 @@ public function start_el(&$output, $data_object, $depth = 0, $args = array(), $c * checked_ontop?: bool, * echo?: bool, * } $args See wp_terms_checklist() + * @phpstan-return void */ public function end_el(&$output, $data_object, $depth = 0, $args = array()) { @@ -3204,6 +3260,7 @@ public function __construct() * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args An object of wp_nav_menu() arguments. + * @phpstan-return void */ public function start_lvl(&$output, $depth = 0, $args = \null) { @@ -3218,6 +3275,7 @@ public function start_lvl(&$output, $depth = 0, $args = \null) * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args An object of wp_nav_menu() arguments. + * @phpstan-return void */ public function end_lvl(&$output, $depth = 0, $args = \null) { @@ -3238,6 +3296,7 @@ public function end_lvl(&$output, $depth = 0, $args = \null) * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $current_object_id Optional. ID of the current menu item. Default 0. + * @phpstan-return void */ public function start_el(&$output, $data_object, $depth = 0, $args = \null, $current_object_id = 0) { @@ -3254,6 +3313,7 @@ public function start_el(&$output, $data_object, $depth = 0, $args = \null, $cur * @param WP_Post $data_object Menu item data object. Not used. * @param int $depth Depth of page. Not Used. * @param stdClass $args An object of wp_nav_menu() arguments. + * @phpstan-return void */ public function end_el(&$output, $data_object, $depth = 0, $args = \null) { @@ -3295,6 +3355,7 @@ public function __construct($fields = \false) * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of page. Used for padding. * @param stdClass $args Not used. + * @phpstan-return void */ public function start_lvl(&$output, $depth = 0, $args = \null) { @@ -3309,6 +3370,7 @@ public function start_lvl(&$output, $depth = 0, $args = \null) * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of page. Used for padding. * @param stdClass $args Not used. + * @phpstan-return void */ public function end_lvl(&$output, $depth = 0, $args = \null) { @@ -3330,6 +3392,7 @@ public function end_lvl(&$output, $depth = 0, $args = \null) * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args Not used. * @param int $current_object_id Optional. ID of the current menu item. Default 0. + * @phpstan-return void */ public function start_el(&$output, $data_object, $depth = 0, $args = \null, $current_object_id = 0) { @@ -3387,6 +3450,7 @@ public function end_lvl(&$output, $depth = 0, $args = \null) * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args Not used. * @param int $current_object_id Optional. ID of the current menu item. Default 0. + * @phpstan-return void */ public function start_el(&$output, $data_object, $depth = 0, $args = \null, $current_object_id = 0) { @@ -3475,6 +3539,7 @@ public function get_error_messages() * * @param string|WP_Error $errors Errors. * @param mixed ...$args Optional text replacements. + * @phpstan-return void */ public function error($errors, ...$args) { @@ -3489,6 +3554,7 @@ public function error($errors, ...$args) * * @param string|array|WP_Error $feedback Message data. * @param mixed ...$args Optional text replacements. + * @phpstan-return void */ public function feedback($feedback, ...$args) { @@ -3709,6 +3775,7 @@ public function has_items() * Message to be displayed when there are no items * * @since 3.1.0 + * @phpstan-return void */ public function no_items() { @@ -3854,6 +3921,7 @@ protected function months_dropdown($post_type) * @since 3.1.0 * * @param string $current_mode + * @phpstan-return void */ protected function view_switcher($current_mode) { @@ -3997,6 +4065,7 @@ public function get_column_count() * @since 3.1.0 * * @param bool $with_id Whether to set the ID attribute or not + * @phpstan-return void */ public function print_column_headers($with_id = \true) { @@ -4017,6 +4086,7 @@ public function print_table_description() * Displays the table. * * @since 3.1.0 + * @phpstan-return void */ public function display() { @@ -4056,6 +4126,7 @@ protected function extra_tablenav($which) * Generates the tbody element for the list table. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows_or_placeholder() { @@ -4064,6 +4135,7 @@ public function display_rows_or_placeholder() * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -4074,6 +4146,7 @@ public function display_rows() * @since 3.1.0 * * @param object|array $item The current item + * @phpstan-return void */ public function single_row($item) { @@ -4097,6 +4170,7 @@ protected function column_cb($item) * @since 3.1.0 * * @param object|array $item The current item. + * @phpstan-return void */ protected function single_row_columns($item) { @@ -4128,6 +4202,7 @@ public function ajax_response() * Sends required variables to JavaScript land. * * @since 3.1.0 + * @phpstan-return void */ public function _js_vars() { @@ -4158,6 +4233,7 @@ public function get_columns() * @since 5.6.0 * * @global int $user_id User ID. + * @phpstan-return void */ public function prepare_items() { @@ -4168,6 +4244,7 @@ public function prepare_items() * @since 5.6.0 * * @param array $item The current application password item. + * @phpstan-return void */ public function column_name($item) { @@ -4178,6 +4255,7 @@ public function column_name($item) * @since 5.6.0 * * @param array $item The current application password item. + * @phpstan-return void */ public function column_created($item) { @@ -4188,6 +4266,7 @@ public function column_created($item) * @since 5.6.0 * * @param array $item The current application password item. + * @phpstan-return void */ public function column_last_used($item) { @@ -4198,6 +4277,7 @@ public function column_last_used($item) * @since 5.6.0 * * @param array $item The current application password item. + * @phpstan-return void */ public function column_last_ip($item) { @@ -4208,6 +4288,7 @@ public function column_last_ip($item) * @since 5.6.0 * * @param array $item The current application password item. + * @phpstan-return void */ public function column_revoke($item) { @@ -4219,6 +4300,7 @@ public function column_revoke($item) * * @param array $item The current item. * @param string $column_name The current column name. + * @phpstan-return void */ protected function column_default($item, $column_name) { @@ -4230,6 +4312,7 @@ protected function column_default($item, $column_name) * * @param string $which The location of the bulk actions: Either 'top' or 'bottom'. * @phpstan-param 'top'|'bottom' $which + * @phpstan-return void */ protected function display_tablenav($which) { @@ -4240,6 +4323,7 @@ protected function display_tablenav($which) * @since 5.6.0 * * @param array $item The current item. + * @phpstan-return void */ public function single_row($item) { @@ -4258,6 +4342,7 @@ protected function get_default_primary_column_name() * Prints the JavaScript template for the new row item. * * @since 5.6.0 + * @phpstan-return void */ public function print_js_template_row() { @@ -4427,6 +4512,7 @@ protected function send_plugin_theme_email($type, $successful_updates, $failed_u * Prepares and sends an email of a full log of background update results, useful for debugging and geekery. * * @since 3.7.0 + * @phpstan-return void */ protected function send_debug_email() { @@ -4496,6 +4582,7 @@ public function ajax_user_can() * @global string $comment_status * @global string $comment_type * @global string $search + * @phpstan-return void */ public function prepare_items() { @@ -4509,6 +4596,7 @@ public function get_per_page($comment_status = 'all') } /** * @global string $comment_status + * @phpstan-return void */ public function no_items() { @@ -4534,6 +4622,7 @@ protected function get_bulk_actions() * @global string $comment_type * * @param string $which + * @phpstan-return void */ protected function extra_tablenav($which) { @@ -4559,6 +4648,7 @@ public function get_columns() * @since 5.6.0 Renamed from `comment_status_dropdown()` to `comment_type_dropdown()`. * * @param string $comment_type The current comment type slug. + * @phpstan-return void */ protected function comment_type_dropdown($comment_type) { @@ -4585,6 +4675,7 @@ protected function get_default_primary_column_name() * Overrides the parent display() method to render extra comments. * * @since 3.1.0 + * @phpstan-return void */ public function display() { @@ -4620,12 +4711,14 @@ protected function handle_row_actions($item, $column_name, $primary) * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Comment $item The comment object. + * @phpstan-return void */ public function column_cb($item) { } /** * @param WP_Comment $comment The comment object. + * @phpstan-return void */ public function column_comment($comment) { @@ -4634,12 +4727,14 @@ public function column_comment($comment) * @global string $comment_status * * @param WP_Comment $comment The comment object. + * @phpstan-return void */ public function column_author($comment) { } /** * @param WP_Comment $comment The comment object. + * @phpstan-return void */ public function column_date($comment) { @@ -4656,6 +4751,7 @@ public function column_response($comment) * * @param WP_Comment $item The comment object. * @param string $column_name The custom column's name. + * @phpstan-return void */ public function column_default($item, $column_name) { @@ -4888,7 +4984,6 @@ protected function trim_events(array $events) * @param string $message A description of what occurred. * @param array $details Details that provide more context for the * log entry. - * @phpstan-return void */ protected function maybe_log_events_response($message, $details) { @@ -4908,6 +5003,7 @@ class WP_Debug_Data * Calls all core functions to check for updates. * * @since 5.2.0 + * @phpstan-return void */ public static function check_for_updates() { @@ -5994,7 +6090,6 @@ class WP_Filesystem_FTPext extends \WP_Filesystem_Base * @since 2.5.0 * * @param array $opt - * @phpstan-return void */ public function __construct($opt = '') { @@ -6400,6 +6495,7 @@ public function dirlist($path = '.', $include_hidden = \true, $recursive = \fals * Destructor. * * @since 2.5.0 + * @phpstan-return void */ public function __destruct() { @@ -6425,7 +6521,6 @@ class WP_Filesystem_ftpsockets extends \WP_Filesystem_Base * @since 2.5.0 * * @param array $opt - * @phpstan-return void */ public function __construct($opt = '') { @@ -6791,6 +6886,7 @@ public function dirlist($path = '.', $include_hidden = \true, $recursive = \fals * Destructor. * * @since 2.5.0 + * @phpstan-return void */ public function __destruct() { @@ -6853,7 +6949,6 @@ class WP_Filesystem_SSH2 extends \WP_Filesystem_Base * @since 2.7.0 * * @param array $opt - * @phpstan-return void */ public function __construct($opt = '') { @@ -7181,6 +7276,7 @@ public function size($file) * Default 0. * @param int $atime Optional. Access time to set for file. * Default 0. + * @phpstan-return void */ public function touch($file, $time = 0, $atime = 0) { @@ -7391,6 +7487,7 @@ public function min_whitespace($text) * * @global wpdb $wpdb WordPress database abstraction object. * @global int[] $wp_actions + * @phpstan-return void */ public function stop_the_insanity() { @@ -7467,6 +7564,7 @@ public static function pointer_wp496_privacy() * @since 3.3.0 * * @param int $user_id User ID. + * @phpstan-return void */ public static function dismiss_pointers_for_new_users($user_id) { @@ -7504,11 +7602,13 @@ public function ajax_user_can() * @global string $s * @global string $orderby * @global string $order + * @phpstan-return void */ public function prepare_items() { } /** + * @phpstan-return void */ public function no_items() { @@ -7556,6 +7656,7 @@ protected function get_default_primary_column_name() * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named parameter support. * * @param object $item The current link object. + * @phpstan-return void */ public function column_cb($item) { @@ -7566,6 +7667,7 @@ public function column_cb($item) * @since 4.3.0 * * @param object $link The current link object. + * @phpstan-return void */ public function column_name($link) { @@ -7576,6 +7678,7 @@ public function column_name($link) * @since 4.3.0 * * @param object $link The current link object. + * @phpstan-return void */ public function column_url($link) { @@ -7588,6 +7691,7 @@ public function column_url($link) * @global int $cat_id * * @param object $link The current link object. + * @phpstan-return void */ public function column_categories($link) { @@ -7598,6 +7702,7 @@ public function column_categories($link) * @since 4.3.0 * * @param object $link The current link object. + * @phpstan-return void */ public function column_rel($link) { @@ -7608,6 +7713,7 @@ public function column_rel($link) * @since 4.3.0 * * @param object $link The current link object. + * @phpstan-return void */ public function column_visible($link) { @@ -7618,6 +7724,7 @@ public function column_visible($link) * @since 4.3.0 * * @param object $link The current link object. + * @phpstan-return void */ public function column_rating($link) { @@ -7630,6 +7737,7 @@ public function column_rating($link) * * @param object $item Link object. * @param string $column_name Current column name. + * @phpstan-return void */ public function column_default($item, $column_name) { @@ -7638,6 +7746,7 @@ public function column_default($item, $column_name) * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -7739,6 +7848,7 @@ public function ajax_user_can() * @global WP_Query $wp_query WordPress Query object. * @global array $post_mime_types * @global array $avail_post_mime_types + * @phpstan-return void */ public function prepare_items() { @@ -7777,6 +7887,7 @@ public function has_items() { } /** + * @phpstan-return void */ public function no_items() { @@ -7785,6 +7896,7 @@ public function no_items() * Overrides parent views to use the filter bar display. * * @global string $mode List table view mode. + * @phpstan-return void */ public function views() { @@ -7808,6 +7920,7 @@ protected function get_sortable_columns() * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Post $item The current WP_Post object. + * @phpstan-return void */ public function column_cb($item) { @@ -7818,6 +7931,7 @@ public function column_cb($item) * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_title($post) { @@ -7829,6 +7943,7 @@ public function column_title($post) * @since 6.8.0 Added fallback text when author's name is unknown. * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_author($post) { @@ -7850,6 +7965,7 @@ public function column_desc($post) * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_date($post) { @@ -7860,6 +7976,7 @@ public function column_date($post) * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_parent($post) { @@ -7870,6 +7987,7 @@ public function column_parent($post) * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_comments($post) { @@ -7894,6 +8012,7 @@ public function column_default($item, $column_name) * * @global WP_Post $post Global post object. * @global WP_Query $wp_query WordPress Query object. + * @phpstan-return void */ public function display_rows() { @@ -7966,11 +8085,13 @@ public function ajax_user_can() * @global string $mode List table view mode. * @global string $s * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ public function prepare_items() { } /** + * @phpstan-return void */ public function no_items() { @@ -7996,6 +8117,7 @@ protected function get_bulk_actions() * * @param string $which The location of the pagination nav markup: Either 'top' or 'bottom'. * @phpstan-param 'top'|'bottom' $which + * @phpstan-return void */ protected function pagination($which) { @@ -8007,6 +8129,7 @@ protected function pagination($which) * * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. * @phpstan-param 'top'|'bottom' $which + * @phpstan-return void */ protected function extra_tablenav($which) { @@ -8030,6 +8153,7 @@ protected function get_sortable_columns() * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support. * * @param array $item Current site. + * @phpstan-return void */ public function column_cb($item) { @@ -8040,6 +8164,7 @@ public function column_cb($item) * @since 4.4.0 * * @param array $blog Current site. + * @phpstan-return void */ public function column_id($blog) { @@ -8052,6 +8177,7 @@ public function column_id($blog) * @global string $mode List table view mode. * * @param array $blog Current site. + * @phpstan-return void */ public function column_blogname($blog) { @@ -8064,6 +8190,7 @@ public function column_blogname($blog) * @global string $mode List table view mode. * * @param array $blog Current site. + * @phpstan-return void */ public function column_lastupdated($blog) { @@ -8076,6 +8203,7 @@ public function column_lastupdated($blog) * @global string $mode List table view mode. * * @param array $blog Current site. + * @phpstan-return void */ public function column_registered($blog) { @@ -8086,6 +8214,7 @@ public function column_registered($blog) * @since 4.3.0 * * @param array $blog Current site. + * @phpstan-return void */ public function column_users($blog) { @@ -8096,6 +8225,7 @@ public function column_users($blog) * @since 4.3.0 * * @param array $blog Current site. + * @phpstan-return void */ public function column_plugins($blog) { @@ -8108,6 +8238,7 @@ public function column_plugins($blog) * * @param array $item Current site. * @param string $column_name Current column name. + * @phpstan-return void */ public function column_default($item, $column_name) { @@ -8116,6 +8247,7 @@ public function column_default($item, $column_name) * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -8126,6 +8258,7 @@ public function display_rows() * @since 5.3.0 * * @param array $site + * @phpstan-return void */ protected function site_states($site) { @@ -8209,6 +8342,7 @@ public function ajax_user_can() * @global string $orderby * @global string $order * @global string $s + * @phpstan-return void */ public function prepare_items() { @@ -8231,6 +8365,7 @@ public function _order_callback($theme_a, $theme_b) { } /** + * @phpstan-return void */ public function no_items() { @@ -8277,6 +8412,7 @@ protected function get_bulk_actions() * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -8288,6 +8424,7 @@ public function display_rows() * @since 5.9.0 Renamed `$theme` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Theme $item The current WP_Theme object. + * @phpstan-return void */ public function column_cb($item) { @@ -8302,6 +8439,7 @@ public function column_cb($item) * @global string $s * * @param WP_Theme $theme The current WP_Theme object. + * @phpstan-return void */ public function column_name($theme) { @@ -8315,6 +8453,7 @@ public function column_name($theme) * @global array $totals * * @param WP_Theme $theme The current WP_Theme object. + * @phpstan-return void */ public function column_description($theme) { @@ -8328,6 +8467,7 @@ public function column_description($theme) * @global int $page * * @param WP_Theme $theme The current WP_Theme object. + * @phpstan-return void */ public function column_autoupdates($theme) { @@ -8340,6 +8480,7 @@ public function column_autoupdates($theme) * * @param WP_Theme $item The current WP_Theme object. * @param string $column_name The current column name. + * @phpstan-return void */ public function column_default($item, $column_name) { @@ -8350,6 +8491,7 @@ public function column_default($item, $column_name) * @since 4.3.0 * * @param WP_Theme $item The current WP_Theme object. + * @phpstan-return void */ public function single_row_columns($item) { @@ -8359,6 +8501,7 @@ public function single_row_columns($item) * @global array $totals * * @param WP_Theme $theme + * @phpstan-return void */ public function single_row($theme) { @@ -8383,6 +8526,7 @@ public function ajax_user_can() * @global string $mode List table view mode. * @global string $usersearch * @global string $role + * @phpstan-return void */ public function prepare_items() { @@ -8394,6 +8538,7 @@ protected function get_bulk_actions() { } /** + * @phpstan-return void */ public function no_items() { @@ -8409,6 +8554,7 @@ protected function get_views() * @global string $mode List table view mode. * * @param string $which + * @phpstan-return void */ protected function pagination($which) { @@ -8443,6 +8589,7 @@ public function column_cb($item) * @since 4.4.0 * * @param WP_User $user The current WP_User object. + * @phpstan-return void */ public function column_id($user) { @@ -8453,6 +8600,7 @@ public function column_id($user) * @since 4.3.0 * * @param WP_User $user The current WP_User object. + * @phpstan-return void */ public function column_username($user) { @@ -8463,6 +8611,7 @@ public function column_username($user) * @since 4.3.0 * * @param WP_User $user The current WP_User object. + * @phpstan-return void */ public function column_name($user) { @@ -8473,6 +8622,7 @@ public function column_name($user) * @since 4.3.0 * * @param WP_User $user The current WP_User object. + * @phpstan-return void */ public function column_email($user) { @@ -8485,6 +8635,7 @@ public function column_email($user) * @global string $mode List table view mode. * * @param WP_User $user The current WP_User object. + * @phpstan-return void */ public function column_registered($user) { @@ -8496,6 +8647,7 @@ public function column_registered($user) * @param string $classes * @param string $data * @param string $primary + * @phpstan-return void */ protected function _column_blogs($user, $classes, $data, $primary) { @@ -8519,6 +8671,7 @@ public function column_blogs($user) * * @param WP_User $item The current WP_User object. * @param string $column_name The current column name. + * @phpstan-return void */ public function column_default($item, $column_name) { @@ -8527,6 +8680,7 @@ public function column_default($item, $column_name) * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -8614,6 +8768,7 @@ public function prepare_items() { } /** + * @phpstan-return void */ public function no_items() { @@ -8629,6 +8784,7 @@ protected function get_views() } /** * Overrides parent views so we can use the filter bar display. + * @phpstan-return void */ public function views() { @@ -8639,6 +8795,7 @@ public function views() * Overrides the parent display() method to provide a different container. * * @since 4.0.0 + * @phpstan-return void */ public function display() { @@ -8668,6 +8825,7 @@ public function get_columns() * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -8788,6 +8946,7 @@ public function ajax_user_can() * @global string $orderby * @global string $order * @global string $s + * @phpstan-return void */ public function prepare_items() { @@ -8813,6 +8972,7 @@ public function _order_callback($plugin_a, $plugin_b) } /** * @global array $plugins + * @phpstan-return void */ public function no_items() { @@ -8898,6 +9058,7 @@ public function display_rows() * @global array $totals * * @param array $item + * @phpstan-return void */ public function single_row($item) { @@ -8982,6 +9143,7 @@ protected function get_table_classes() } /** * @param bool $output_empty + * @phpstan-return void */ public function display($output_empty = \false) { @@ -9045,6 +9207,7 @@ public function __construct($args = array()) * @since 4.2.0 * * @param bool $display Whether the table layout should be hierarchical. + * @phpstan-return void */ public function set_hierarchical_display($display) { @@ -9060,6 +9223,7 @@ public function ajax_user_can() * @global array $avail_post_stati * @global WP_Query $wp_query WordPress Query object. * @global int $per_page + * @phpstan-return void */ public function prepare_items() { @@ -9071,6 +9235,7 @@ public function has_items() { } /** + * @phpstan-return void */ public function no_items() { @@ -9138,6 +9303,7 @@ protected function formats_dropdown($post_type) } /** * @param string $which + * @phpstan-return void */ protected function extra_tablenav($which) { @@ -9178,6 +9344,7 @@ protected function get_sortable_columns() * * @param array $posts * @param int $level + * @phpstan-return void */ public function display_rows($posts = array(), $level = 0) { @@ -9189,6 +9356,7 @@ public function display_rows($posts = array(), $level = 0) * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Post $item The current WP_Post object. + * @phpstan-return void */ public function column_cb($item) { @@ -9200,6 +9368,7 @@ public function column_cb($item) * @param string $classes * @param string $data * @param string $primary + * @phpstan-return void */ protected function _column_title($post, $classes, $data, $primary) { @@ -9212,6 +9381,7 @@ protected function _column_title($post, $classes, $data, $primary) * @global string $mode List table view mode. * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_title($post) { @@ -9224,6 +9394,7 @@ public function column_title($post) * @global string $mode List table view mode. * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_date($post) { @@ -9234,6 +9405,7 @@ public function column_date($post) * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_comments($post) { @@ -9245,6 +9417,7 @@ public function column_comments($post) * @since 6.8.0 Added fallback text when author's name is unknown. * * @param WP_Post $post The current WP_Post object. + * @phpstan-return void */ public function column_author($post) { @@ -9267,6 +9440,7 @@ public function column_default($item, $column_name) * * @param int|WP_Post $post * @param int $level + * @phpstan-return void */ public function single_row($post, $level = 0) { @@ -9302,6 +9476,7 @@ protected function handle_row_actions($item, $column_name, $primary) * @since 3.1.0 * * @global string $mode List table view mode. + * @phpstan-return void */ public function inline_edit() { @@ -9422,6 +9597,7 @@ public function process_bulk_action() * * @since 4.9.6 * @since 5.1.0 Added support for column sorting. + * @phpstan-return void */ public function prepare_items() { @@ -9468,6 +9644,7 @@ protected function get_timestamp_as_date($timestamp) * * @param WP_User_Request $item Item being shown. * @param string $column_name Name of column being shown. + * @phpstan-return void */ public function column_default($item, $column_name) { @@ -9510,6 +9687,7 @@ public function column_next_steps($item) * @since 4.9.6 * * @param WP_User_Request $item The current item. + * @phpstan-return void */ public function single_row($item) { @@ -9563,6 +9741,7 @@ public function column_email($item) * @since 4.9.6 * * @param WP_User_Request $item Item being shown. + * @phpstan-return void */ public function column_next_steps($item) { @@ -9608,6 +9787,7 @@ public function column_email($item) * @since 4.9.6 * * @param WP_User_Request $item Item being shown. + * @phpstan-return void */ public function column_next_steps($item) { @@ -9700,6 +9880,7 @@ public static function notice($post = \null) * Outputs the privacy policy guide together with content from the theme and plugins. * * @since 4.9.6 + * @phpstan-return void */ public static function privacy_policy_guide() { @@ -9721,6 +9902,7 @@ public static function get_default_content($description = \false, $blocks = \tru * Adds the suggested privacy policy text to the policy postbox. * * @since 4.9.6 + * @phpstan-return void */ public static function add_suggested_content() { @@ -9849,6 +10031,7 @@ public static function get($hook_name = '') * @global WP_Screen $current_screen WordPress current screen object. * @global string $typenow The post type of the current screen. * @global string $taxnow The taxonomy of the current screen. + * @phpstan-return void */ public function set_current_screen() { @@ -9883,6 +10066,7 @@ public function is_block_editor($set = \null) * * @param WP_Screen $screen A screen object. * @param string $help Help text. + * @phpstan-return void */ public static function add_old_compat_help($screen, $help) { @@ -9895,6 +10079,7 @@ public static function add_old_compat_help($screen, $help) * @since 3.3.0 * * @param string $parent_file The parent file of the screen. Typically the $parent_file global. + * @phpstan-return void */ public function set_parentage($parent_file) { @@ -9909,6 +10094,7 @@ public function set_parentage($parent_file) * * @param string $option Option ID. * @param mixed $args Option-dependent arguments. + * @phpstan-return void */ public function add_option($option, $args = array()) { @@ -9919,6 +10105,7 @@ public function add_option($option, $args = array()) * @since 3.8.0 * * @param string $option Option ID. + * @phpstan-return void */ public function remove_option($option) { @@ -9927,6 +10114,7 @@ public function remove_option($option) * Removes all options from the screen. * * @since 3.8.0 + * @phpstan-return void */ public function remove_options() { @@ -10017,6 +10205,7 @@ public function add_help_tab($args) * @since 3.3.0 * * @param string $id The help tab ID. + * @phpstan-return void */ public function remove_help_tab($id) { @@ -10025,6 +10214,7 @@ public function remove_help_tab($id) * Removes all help tabs from the contextual help for the screen. * * @since 3.3.0 + * @phpstan-return void */ public function remove_help_tabs() { @@ -10048,6 +10238,7 @@ public function get_help_sidebar() * @since 3.3.0 * * @param string $content Sidebar content in plain text or HTML. + * @phpstan-return void */ public function set_help_sidebar($content) { @@ -10111,6 +10302,7 @@ public function get_screen_reader_text($key) * heading_pagination?: string, * heading_list?: string, * } $content + * @phpstan-return void */ public function set_screen_reader_content($content = array()) { @@ -10119,6 +10311,7 @@ public function set_screen_reader_content($content = array()) * Removes all the accessible hidden headings and text for the screen. * * @since 4.4.0 + * @phpstan-return void */ public function remove_screen_reader_content() { @@ -10159,6 +10352,7 @@ public function show_screen_options() * @phpstan-param array{ * wrap?: bool, * } $options + * @phpstan-return void */ public function render_screen_options($options = array()) { @@ -10397,6 +10591,7 @@ public function __construct() * @since 5.8.0 * * @param string $tab Slug of the current tab being displayed. + * @phpstan-return void */ public function show_site_health_tab($tab) { @@ -10837,6 +11032,7 @@ public function can_perform_loopback() * Creates a weekly cron event, if one does not already exist. * * @since 5.4.0 + * @phpstan-return void */ public function maybe_create_scheduled_event() { @@ -10845,6 +11041,7 @@ public function maybe_create_scheduled_event() * Runs the scheduled event to check and update the latest site health status for the website. * * @since 5.4.0 + * @phpstan-return void */ public function wp_cron_scheduled_check() { @@ -10997,6 +11194,7 @@ public function intermediate_image_sizes($sizes = array()) * @since 4.3.0 * * @param int $post_id Attachment ID. + * @phpstan-return void */ public function delete_attachment_data($post_id) { @@ -11051,11 +11249,13 @@ public function ajax_user_can() { } /** + * @phpstan-return void */ public function prepare_items() { } /** + * @phpstan-return void */ public function no_items() { @@ -11095,6 +11295,7 @@ public function display_rows_or_placeholder() * * @param WP_Term $tag Term object. * @param int $level + * @phpstan-return void */ public function single_row($tag, $level = 0) { @@ -11218,6 +11419,7 @@ public function ajax_user_can() { } /** + * @phpstan-return void */ public function prepare_items() { @@ -11241,6 +11443,7 @@ public function tablenav($which = 'top') * Overrides the parent display() method to provide a different container. * * @since 3.1.0 + * @phpstan-return void */ public function display() { @@ -11252,6 +11455,7 @@ public function get_columns() { } /** + * @phpstan-return void */ public function display_rows_or_placeholder() { @@ -11260,6 +11464,7 @@ public function display_rows_or_placeholder() * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -11277,6 +11482,7 @@ public function search_theme($theme) * @since 3.4.0 * * @param array $extra_args + * @phpstan-return void */ public function _js_vars($extra_args = array()) { @@ -11310,6 +11516,7 @@ public function prepare_items() { } /** + * @phpstan-return void */ public function no_items() { @@ -11328,6 +11535,7 @@ protected function get_views() * Overrides the parent display() method to provide a different container. * * @since 3.1.0 + * @phpstan-return void */ public function display() { @@ -11336,6 +11544,7 @@ public function display() * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -11382,6 +11591,7 @@ public function single_row($theme) } /** * Prints the wrapper for the theme installer. + * @phpstan-return void */ public function theme_installer() { @@ -11391,6 +11601,7 @@ public function theme_installer() * Used to make the theme installer work for no-js. * * @param stdClass $theme A WordPress.org Theme API object. + * @phpstan-return void */ public function theme_installer_single($theme) { @@ -11415,6 +11626,7 @@ public function install_theme_info($theme) * @global string $type Type of search. * * @param array $extra_args Unused. + * @phpstan-return void */ public function _js_vars($extra_args = array()) { @@ -11472,6 +11684,7 @@ public function ajax_user_can() * * @global string $role * @global string $usersearch + * @phpstan-return void */ public function prepare_items() { @@ -11480,6 +11693,7 @@ public function prepare_items() * Outputs 'no users' message. * * @since 3.1.0 + * @phpstan-return void */ public function no_items() { @@ -11517,6 +11731,7 @@ protected function get_bulk_actions() * * @param string $which Whether this is being invoked above ("top") * or below the table ("bottom"). + * @phpstan-return void */ protected function extra_tablenav($which) { @@ -11558,6 +11773,7 @@ protected function get_sortable_columns() * Generates the list table rows. * * @since 3.1.0 + * @phpstan-return void */ public function display_rows() { @@ -11770,6 +11986,7 @@ public function WP_User_Search($search_term = '', $page = '', $role = '') * @access public * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ public function prepare_query() { @@ -11781,6 +11998,7 @@ public function prepare_query() * @access public * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ public function query() { @@ -11799,6 +12017,7 @@ function prepare_vars_for_template_usage() * * @since 2.1.0 * @access public + * @phpstan-return void */ public function do_paging() { @@ -11821,6 +12040,7 @@ public function get_results() * * @since 2.1.0 * @access public + * @phpstan-return void */ function page_links() { @@ -12802,7 +13022,6 @@ class getID3 const ATTACHMENTS_INLINE = \true; /** * @throws getid3_exception - * @phpstan-return void */ public function __construct() { @@ -13024,12 +13243,14 @@ abstract public function Analyze(); * Analyze from string instead. * * @param string $string + * @phpstan-return void */ public function AnalyzeString($string) { } /** * @param string $string + * @phpstan-return void */ public function setStringMode($string) { @@ -13111,6 +13332,7 @@ protected function warning($text) } /** * @param string $text + * @phpstan-return void */ protected function notice($text) { @@ -13513,6 +13735,7 @@ public function readData() } /** * @param int $bits + * @phpstan-return void */ public function skipBits($bits) { @@ -13808,6 +14031,7 @@ public function MaybePascal2String($pascalstring) * @param string $tag * @param string $history * @param array $result + * @phpstan-return void */ public function search_tag_by_key($info, $tag, $history, &$result) { @@ -13818,6 +14042,7 @@ public function search_tag_by_key($info, $tag, $history, &$result) * @param string $v * @param string $history * @param array $result + * @phpstan-return void */ public function search_tag_by_pair($info, $k, $v, $history, &$result) { @@ -14915,6 +15140,7 @@ function __construct($data) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_Base64($data) { @@ -14950,6 +15176,7 @@ function __construct($server, $path = \false, $port = 80, $timeout = 15) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_Client($server, $path = \false, $port = 80, $timeout = 15) { @@ -14994,6 +15221,7 @@ function __construct($server, $path = \false, $port = 80) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_ClientMulticall($server, $path = \false, $port = 80) { @@ -15002,6 +15230,7 @@ public function IXR_ClientMulticall($server, $path = \false, $port = 80) * @since 1.5.0 * @since 5.5.0 Formalized the existing `...$args` parameter by adding it * to the function signature. + * @phpstan-return void */ function addCall(...$args) { @@ -15040,6 +15269,7 @@ function __construct($time) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_Date($time) { @@ -15078,6 +15308,7 @@ function __construct($code, $message) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_Error($code, $message) { @@ -15106,6 +15337,7 @@ function __construct($callbacks = \false, $data = \false, $wait = \false) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_Server($callbacks = \false, $data = \false, $wait = \false) { @@ -15159,6 +15391,7 @@ function __construct() } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_IntrospectionServer() { @@ -15207,6 +15440,7 @@ function __construct($message) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_Message($message) { @@ -15243,6 +15477,7 @@ function __construct($method, $args) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_Request($method, $args) { @@ -15272,6 +15507,7 @@ function __construct($data, $type = \false) } /** * PHP4 constructor. + * @phpstan-return void */ public function IXR_Value($data, $type = \false) { @@ -16178,6 +16414,7 @@ public function __construct($exceptions = null) } /** * Destructor. + * @phpstan-return void */ public function __destruct() { @@ -16199,30 +16436,35 @@ protected function edebug($str) * Sets message type to HTML or plain. * * @param bool $isHtml True for HTML mode + * @phpstan-return void */ public function isHTML($isHtml = true) { } /** * Send messages using SMTP. + * @phpstan-return void */ public function isSMTP() { } /** * Send messages using PHP's mail() function. + * @phpstan-return void */ public function isMail() { } /** * Send messages using $Sendmail. + * @phpstan-return void */ public function isSendmail() { } /** * Send messages using qmail. + * @phpstan-return void */ public function isQmail() { @@ -16602,6 +16844,7 @@ public function smtpConnect($options = null) } /** * Close the active SMTP session if one exists. + * @phpstan-return void */ public function smtpClose() { @@ -16772,6 +17015,7 @@ protected function endBoundary($boundary) /** * Set the message type. * PHPMailer only supports some preset message types, not arbitrary MIME structures. + * @phpstan-return void */ protected function setMessageType() { @@ -17069,42 +17313,49 @@ public function clearQueuedAddresses($kind) } /** * Clear all To recipients. + * @phpstan-return void */ public function clearAddresses() { } /** * Clear all CC recipients. + * @phpstan-return void */ public function clearCCs() { } /** * Clear all BCC recipients. + * @phpstan-return void */ public function clearBCCs() { } /** * Clear all ReplyTo recipients. + * @phpstan-return void */ public function clearReplyTos() { } /** * Clear all recipient types. + * @phpstan-return void */ public function clearAllRecipients() { } /** * Clear all filesystem, string, and binary attachments. + * @phpstan-return void */ public function clearAttachments() { } /** * Clear all custom headers. + * @phpstan-return void */ public function clearCustomHeaders() { @@ -17140,6 +17391,7 @@ public function replaceCustomHeader($name, $value = null) * Add an error message to the error container. * * @param string $msg + * @phpstan-return void */ protected function setError($msg) { @@ -17395,6 +17647,7 @@ public static function getLE() * Set the line break format string, e.g. "\r\n". * * @param string $le + * @phpstan-return void */ protected static function setLE($le) { @@ -17406,6 +17659,7 @@ protected static function setLE($le) * @param string $key_filename * @param string $key_pass Password for private key * @param string $extracerts_filename Optional path to chain certificate + * @phpstan-return void */ public function sign($cert_filename, $key_filename, $key_pass, $extracerts_filename = '') { @@ -17554,6 +17808,7 @@ public function getAllRecipientAddresses() * @param string $body * @param string $from * @param array $extra + * @phpstan-return void */ protected function doCallback($isSent, $to, $cc, $bcc, $subject, $body, $from, $extra) { @@ -17568,6 +17823,7 @@ public function getOAuth() } /** * Set an OAuthTokenProvider instance. + * @phpstan-return void */ public function setOAuth(\PHPMailer\PHPMailer\OAuthTokenProvider $oauth) { @@ -17792,6 +18048,7 @@ protected function checkResponse($string) * Also display debug output if it's enabled. * * @param string $error + * @phpstan-return void */ protected function setError($error) { @@ -17811,6 +18068,7 @@ public function getErrors() * @param string $errstr * @param string $errfile * @param int $errline + * @phpstan-return void */ protected function catchWarning($errno, $errstr, $errfile, $errline) { @@ -18114,6 +18372,7 @@ public function connected() * Don't use this function without first trying to use QUIT. * * @see quit() + * @phpstan-return void */ public function close() { @@ -18167,6 +18426,7 @@ protected function sendHello($hello, $host) * In case of HELO, the only parameter that can be discovered is a server name. * * @param string $type `HELO` or `EHLO` + * @phpstan-return void */ protected function parseHelloFields($type) { @@ -18370,6 +18630,7 @@ protected function get_lines() * Enable or disable VERP address generation. * * @param bool $enabled + * @phpstan-return void */ public function setVerp($enabled = false) { @@ -18386,6 +18647,7 @@ public function getVerp() * Enable or disable use of SMTPUTF8. * * @param bool $enabled + * @phpstan-return void */ public function setSMTPUTF8($enabled = false) { @@ -18405,6 +18667,7 @@ public function getSMTPUTF8() * @param string $detail Further detail on the error * @param string $smtp_code An associated SMTP error code * @param string $smtp_code_ex Extended SMTP code + * @phpstan-return void */ protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '') { @@ -18413,6 +18676,7 @@ protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ * Set debug output method. * * @param string|callable $method The name of the mechanism to use for debugging output, or a callable to handle it + * @phpstan-return void */ public function setDebugOutput($method = 'echo') { @@ -18429,6 +18693,7 @@ public function getDebugOutput() * Set debug output level. * * @param int $level + * @phpstan-return void */ public function setDebugLevel($level = 0) { @@ -18445,6 +18710,7 @@ public function getDebugLevel() * Set SMTP timeout. * * @param int $timeout The timeout duration in seconds + * @phpstan-return void */ public function setTimeout($timeout = 0) { @@ -18464,6 +18730,7 @@ public function getTimeout() * @param string $errmsg The error message returned by PHP * @param string $errfile The file the error occurred in * @param int $errline The line number the error occurred on + * @phpstan-return void */ protected function errorHandler($errno, $errmsg, $errfile = '', $errline = 0) { @@ -18555,7 +18822,6 @@ class Basic implements \WpOrg\Requests\Auth * * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed argument is not an array or null. * @throws \WpOrg\Requests\Exception\ArgumentCount On incorrect number of array elements (`authbasicbadargs`). - * @phpstan-return void */ public function __construct($args = null) { @@ -18566,6 +18832,7 @@ public function __construct($args = null) * @see \WpOrg\Requests\Auth\Basic::curl_before_send() * @see \WpOrg\Requests\Auth\Basic::fsockopen_header() * @param \WpOrg\Requests\Hooks $hooks Hook system + * @phpstan-return void */ public function register(\WpOrg\Requests\Hooks $hooks) { @@ -18574,6 +18841,7 @@ public function register(\WpOrg\Requests\Hooks $hooks) * Set cURL parameters before the data is sent * * @param resource|\CurlHandle $handle cURL handle + * @phpstan-return void */ public function curl_before_send(&$handle) { @@ -18582,6 +18850,7 @@ public function curl_before_send(&$handle) * Add extra headers to the request before sending * * @param string $out HTTP header string + * @phpstan-return void */ public function fsockopen_header(&$out) { @@ -18909,6 +19178,7 @@ public function offsetGet($offset) * @param string $value Item value * * @throws \WpOrg\Requests\Exception On attempting to use dictionary as list (`invalidset`) + * @phpstan-return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -18918,6 +19188,7 @@ public function offsetSet($offset, $value) * Unset the given header * * @param string $offset The key for the item to unset. + * @phpstan-return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) @@ -18936,6 +19207,7 @@ public function getIterator() * Register the cookie handler with the request's hooking system * * @param \WpOrg\Requests\HookManager $hooks Hooking system + * @phpstan-return void */ public function register(\WpOrg\Requests\HookManager $hooks) { @@ -18950,6 +19222,7 @@ public function register(\WpOrg\Requests\HookManager $hooks) * @param array $data * @param string $type * @param array $options + * @phpstan-return void */ public function before_request($url, &$headers, &$data, &$type, &$options) { @@ -18958,6 +19231,7 @@ public function before_request($url, &$headers, &$data, &$type, &$options) * Parse all cookies from a response and attach them to the response * * @param \WpOrg\Requests\Response $response Response as received. + * @phpstan-return void */ public function before_redirect_check(\WpOrg\Requests\Response $response) { @@ -19494,6 +19768,7 @@ class Hooks implements \WpOrg\Requests\HookManager * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $hook argument is not a string. * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $callback argument is not callable. * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $priority argument is not an integer. + * @phpstan-return void */ public function register($hook, $callback, $priority = 0) { @@ -19842,6 +20117,7 @@ public function __toString() * * @param string $name Property name * @param mixed $value Property value + * @phpstan-return void */ public function __set($name, $value) { @@ -19868,6 +20144,7 @@ public function __isset($name) * Overload __unset() to provide access via properties * * @param string $name Property name + * @phpstan-return void */ public function __unset($name) { @@ -20217,6 +20494,7 @@ public function __construct($args = null) * @see \WpOrg\Requests\Proxy\Http::fsockopen_remote_host_path() * @see \WpOrg\Requests\Proxy\Http::fsockopen_header() * @param \WpOrg\Requests\Hooks $hooks Hook system + * @phpstan-return void */ public function register(\WpOrg\Requests\Hooks $hooks) { @@ -20226,6 +20504,7 @@ public function register(\WpOrg\Requests\Hooks $hooks) * * @since 1.6 * @param resource|\CurlHandle $handle cURL handle + * @phpstan-return void */ public function curl_before_send(&$handle) { @@ -20235,6 +20514,7 @@ public function curl_before_send(&$handle) * * @since 1.6 * @param string $remote_socket Socket connection string + * @phpstan-return void */ public function fsockopen_remote_socket(&$remote_socket) { @@ -20245,6 +20525,7 @@ public function fsockopen_remote_socket(&$remote_socket) * @since 1.6 * @param string $path Path to send in HTTP request string ("GET ...") * @param string $url Full URL we're requesting + * @phpstan-return void */ public function fsockopen_remote_host_path(&$path, $url) { @@ -20254,6 +20535,7 @@ public function fsockopen_remote_host_path(&$path, $url) * * @since 1.6 * @param string $out HTTP header string + * @phpstan-return void */ public function fsockopen_header(&$out) { @@ -20388,6 +20670,7 @@ class Requests * Register a transport * * @param string $transport Transport class to add, must support the \WpOrg\Requests\Transport interface + * @phpstan-return void */ public static function add_transport($transport) { @@ -20634,6 +20917,7 @@ public static function get_certificate_path() * @param string|Stringable|bool $path Certificate path, pointing to a PEM file. * * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $url argument is not a string, Stringable or boolean. + * @phpstan-return void */ public static function set_certificate_path($path) { @@ -20838,6 +21122,7 @@ public function is_redirect() * * @throws \WpOrg\Requests\Exception If `$allow_redirects` is false, and code is 3xx (`response.no_redirects`) * @throws \WpOrg\Requests\Exception\Http On non-successful status code. Exception class corresponds to "Status" + code (e.g. {@see \WpOrg\Requests\Exception\Http\Status404}) + * @phpstan-return void */ public function throw_for_status($allow_redirects = true) { @@ -20918,6 +21203,7 @@ public function offsetGet($offset) * @param string $value Item value * * @throws \WpOrg\Requests\Exception On attempting to use dictionary as list (`invalidset`) + * @phpstan-return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -20927,6 +21213,7 @@ public function offsetSet($offset, $value) * Unset the given header * * @param string $offset The key for the item to unset. + * @phpstan-return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) @@ -20981,6 +21268,7 @@ public function offsetGet($offset) * @param string $value Item value * * @throws \WpOrg\Requests\Exception On attempting to use dictionary as list (`invalidset`) + * @phpstan-return void */ public function offsetSet($offset, $value) { @@ -21101,6 +21389,7 @@ public function __get($name) * * @param string $name Property name. * @param mixed $value Property value + * @phpstan-return void */ public function __set($name, $value) { @@ -21117,6 +21406,7 @@ public function __isset($name) * Remove a property's value * * @param string $name Property name. + * @phpstan-return void */ public function __unset($name) { @@ -21364,6 +21654,7 @@ public function __construct() } /** * Destructor + * @phpstan-return void */ public function __destruct() { @@ -23707,7 +23998,6 @@ class File implements \SimplePie\Cache\Base * @param string $location Location string (from SimplePie::$cache_location) * @param string $name Unique ID for the cache * @param Base::TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data - * @phpstan-return void */ public function __construct(string $location, string $name, $type) { @@ -23974,7 +24264,6 @@ class MySQL extends \SimplePie\Cache\DB * @param string $location Location string (from SimplePie::$cache_location) * @param string $name Unique ID for the cache * @param Base::TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data - * @phpstan-return void */ public function __construct(string $location, string $name, $type) { @@ -25446,7 +25735,6 @@ class File implements \SimplePie\HTTP\Response * @param ?string $useragent * @param bool $force_fsockopen * @param array $curl_options - * @phpstan-return void */ public function __construct(string $url, int $timeout = 10, int $redirects = 5, ?array $headers = null, ?string $useragent = null, bool $force_fsockopen = false, array $curl_options = []) { @@ -25691,7 +25979,6 @@ protected function body() /** * Parsed a "Transfer-Encoding: chunked" body * @return void - * @phpstan-return void */ protected function chunked() { @@ -25908,7 +26195,6 @@ protected function remove_iunreserved_percent_encoded(array $match) } /** * @return void - * @phpstan-return void */ protected function scheme_normalization() { @@ -26136,6 +26422,7 @@ public function __toString() } /** * Remove items that link back to this before destroying this object + * @phpstan-return void */ public function __destruct() { @@ -28287,7 +28574,6 @@ public function do_strip_htmltags(array $match) /** * @param int-mask-of $type * @return void - * @phpstan-return void */ protected function strip_tag(string $tag, \DOMDocument $document, \DOMXPath $xpath, int $type) { @@ -28752,6 +29038,7 @@ class Gzdecode * * @param string $name * @param mixed $value + * @phpstan-return never */ public function __set(string $name, $value) { @@ -29264,6 +29551,7 @@ function __construct($engine, $params) } /** * PHP4 constructor. + * @phpstan-return void */ public function Text_Diff($engine, $params) { @@ -29355,6 +29643,7 @@ function getFinal() * * @param string $line The line to trim. * @param int $key The index of the line in the array. Not used. + * @phpstan-return void */ static function trimNewlines(&$line, $key) { @@ -29405,6 +29694,7 @@ function __construct($from_lines, $to_lines, $mapped_from_lines, $mapped_to_line } /** * PHP4 constructor. + * @phpstan-return void */ public function Text_MappedDiff($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) { @@ -29444,6 +29734,7 @@ function __construct($orig, $final = \false) } /** * PHP4 constructor. + * @phpstan-return void */ public function Text_Diff_Op_copy($orig, $final = \false) { @@ -29468,6 +29759,7 @@ function __construct($lines) } /** * PHP4 constructor. + * @phpstan-return void */ public function Text_Diff_Op_delete($lines) { @@ -29492,6 +29784,7 @@ function __construct($lines) } /** * PHP4 constructor. + * @phpstan-return void */ public function Text_Diff_Op_add($lines) { @@ -29516,6 +29809,7 @@ function __construct($orig, $final) } /** * PHP4 constructor. + * @phpstan-return void */ public function Text_Diff_Op_change($orig, $final) { @@ -29598,6 +29892,7 @@ function _lcsPos($ypos) * * Note that XLIM, YLIM are exclusive bounds. All line numbers are * origin-0 and discarded lines are not counted. + * @phpstan-return void */ function _compareseq($xoff, $xlim, $yoff, $ylim) { @@ -29613,6 +29908,7 @@ function _compareseq($xoff, $xlim, $yoff, $ylim) * following identical line to be the "change". * * This is extracted verbatim from analyze.c (GNU diffutils-2.7). + * @phpstan-return void */ function _shiftBoundaries($lines, &$changed, $other_changed) { @@ -29788,6 +30084,7 @@ function __construct($params = array()) } /** * PHP4 constructor. + * @phpstan-return void */ public function Text_Diff_Renderer($params = array()) { @@ -30799,6 +31096,7 @@ function __construct() } /** * PHP4 constructor. + * @phpstan-return void */ public function AtomParser() { @@ -31058,6 +31356,7 @@ function __construct($server = '', $timeout = '') } /** * PHP4 constructor. + * @phpstan-return void */ public function POP3($server = '', $timeout = '') { @@ -31223,6 +31522,7 @@ class Walker_CategoryDropdown extends \Walker * walker?: Walker, * aria_describedby?: string, * } $args See wp_dropdown_categories() + * @phpstan-return void */ public function start_el(&$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0) { @@ -31446,6 +31746,7 @@ class Walker_Comment extends \Walker * @param string $output Used to append additional content (passed by reference). * @param int $depth Optional. Depth of the current comment. Default 0. * @param array $args Optional. Uses 'style' argument for type of HTML list. Default empty array. + * @phpstan-return void */ public function start_lvl(&$output, $depth = 0, $args = array()) { @@ -31462,6 +31763,7 @@ public function start_lvl(&$output, $depth = 0, $args = array()) * @param int $depth Optional. Depth of the current comment. Default 0. * @param array $args Optional. Will only append content if style argument value is 'ol' or 'ul'. * Default empty array. + * @phpstan-return void */ public function end_lvl(&$output, $depth = 0, $args = array()) { @@ -31551,6 +31853,7 @@ public function end_el(&$output, $data_object, $depth = 0, $args = array()) * @param WP_Comment $comment The comment object. * @param int $depth Depth of the current comment. * @param array $args An array of arguments. + * @phpstan-return void */ protected function ping($comment, $depth, $args) { @@ -31580,6 +31883,7 @@ public function filter_comment_text($comment_text, $comment) * @param WP_Comment $comment Comment to display. * @param int $depth Depth of the current comment. * @param array $args An array of arguments. + * @phpstan-return void */ protected function comment($comment, $depth, $args) { @@ -31594,6 +31898,7 @@ protected function comment($comment, $depth, $args) * @param WP_Comment $comment Comment to display. * @param int $depth Depth of the current comment. * @param array $args An array of arguments. + * @phpstan-return void */ protected function html5_comment($comment, $depth, $args) { @@ -31658,6 +31963,7 @@ class Walker_PageDropdown extends \Walker * option_none_value?: string, * value_field?: string, * } $args See wp_dropdown_pages() + * @phpstan-return void */ public function start_el(&$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0) { @@ -31702,6 +32008,7 @@ class Walker_Page extends \Walker * @param int $depth Optional. Depth of page. Used for padding. Default 0. * @param array $args Optional. Arguments for outputting the next level. * Default empty array. + * @phpstan-return void */ public function start_lvl(&$output, $depth = 0, $args = array()) { @@ -31717,6 +32024,7 @@ public function start_lvl(&$output, $depth = 0, $args = array()) * @param int $depth Optional. Depth of page. Used for padding. Default 0. * @param array $args Optional. Arguments for outputting the end of the current level. * Default empty array. + * @phpstan-return void */ public function end_lvl(&$output, $depth = 0, $args = array()) { @@ -31734,6 +32042,7 @@ public function end_lvl(&$output, $depth = 0, $args = array()) * @param int $depth Optional. Depth of page. Used for padding. Default 0. * @param array $args Optional. Array of arguments. Default empty array. * @param int $current_object_id Optional. ID of the current page. Default 0. + * @phpstan-return void */ public function start_el(&$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0) { @@ -31750,6 +32059,7 @@ public function start_el(&$output, $data_object, $depth = 0, $args = array(), $c * @param WP_Post $data_object Page data object. Not used. * @param int $depth Optional. Depth of page. Default 0 (unused). * @param array $args Optional. Array of arguments. Default empty array. + * @phpstan-return void */ public function end_el(&$output, $data_object, $depth = 0, $args = array()) { @@ -31777,6 +32087,7 @@ class WP_Admin_Bar * Initializes the admin bar. * * @since 3.1.0 + * @phpstan-return void */ public function initialize() { @@ -31787,6 +32098,7 @@ public function initialize() * @since 3.3.0 * * @param array $node The attributes that define the node. + * @phpstan-return void */ public function add_menu($node) { @@ -31797,6 +32109,7 @@ public function add_menu($node) * @since 3.1.0 * * @param string $id The menu slug to remove. + * @phpstan-return void */ public function remove_menu($id) { @@ -31836,6 +32149,7 @@ public function add_node($args) * @since 3.3.0 * * @param array $args + * @phpstan-return void */ final protected function _set_node($args) { @@ -31896,6 +32210,7 @@ final protected function _get_nodes() * parent?: string, * meta?: array, * } $args + * @phpstan-return void */ final public function add_group($args) { @@ -31906,6 +32221,7 @@ final public function add_group($args) * @since 3.1.0 * * @param string $id The ID of the item. + * @phpstan-return void */ public function remove_node($id) { @@ -31914,12 +32230,14 @@ public function remove_node($id) * @since 3.3.0 * * @param string $id + * @phpstan-return void */ final protected function _unset_node($id) { } /** * @since 3.1.0 + * @phpstan-return void */ public function render() { @@ -31936,6 +32254,7 @@ final protected function _bind() * @since 3.3.0 * * @param object $root + * @phpstan-return void */ final protected function _render($root) { @@ -31987,6 +32306,7 @@ public function recursive_render($id, $node) * Adds menus to the admin bar. * * @since 3.1.0 + * @phpstan-return void */ public function add_menus() { @@ -32073,6 +32393,7 @@ public function add($args = '') * Sets the content type header to text/xml. * * @since 2.1.0 + * @phpstan-return void */ public function send() { @@ -32579,6 +32900,7 @@ public function get_value(array $source_args, $block_instance, string $attribute * Wakeup magic method. * * @since 6.5.0 + * @phpstan-return never */ public function __wakeup() { @@ -32741,6 +33063,7 @@ public function offsetUnset($offset) * @since 5.5.0 * * @link https://www.php.net/manual/en/iterator.rewind.php + * @phpstan-return void */ #[\ReturnTypeWillChange] public function rewind() @@ -32778,6 +33101,7 @@ public function key() * @since 5.5.0 * * @link https://www.php.net/manual/en/iterator.next.php + * @phpstan-return void */ #[\ReturnTypeWillChange] public function next() @@ -33161,6 +33485,7 @@ public function add_freeform($length = \null) * @param int $token_start Byte offset into the document where the first token for the block starts. * @param int $token_length Byte length of entire block from start of opening token to end of closing token. * @param int|null $last_offset Last byte offset into document if continuing form earlier output. + * @phpstan-return void */ public function add_inner_block(\WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = \null) { @@ -33171,6 +33496,7 @@ public function add_inner_block(\WP_Block_Parser_Block $block, $token_start, $to * @internal * @since 5.0.0 * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML. + * @phpstan-return void */ public function add_block_from_stack($end_offset = \null) { @@ -34553,6 +34879,7 @@ public static function get_instance() * Initializes the block supports. It registers the block supports block attributes. * * @since 5.6.0 + * @phpstan-return void */ public static function init() { @@ -34566,6 +34893,7 @@ public static function init() * * @param string $block_support_name Block support name. * @param array $block_support_config Array containing the properties of the block support. + * @phpstan-return void */ public function register($block_support_name, $block_support_config) { @@ -35365,6 +35693,7 @@ public function prepare_attributes_for_render($attributes) * style_handles?: string[], * view_style_handles?: string[], * } $args See WP_Block_Type::__construct() + * @phpstan-return void */ public function set_props($args) { @@ -35529,6 +35858,7 @@ public function __construct($block, $available_context = array(), $registry = \n * for each inner block and updating their context based on the block's `provides_context` property. * * @since 6.8.0 + * @phpstan-return void */ public function refresh_context_dependents() { @@ -35544,6 +35874,7 @@ public function refresh_context_dependents() * correct content and context are updated for each nested block. * * @since 6.8.0 + * @phpstan-return void */ public function refresh_parsed_block_dependents() { @@ -35955,6 +36286,7 @@ public function __construct($query = '') * update_comment_meta_cache?: bool, * update_comment_post_cache?: bool, * } $query See WP_Comment_Query::__construct() + * @phpstan-return void */ public function parse_query($query = '') { @@ -36265,6 +36597,7 @@ public function get_children($args = array()) * @since 4.4.0 * * @param WP_Comment $child Child comment. + * @phpstan-return void */ public function add_child(\WP_Comment $child) { @@ -36289,6 +36622,7 @@ public function get_child($child_id) * @since 4.4.0 * * @param bool $set Whether the comment's children have already been populated. + * @phpstan-return void */ public function populated_children($set) { @@ -36572,6 +36906,7 @@ final public function value($setting_key = 'default') * Refreshes the parameters passed to the JavaScript via JSON. * * @since 3.4.0 + * @phpstan-return void */ public function to_json() { @@ -36625,6 +36960,7 @@ final public function maybe_render() * Renders the control wrapper and calls $this->render_content() for the internals. * * @since 3.4.0 + * @phpstan-return void */ protected function render() { @@ -36650,6 +36986,7 @@ public function get_link($setting_key = 'default') * @uses WP_Customize_Control::get_link() * * @param string $setting_key Default 'default'. + * @phpstan-return void */ public function link($setting_key = 'default') { @@ -36658,6 +36995,7 @@ public function link($setting_key = 'default') * Renders the custom attributes for the control's input element. * * @since 4.0.0 + * @phpstan-return void */ public function input_attrs() { @@ -36688,6 +37026,7 @@ protected function render_content() * element and be override-able. * * @since 4.1.0 + * @phpstan-return void */ final public function print_template() { @@ -36824,6 +37163,7 @@ public function setup_theme() * @since 4.9.0 * * @global string $pagenow The filename of the current screen. + * @phpstan-return void */ public function establish_loaded_changeset() { @@ -36832,6 +37172,7 @@ public function establish_loaded_changeset() * Callback to validate a theme once it is loaded * * @since 3.4.0 + * @phpstan-return void */ public function after_setup_theme() { @@ -36979,6 +37320,7 @@ public function is_theme_active() * Registers styles/scripts and initialize the preview of each setting * * @since 3.4.0 + * @phpstan-return void */ public function wp_loaded() { @@ -37117,6 +37459,7 @@ public function post_value($setting, $default_value = \null) * * @param string $setting_id ID for the WP_Customize_Setting instance. * @param mixed $value Post value. + * @phpstan-return void */ public function set_post_value($setting_id, $value) { @@ -37187,6 +37530,7 @@ public function customize_preview_html5() * Prints CSS for loading indicators for the Customizer preview. * * @since 4.2.0 + * @phpstan-return void */ public function customize_preview_loading_style() { @@ -37207,6 +37551,7 @@ public function remove_frameless_preview_messenger_channel() * Prints JavaScript settings for preview frame. * * @since 3.4.0 + * @phpstan-return void */ public function customize_preview_settings() { @@ -37344,6 +37689,7 @@ public function prepare_setting_validity_for_js($validity) * * @since 3.4.0 * @since 4.7.0 The semantics of this method have changed to update a changeset, optionally to also change the status and other attributes. + * @phpstan-return void */ public function save() { @@ -37471,6 +37817,7 @@ public function grant_edit_post_capability_for_changeset($caps, $cap, $user_id, * * @param int $changeset_post_id Changeset post ID. * @param bool $take_over Whether to take over the changeset. Default false. + * @phpstan-return void */ public function set_changeset_lock($changeset_post_id, $take_over = \false) { @@ -37643,6 +37990,7 @@ public function get_setting($id) * @since 3.4.0 * * @param string $id Customize Setting ID. + * @phpstan-return void */ public function remove_setting($id) { @@ -37692,6 +38040,7 @@ public function get_panel($id) * @since 4.0.0 * * @param string $id Panel ID to remove. + * @phpstan-return void */ public function remove_panel($id) { @@ -37706,6 +38055,7 @@ public function remove_panel($id) * @see WP_Customize_Panel * * @param string $panel Name of a custom panel which is a subclass of WP_Customize_Panel. + * @phpstan-return void */ public function register_panel_type($panel) { @@ -37714,6 +38064,7 @@ public function register_panel_type($panel) * Renders JS templates for all registered panel types. * * @since 4.3.0 + * @phpstan-return void */ public function render_panel_templates() { @@ -37765,6 +38116,7 @@ public function get_section($id) * @since 3.4.0 * * @param string $id Section ID. + * @phpstan-return void */ public function remove_section($id) { @@ -37779,6 +38131,7 @@ public function remove_section($id) * @see WP_Customize_Section * * @param string $section Name of a custom section which is a subclass of WP_Customize_Section. + * @phpstan-return void */ public function register_section_type($section) { @@ -37787,6 +38140,7 @@ public function register_section_type($section) * Renders JS templates for all registered section types. * * @since 4.3.0 + * @phpstan-return void */ public function render_section_templates() { @@ -37845,6 +38199,7 @@ public function get_control($id) * @since 3.4.0 * * @param string $id ID of the control. + * @phpstan-return void */ public function remove_control($id) { @@ -37858,6 +38213,7 @@ public function remove_control($id) * * @param string $control Name of a custom control which is a subclass of * WP_Customize_Control. + * @phpstan-return void */ public function register_control_type($control) { @@ -37866,6 +38222,7 @@ public function register_control_type($control) * Renders JS templates for all registered control types. * * @since 4.1.0 + * @phpstan-return void */ public function render_control_templates() { @@ -37878,6 +38235,7 @@ public function render_control_templates() * and sort by priority. * * @since 3.4.0 + * @phpstan-return void */ public function prepare_controls() { @@ -37886,6 +38244,7 @@ public function prepare_controls() * Enqueues scripts for customize controls. * * @since 3.4.0 + * @phpstan-return void */ public function enqueue_control_scripts() { @@ -37918,6 +38277,7 @@ public function get_document_title_template() * @since 4.4.0 * * @param string $preview_url URL to be previewed. + * @phpstan-return void */ public function set_preview_url($preview_url) { @@ -37977,6 +38337,7 @@ public function get_messenger_channel() * @since 4.4.0 * * @param string $return_url URL for return link. + * @phpstan-return void */ public function set_return_url($return_url) { @@ -38010,6 +38371,7 @@ public function get_return_url() * section?: string, * panel?: string, * } $autofocus + * @phpstan-return void */ public function set_autofocus($autofocus) { @@ -38049,6 +38411,7 @@ public function get_nonces() * Prints JavaScript settings for parent window. * * @since 4.4.0 + * @phpstan-return void */ public function customize_pane_settings() { @@ -38067,6 +38430,7 @@ public function get_previewable_devices() * Registers some default controls. * * @since 3.4.0 + * @phpstan-return void */ public function register_controls() { @@ -38089,6 +38453,7 @@ public function has_published_pages() * @since 4.2.0 * * @see add_dynamic_settings() + * @phpstan-return void */ public function register_dynamic_settings() { @@ -38223,7 +38588,6 @@ final class WP_Customize_Nav_Menus * @since 4.3.0 * * @param WP_Customize_Manager $manager Customizer bootstrap instance. - * @phpstan-return void */ public function __construct($manager) { @@ -38266,6 +38630,7 @@ public function load_available_items_query($object_type = 'post_type', $object_n * Ajax handler for searching available menu items. * * @since 4.3.0 + * @phpstan-return void */ public function ajax_search_available_items() { @@ -38287,6 +38652,7 @@ public function search_available_items_query($args = array()) * Enqueues scripts and styles for Customizer pane. * * @since 4.3.0 + * @phpstan-return void */ public function enqueue_scripts() { @@ -38324,6 +38690,7 @@ public function filter_dynamic_setting_class($setting_class, $setting_id, $setti * Adds the customizer settings and controls. * * @since 4.3.0 + * @phpstan-return void */ public function customize_register() { @@ -38381,6 +38748,7 @@ public function insert_auto_draft_post($postarr) * Ajax handler for adding a new auto-draft post. * * @since 4.7.0 + * @phpstan-return void */ public function ajax_insert_auto_draft_post() { @@ -38391,6 +38759,7 @@ public function ajax_insert_auto_draft_post() * Templates are imported into the JS use wp.template. * * @since 4.3.0 + * @phpstan-return void */ public function print_templates() { @@ -38399,6 +38768,7 @@ public function print_templates() * Prints the HTML template used to render the add-menu-item frame. * * @since 4.3.0 + * @phpstan-return void */ public function available_items_template() { @@ -38426,6 +38796,7 @@ public function customize_dynamic_partial_args($partial_args, $partial_id) * Adds hooks for the Customizer preview. * * @since 4.3.0 + * @phpstan-return void */ public function customize_preview_init() { @@ -38436,6 +38807,7 @@ public function customize_preview_init() * @since 4.7.0 * * @global stdClass[] $wp_post_statuses List of post statuses. + * @phpstan-return void */ public function make_auto_draft_status_previewable() { @@ -38462,6 +38834,7 @@ public function sanitize_nav_menus_created_posts($value) * @since 4.7.0 * * @param WP_Customize_Setting $setting Customizer setting object. + * @phpstan-return void */ public function save_nav_menus_created_posts($setting) { @@ -38514,6 +38887,7 @@ public function hash_nav_menu_args($args) * Enqueues scripts for the Customizer preview. * * @since 4.3.0 + * @phpstan-return void */ public function customize_preview_enqueue_deps() { @@ -38522,6 +38896,7 @@ public function customize_preview_enqueue_deps() * Exports data from PHP to JS. * * @since 4.3.0 + * @phpstan-return void */ public function export_preview_data() { @@ -38791,6 +39166,7 @@ protected function render_content() * @since 4.3.0 * * @see WP_Customize_Manager::register_panel_type() + * @phpstan-return void */ public function print_template() { @@ -38804,6 +39180,7 @@ public function print_template() * @see WP_Customize_Panel::print_template() * * @since 4.3.0 + * @phpstan-return void */ protected function render_template() { @@ -38817,6 +39194,7 @@ protected function render_template() * @see WP_Customize_Panel::print_template() * * @since 4.3.0 + * @phpstan-return void */ protected function content_template() { @@ -39067,6 +39445,7 @@ protected function render() * @since 4.3.0 * * @see WP_Customize_Manager::render_template() + * @phpstan-return void */ public function print_template() { @@ -39080,6 +39459,7 @@ public function print_template() * @since 4.3.0 * * @see WP_Customize_Section::print_template() + * @phpstan-return void */ protected function render_template() { @@ -39279,6 +39659,7 @@ final public function id_data() * calls get combined into one call, greatly improving performance. * * @since 4.4.0 + * @phpstan-return void */ protected function aggregate_multidimensional() { @@ -39290,6 +39671,7 @@ protected function aggregate_multidimensional() * * @since 4.5.0 * @ignore + * @phpstan-return void */ public static function reset_aggregated_multidimensionals() { @@ -39345,6 +39727,7 @@ public function preview() * * @see WP_Customize_Manager::set_post_value() * @see WP_Customize_Setting::_multidimensional_preview_filter() + * @phpstan-return void */ final public function _clear_aggregated_multidimensional_preview_applied_flag() { @@ -39596,7 +39979,6 @@ final class WP_Customize_Widgets * @since 3.9.0 * * @param WP_Customize_Manager $manager Customizer bootstrap instance. - * @phpstan-return void */ public function __construct($manager) { @@ -39633,6 +40015,7 @@ public function is_widget_selective_refreshable($id_base) * them up-front so widgets will be initialized properly. * * @since 4.2.0 + * @phpstan-return void */ public function register_settings() { @@ -39709,6 +40092,7 @@ public function filter_option_sidebars_widgets_for_theme_switch($sidebars_widget * Note: these actions are also fired in wp_ajax_update_widget(). * * @since 3.9.0 + * @phpstan-return void */ public function customize_controls_init() { @@ -39720,6 +40104,7 @@ public function customize_controls_init() * so that all filters have been initialized (e.g. Widget Visibility). * * @since 3.9.0 + * @phpstan-return void */ public function schedule_customize_register() { @@ -39732,6 +40117,7 @@ public function schedule_customize_register() * @global array $wp_registered_widgets * @global array $wp_registered_widget_controls * @global array $wp_registered_sidebars + * @phpstan-return void */ public function customize_register() { @@ -39809,6 +40195,7 @@ public function parse_widget_setting_id($setting_id) * allow custom styles from plugins. * * @since 3.9.0 + * @phpstan-return void */ public function print_styles() { @@ -39818,6 +40205,7 @@ public function print_styles() * allow custom scripts from plugins. * * @since 3.9.0 + * @phpstan-return void */ public function print_scripts() { @@ -39830,6 +40218,7 @@ public function print_scripts() * @global WP_Scripts $wp_scripts * @global array $wp_registered_sidebars * @global array $wp_registered_widgets + * @phpstan-return void */ public function enqueue_scripts() { @@ -39838,6 +40227,7 @@ public function enqueue_scripts() * Renders the widget form control templates into the DOM. * * @since 3.9.0 + * @phpstan-return void */ public function output_widget_control_templates() { @@ -39847,6 +40237,7 @@ public function output_widget_control_templates() * allow custom scripts from plugins. * * @since 3.9.0 + * @phpstan-return void */ public function print_footer_scripts() { @@ -39924,6 +40315,7 @@ public function get_widget_control_parts($args) * Adds hooks for the Customizer preview. * * @since 3.9.0 + * @phpstan-return void */ public function customize_preview_init() { @@ -39971,6 +40363,7 @@ public function preview_sidebars_widgets($sidebars_widgets) * Enqueues scripts for the Customizer preview. * * @since 3.9.0 + * @phpstan-return void */ public function customize_preview_enqueue() { @@ -39980,6 +40373,7 @@ public function customize_preview_enqueue() * stylesheet can override. * * @since 3.9.0 + * @phpstan-return void */ public function print_preview_css() { @@ -39992,6 +40386,7 @@ public function print_preview_css() * * @global array $wp_registered_sidebars * @global array $wp_registered_widgets + * @phpstan-return void */ public function export_preview_data() { @@ -40002,6 +40397,7 @@ public function export_preview_data() * @since 3.9.0 * * @param array $widget Rendered widget to tally. + * @phpstan-return void */ public function tally_rendered_widgets($widget) { @@ -40206,6 +40602,7 @@ public function filter_wp_kses_allowed_data_attributes($allowed_html) * @since 4.5.0 * * @param int|string $index Index, name, or ID of the dynamic sidebar. + * @phpstan-return void */ public function start_dynamic_sidebar($index) { @@ -40218,6 +40615,7 @@ public function start_dynamic_sidebar($index) * @since 4.5.0 * * @param int|string $index Index, name, or ID of the dynamic sidebar. + * @phpstan-return void */ public function end_dynamic_sidebar($index) { @@ -40466,7 +40864,6 @@ class WP_Date_Query * @param string $default_column Optional. Default column to query against. See WP_Date_Query::validate_column() * and the {@see 'date_query_valid_columns'} filter for the list of accepted values. * Default 'post_date'. - * @phpstan-return void */ public function __construct($date_query, $default_column = 'post_date') { @@ -40898,6 +41295,7 @@ public function get_data($handle, $key) * @since 2.6.0 Moved from `WP_Scripts`. * * @param string|string[] $handles Item handle (string) or item handles (array of strings). + * @phpstan-return void */ public function remove($handles) { @@ -40914,6 +41312,7 @@ public function remove($handles) * @since 2.6.0 Moved from `WP_Scripts`. * * @param string|string[] $handles Item handle (string) or item handles (array of strings). + * @phpstan-return void */ public function enqueue($handles) { @@ -40928,6 +41327,7 @@ public function enqueue($handles) * @since 2.6.0 Moved from `WP_Scripts`. * * @param string|string[] $handles Item handle (string) or item handles (array of strings). + * @phpstan-return void */ public function dequeue($handles) { @@ -41154,6 +41554,7 @@ public static function get_filter_svg_from_preset($preset) * @since 6.3.0 * * @param WP_Block_Type $block_type Block Type. + * @phpstan-return void */ public static function register_duotone_support($block_type) { @@ -41192,6 +41593,7 @@ public static function restore_image_outer_container($block_content) * Uses the declarations saved in earlier calls to self::enqueue_block_css. * * @since 6.3.0 + * @phpstan-return void */ public static function output_block_styles() { @@ -41203,6 +41605,7 @@ public static function output_block_styles() * Uses the declarations saved in earlier calls to self::enqueue_global_styles_preset. * * @since 6.3.0 + * @phpstan-return void */ public static function output_global_styles() { @@ -41214,6 +41617,7 @@ public static function output_global_styles() * and self::enqueue_custom_filter. * * @since 6.3.0 + * @phpstan-return void */ public static function output_footer_assets() { @@ -41356,6 +41760,7 @@ public static function parse_settings($editor_id, $settings) * tinymce?: bool|array, * quicktags?: bool|array, * } $settings See _WP_Editors::parse_settings() + * @phpstan-return void */ public static function editor($content, $editor_id, $settings = array()) { @@ -41365,6 +41770,7 @@ public static function editor($content, $editor_id, $settings = array()) * * @param string $editor_id Unique editor identifier, e.g. 'content'. * @param array $set Array of editor arguments. + * @phpstan-return void */ public static function editor_settings($editor_id, $set) { @@ -41373,6 +41779,7 @@ public static function editor_settings($editor_id, $set) * @since 3.3.0 * * @param bool $default_scripts Optional. Whether default scripts should be enqueued. Default false. + * @phpstan-return void */ public static function enqueue_scripts($default_scripts = \false) { @@ -41392,6 +41799,7 @@ public static function enqueue_default_editor() * For use when the editor is going to be initialized after page load. * * @since 4.8.0 + * @phpstan-return void */ public static function print_default_editor_scripts() { @@ -41460,6 +41868,7 @@ public static function print_tinymce_scripts() * @since 3.3.0 * * @global string $tinymce_version + * @phpstan-return void */ public static function editor_js() { @@ -41586,6 +41995,7 @@ public function maybe_run_ajax_cache() * @param int $priority Optional. Used to specify the order in which the registered handlers will be tested. * Lower numbers correspond with earlier testing, and handlers with the same priority are * tested in the order in which they were added to the action. Default 10. + * @phpstan-return void */ public function register_handler($id, $regex, $callback, $priority = 10) { @@ -41597,6 +42007,7 @@ public function register_handler($id, $regex, $callback, $priority = 10) * * @param string $id The handler ID that should be removed. * @param int $priority Optional. The priority of the handler to be removed (default: 10). + * @phpstan-return void */ public function unregister_handler($id, $priority = 10) { @@ -41758,7 +42169,6 @@ class WP_Error * @param string|int $code Error code. * @param string $message Error message. * @param mixed $data Optional. Error data. Default empty string. - * @phpstan-return void */ public function __construct($code = '', $message = '', $data = '') { @@ -41839,6 +42249,7 @@ public function has_errors() * @param string|int $code Error code. * @param string $message Error message. * @param mixed $data Optional. Error data. Default empty string. + * @phpstan-return void */ public function add($code, $message, $data = '') { @@ -41851,6 +42262,7 @@ public function add($code, $message, $data = '') * * @param mixed $data Error data. * @param string|int $code Error code. + * @phpstan-return void */ public function add_data($data, $code = '') { @@ -41875,6 +42287,7 @@ public function get_all_error_data($code = '') * @since 4.1.0 * * @param string|int $code Error code. + * @phpstan-return void */ public function remove($code) { @@ -41885,6 +42298,7 @@ public function remove($code) * @since 5.6.0 * * @param WP_Error $error Error object to merge. + * @phpstan-return void */ public function merge_from(\WP_Error $error) { @@ -41895,6 +42309,7 @@ public function merge_from(\WP_Error $error) * @since 5.6.0 * * @param WP_Error $error Error object to export into. + * @phpstan-return void */ public function export_to(\WP_Error $error) { @@ -41906,6 +42321,7 @@ public function export_to(\WP_Error $error) * * @param WP_Error $from The WP_Error to copy from. * @param WP_Error $to The WP_Error to copy to. + * @phpstan-return void */ protected static function copy_errors(\WP_Error $from, \WP_Error $to) { @@ -42004,6 +42420,7 @@ protected function display_error_template($error, $handled) * * @param array $error Error information retrieved from `error_get_last()`. * @param true|WP_Error $handled Whether Recovery Mode handled the fatal error. + * @phpstan-return void */ protected function display_default_error_template($error, $handled) { @@ -42162,6 +42579,7 @@ final class WP_Hook implements \Iterator, \ArrayAccess * and functions with the same priority are executed in the order * in which they were added to the filter. * @param int $accepted_args The number of arguments the function accepts. + * @phpstan-return void */ public function add_filter($hook_name, $callback, $priority, $accepted_args) { @@ -42245,6 +42663,7 @@ public function apply_filters($value, $args) * @since 4.7.0 * * @param array $args Parameters to pass to the callback functions. + * @phpstan-return void */ public function do_action($args) { @@ -42255,6 +42674,7 @@ public function do_action($args) * @since 4.7.0 * * @param array $args Arguments to pass to the hook callbacks. Passed by reference. + * @phpstan-return void */ public function do_all_hook(&$args) { @@ -42339,6 +42759,7 @@ public function offsetGet($offset) * * @param mixed $offset The offset to assign the value to. * @param mixed $value The value to set. + * @phpstan-return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -42352,6 +42773,7 @@ public function offsetSet($offset, $value) * @link https://www.php.net/manual/en/arrayaccess.offsetunset.php * * @param mixed $offset The offset to unset. + * @phpstan-return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) @@ -42415,6 +42837,7 @@ public function valid() * @since 4.7.0 * * @link https://www.php.net/manual/en/iterator.rewind.php + * @phpstan-return void */ #[\ReturnTypeWillChange] public function rewind() @@ -42522,7 +42945,6 @@ class WP_Http_Cookie * port?: int|string, * host_only?: bool, * } $data - * @phpstan-return void */ public function __construct($data, $requested_url = '') { @@ -43009,6 +43431,7 @@ public function get_headers() * @since 4.4.0 * * @param array $headers Map of header name to header value. + * @phpstan-return void */ public function set_headers($headers) { @@ -43022,6 +43445,7 @@ public function set_headers($headers) * @param string $value Header value. * @param bool $replace Optional. Whether to replace an existing header of the same name. * Default true. + * @phpstan-return void */ public function header($key, $value, $replace = \true) { @@ -43042,6 +43466,7 @@ public function get_status() * @since 4.4.0 * * @param int $code HTTP status. + * @phpstan-return void */ public function set_status($code) { @@ -43062,6 +43487,7 @@ public function get_data() * @since 4.4.0 * * @param mixed $data Response data. + * @phpstan-return void */ public function set_data($data) { @@ -43140,6 +43566,7 @@ public function get_headers() * @since 4.6.0 * * @param array $headers Map of header name to header value. + * @phpstan-return void */ public function set_headers($headers) { @@ -43153,6 +43580,7 @@ public function set_headers($headers) * @param string $value Header value. * @param bool $replace Optional. Whether to replace an existing header of the same name. * Default true. + * @phpstan-return void */ public function header($key, $value, $replace = \true) { @@ -43173,6 +43601,7 @@ public function get_status() * @since 4.6.0 * * @param int $code HTTP status. + * @phpstan-return void */ public function set_status($code) { @@ -43193,6 +43622,7 @@ public function get_data() * @since 4.6.0 * * @param string $data Response data. + * @phpstan-return void */ public function set_data($data) { @@ -43492,6 +43922,7 @@ public static function normalize_cookies($cookies) * @param string|array $data Body to send with the request. * @param array $options Redirect request options. * @param WpOrg\Requests\Response $original Response object. + * @phpstan-return void */ public static function browser_redirect_compatibility($location, $headers, $data, &$options, $original) { @@ -43503,6 +43934,7 @@ public static function browser_redirect_compatibility($location, $headers, $data * * @throws WpOrg\Requests\Exception On unsuccessful URL validation. * @param string $location URL to redirect to. + * @phpstan-return void */ public static function validate_redirects($location) { @@ -43634,6 +44066,7 @@ public static function processHeaders($headers, $url = '') * @since 2.8.0 * * @param array $r Full array of args passed into ::request() + * @phpstan-return void */ public static function buildCookieHeader(&$r) { @@ -44888,6 +45321,7 @@ public function __construct() * to change the locale on the fly. * * @since 4.7.0 + * @phpstan-return void */ public function init() { @@ -45101,6 +45535,7 @@ public function __construct() * @since 2.1.0 * * @global string $text_direction + * @phpstan-return void */ public function init() { @@ -45250,6 +45685,7 @@ public function is_rtl() * otherwise be added to the admin POT. * * @since 3.6.0 + * @phpstan-return void */ public function _strings_for_pot() { @@ -45477,7 +45913,6 @@ class WP_Meta_Query * Default is 'CHAR'. * } * } - * @phpstan-return void */ public function __construct($meta_query = array()) { @@ -45515,6 +45950,7 @@ protected function is_first_order_clause($query) * @since 3.2.0 * * @param array $qv The query variables. + * @phpstan-return void */ public function parse_query_vars($qv) { @@ -45983,6 +46419,7 @@ public function __construct($query = '') * search?: string, * update_network_cache?: bool, * } $query See WP_Network_Query::__construct() + * @phpstan-return void */ public function parse_query($query = '') { @@ -46169,6 +46606,7 @@ public function __isset($key) * * @param string $key Property to set. * @param mixed $value Value to assign to the property. + * @phpstan-return void */ public function __set($key, $value) { @@ -46258,6 +46696,7 @@ public function __get($name) * * @param string $name Property to set. * @param mixed $value Property value. + * @phpstan-return void */ public function __set($name, $value) { @@ -46279,6 +46718,7 @@ public function __isset($name) * @since 4.0.0 * * @param string $name Property to unset. + * @phpstan-return void */ public function __unset($name) { @@ -46516,6 +46956,7 @@ public function flush_group($group) * @since 3.0.0 * * @param string|string[] $groups List of groups that are global. + * @phpstan-return void */ public function add_global_groups($groups) { @@ -46528,6 +46969,7 @@ public function add_global_groups($groups) * @since 3.5.0 * * @param int $blog_id Blog ID. + * @phpstan-return void */ public function switch_to_blog($blog_id) { @@ -46550,6 +46992,7 @@ public function reset() * key and the data. * * @since 2.0.0 + * @phpstan-return void */ public function stats() { @@ -46570,6 +47013,7 @@ final class WP_oEmbed_Controller * Register the oEmbed REST API route. * * @since 4.4.0 + * @phpstan-return void */ public function register_routes() { @@ -46697,6 +47141,7 @@ public function get_provider($url, $args = '') * @param string $provider The URL to the oEmbed provider.. * @param bool $regex Optional. Whether the $format parameter is in a regex format. * Default false. + * @phpstan-return void */ public static function _add_provider_early($format, $provider, $regex = \false) { @@ -46715,6 +47160,7 @@ public static function _add_provider_early($format, $provider, $regex = \false) * * @param string $format The format of URL that this provider can handle. You can use * asterisks as wildcards. + * @phpstan-return void */ public static function _remove_provider_early($format) { @@ -47072,6 +47518,7 @@ class WP_Plugin_Dependencies * Initializes by fetching plugin header and plugin API data. * * @since 6.5.0 + * @phpstan-return void */ public static function initialize() { @@ -47213,6 +47660,7 @@ public static function get_dependency_data($slug) * Displays an admin notice if dependencies are not installed. * * @since 6.5.0 + * @phpstan-return void */ public static function display_admin_notice_for_unmet_dependencies() { @@ -47221,6 +47669,7 @@ public static function display_admin_notice_for_unmet_dependencies() * Displays an admin notice if circular dependencies are installed. * * @since 6.5.0 + * @phpstan-return void */ public static function display_admin_notice_for_circular_dependencies() { @@ -47247,6 +47696,7 @@ protected static function get_plugins() * Reads and stores dependency slugs from a plugin's 'Requires Plugins' header. * * @since 6.5.0 + * @phpstan-return void */ protected static function read_dependencies_from_plugin_headers() { @@ -47800,6 +48250,7 @@ public function __construct($post_type, $args = array()) * @since 4.6.0 * * @param array|string $args Array or string of arguments for registering a post type. + * @phpstan-return void */ public function set_props($args) { @@ -47808,6 +48259,7 @@ public function set_props($args) * Sets the features support for the post type. * * @since 4.6.0 + * @phpstan-return void */ public function add_supports() { @@ -47819,6 +48271,7 @@ public function add_supports() * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * @global WP $wp Current WordPress environment instance. + * @phpstan-return void */ public function add_rewrite_rules() { @@ -47827,6 +48280,7 @@ public function add_rewrite_rules() * Registers the post type meta box if a custom callback was specified. * * @since 4.6.0 + * @phpstan-return void */ public function register_meta_boxes() { @@ -47835,6 +48289,7 @@ public function register_meta_boxes() * Adds the future post hook action for the post type. * * @since 4.6.0 + * @phpstan-return void */ public function add_hooks() { @@ -47843,6 +48298,7 @@ public function add_hooks() * Registers the taxonomies for the post type. * * @since 4.6.0 + * @phpstan-return void */ public function register_taxonomies() { @@ -47853,6 +48309,7 @@ public function register_taxonomies() * @since 4.6.0 * * @global array $_wp_post_type_features Post type features. + * @phpstan-return void */ public function remove_supports() { @@ -47865,6 +48322,7 @@ public function remove_supports() * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * @global WP $wp Current WordPress environment instance. * @global array $post_type_meta_caps Used to remove meta capabilities. + * @phpstan-return void */ public function remove_rewrite_rules() { @@ -47873,6 +48331,7 @@ public function remove_rewrite_rules() * Unregisters the post type meta box if a custom callback was specified. * * @since 4.6.0 + * @phpstan-return void */ public function unregister_meta_boxes() { @@ -47881,6 +48340,7 @@ public function unregister_meta_boxes() * Removes the post type from all taxonomies. * * @since 4.6.0 + * @phpstan-return void */ public function unregister_taxonomies() { @@ -47889,6 +48349,7 @@ public function unregister_taxonomies() * Removes the future post hook action for the post type. * * @since 4.6.0 + * @phpstan-return void */ public function remove_hooks() { @@ -47946,6 +48407,7 @@ public static function get_default_labels() * Resets the cache for the default labels. * * @since 6.0.0 + * @phpstan-return void */ public static function reset_default_labels() { @@ -48598,6 +49060,7 @@ class WP_Query * Initiates object properties and sets default values. * * @since 1.5.0 + * @phpstan-return void */ public function init() { @@ -48606,6 +49069,7 @@ public function init() * Reparses the query vars. * * @since 1.5.0 + * @phpstan-return void */ public function parse_query_vars() { @@ -48855,6 +49319,7 @@ public function fill_query_vars($query_vars) * w?: int, * year?: int, * } $query + * @phpstan-return void */ public function parse_query($query = '') { @@ -48867,6 +49332,7 @@ public function parse_query($query = '') * @since 3.1.0 * * @param array $query_vars The query variables. Passed by reference. + * @phpstan-return void */ public function parse_tax_query(&$query_vars) { @@ -48950,6 +49416,7 @@ protected function parse_order($order) * Sets the 404 property and saves whether query is feed. * * @since 2.0.0 + * @phpstan-return void */ public function set_404() { @@ -48975,6 +49442,7 @@ public function get($query_var, $default_value = '') * * @param string $query_var Query variable key. * @param mixed $value Query variable value. + * @phpstan-return void */ public function set($query_var, $value) { @@ -49034,6 +49502,7 @@ public function have_posts() * Rewinds the posts and resets post index. * * @since 1.5.0 + * @phpstan-return void */ public function rewind_posts() { @@ -49054,6 +49523,7 @@ public function next_comment() * @since 2.2.0 * * @global WP_Comment $comment Global comment object. + * @phpstan-return void */ public function the_comment() { @@ -49074,6 +49544,7 @@ public function have_comments() * Rewinds the comments, resets the comment index and comment to first. * * @since 2.2.0 + * @phpstan-return void */ public function rewind_comments() { @@ -49618,6 +50089,7 @@ protected function generate_cache_key(array $args, $sql) * @since 3.7.0 * * @global WP_Post $post Global post object. + * @phpstan-return void */ public function reset_postdata() { @@ -49673,6 +50145,7 @@ public function is_cookie_set() * This must be immediately followed by exiting the request. * * @since 5.2.0 + * @phpstan-return void */ public function set_cookie() { @@ -49681,6 +50154,7 @@ public function set_cookie() * Clears the recovery mode cookie. * * @since 5.2.0 + * @phpstan-return void */ public function clear_cookie() { @@ -49815,6 +50289,7 @@ public function validate_recovery_mode_key($token, $key, $ttl) * @since 5.2.0 * * @param int $ttl Time in seconds for the keys to be valid for. + * @phpstan-return void */ public function clean_expired_keys($ttl) { @@ -49967,6 +50442,7 @@ public function handle_exit_recovery_mode() * Executes on a daily cron schedule. * * @since 5.2.0 + * @phpstan-return void */ public function clean_expired_keys() { @@ -49975,6 +50451,7 @@ public function clean_expired_keys() * Handles checking for the recovery mode cookie and validating it. * * @since 5.2.0 + * @phpstan-return void */ protected function handle_cookie() { @@ -50592,6 +51069,7 @@ public function get_comment_feed_permastruct() * @param string $tag Name of the rewrite tag to add or update. * @param string $regex Regular expression to substitute the tag for in rewrite rules. * @param string $query String to append to the rewritten query. Must end in '='. + * @phpstan-return void */ public function add_rewrite_tag($tag, $regex, $query) { @@ -50606,6 +51084,7 @@ public function add_rewrite_tag($tag, $regex, $query) * @see WP_Rewrite::$queryreplace * * @param string $tag Name of the rewrite tag to remove. + * @phpstan-return void */ public function remove_rewrite_tag($tag) { @@ -50753,6 +51232,7 @@ public function iis7_url_rewrite_rules($add_parent_tags = \false) * @param string $after Optional. Priority of the new rule. Accepts 'top' * or 'bottom'. Default 'bottom'. * @phpstan-param 'top'|'bottom' $after + * @phpstan-return void */ public function add_rule($regex, $query, $after = 'bottom') { @@ -50764,6 +51244,7 @@ public function add_rule($regex, $query, $after = 'bottom') * * @param string $regex Regular expression to match request against. * @param string $query The corresponding query vars for this rewrite rule. + * @phpstan-return void */ public function add_external_rule($regex, $query) { @@ -50800,6 +51281,7 @@ public function add_external_rule($regex, $query) * @param string|bool $query_var Optional. Name of the corresponding query variable. Pass `false` to * skip registering a query_var for this endpoint. Defaults to the * value of `$name`. + * @phpstan-return void */ public function add_endpoint($name, $places, $query_var = \true) { @@ -50864,6 +51346,7 @@ public function add_endpoint($name, $places, $query_var = \true) * walk_dirs?: bool, * endpoints?: bool, * } $args + * @phpstan-return void */ public function add_permastruct($name, $struct, $args = array()) { @@ -50874,6 +51357,7 @@ public function add_permastruct($name, $struct, $args = array()) * @since 4.5.0 * * @param string $name Name for permalink structure. + * @phpstan-return void */ public function remove_permastruct($name) { @@ -50900,6 +51384,7 @@ public function flush_rules($hard = \true) * '%tag%', or '%author%'. * * @since 1.5.0 + * @phpstan-return void */ public function init() { @@ -50917,6 +51402,7 @@ public function init() * @since 1.5.0 * * @param string $permalink_structure Permalink structure. + * @phpstan-return void */ public function set_permalink_structure($permalink_structure) { @@ -50931,6 +51417,7 @@ public function set_permalink_structure($permalink_structure) * @since 1.5.0 * * @param string $category_base Category permalink structure base. + * @phpstan-return void */ public function set_category_base($category_base) { @@ -50945,6 +51432,7 @@ public function set_category_base($category_base) * @since 2.3.0 * * @param string $tag_base Tag permalink structure base. + * @phpstan-return void */ public function set_tag_base($tag_base) { @@ -51003,6 +51491,7 @@ public function __construct($role, $capabilities) * * @param string $cap Capability name. * @param bool $grant Whether role has capability privilege. + * @phpstan-return void */ public function add_cap($cap, $grant = \true) { @@ -51013,6 +51502,7 @@ public function add_cap($cap, $grant = \true) * @since 2.0.0 * * @param string $cap Capability name. + * @phpstan-return void */ public function remove_cap($cap) { @@ -51443,6 +51933,7 @@ public function enqueue(string $id, string $src = '', array $deps = array(), $ve * @since 6.5.0 * * @param string $id The identifier of the script module. + * @phpstan-return void */ public function dequeue(string $id) { @@ -51453,6 +51944,7 @@ public function dequeue(string $id) * @since 6.5.0 * * @param string $id The identifier of the script module. + * @phpstan-return void */ public function deregister(string $id) { @@ -51466,6 +51958,7 @@ public function deregister(string $id) * footer. * * @since 6.5.0 + * @phpstan-return void */ public function add_hooks() { @@ -51476,6 +51969,7 @@ public function add_hooks() * This is only used in block themes. * * @since 6.9.0 + * @phpstan-return void */ public function print_head_enqueued_script_modules() { @@ -51484,6 +51978,7 @@ public function print_head_enqueued_script_modules() * Prints the enqueued script modules in footer. * * @since 6.5.0 + * @phpstan-return void */ public function print_enqueued_script_modules() { @@ -51495,6 +51990,7 @@ public function print_enqueued_script_modules() * If a script module is marked for enqueue, it will not be preloaded. * * @since 6.5.0 + * @phpstan-return void */ public function print_script_module_preloads() { @@ -51503,6 +51999,7 @@ public function print_script_module_preloads() * Prints the import map using a script tag with a type="importmap" attribute. * * @since 6.5.0 + * @phpstan-return void */ public function print_import_map() { @@ -51648,6 +52145,7 @@ public function __construct() * Initialize the class. * * @since 3.4.0 + * @phpstan-return void */ public function init() { @@ -51904,6 +52402,7 @@ public function add_data($handle, $key, $value) * Resets class properties. * * @since 2.8.0 + * @phpstan-return void */ public function reset() { @@ -52011,6 +52510,7 @@ final public function create($expiration) * * @param string $token Session token to update. * @param array $session Session information. + * @phpstan-return void */ final public function update($token, $session) { @@ -52021,6 +52521,7 @@ final public function update($token, $session) * @since 4.0.0 * * @param string $token Session token to destroy. + * @phpstan-return void */ final public function destroy($token) { @@ -52031,6 +52532,7 @@ final public function destroy($token) * @since 4.0.0 * * @param string $token_to_keep Session token to keep. + * @phpstan-return void */ final public function destroy_others($token_to_keep) { @@ -52050,6 +52552,7 @@ final protected function is_still_valid($session) * Destroys all sessions for a user. * * @since 4.0.0 + * @phpstan-return void */ final public function destroy_all() { @@ -52058,6 +52561,7 @@ final public function destroy_all() * Destroys all sessions for all users. * * @since 4.0.0 + * @phpstan-return void */ final public static function destroy_all_for_all_users() { @@ -52444,6 +52948,7 @@ public function __construct($query = '') * meta_type_key?: string, * meta_query?: array, * } $query See WP_Site_Query::__construct() + * @phpstan-return void */ public function parse_query($query = '') { @@ -52723,6 +53228,7 @@ public function __isset($key) * * @param string $key Property to set. * @param mixed $value Value to assign to the property. + * @phpstan-return void */ public function __set($key, $value) { @@ -53013,6 +53519,7 @@ public function do_footer_items() * Resets class properties. * * @since 3.3.0 + * @phpstan-return void */ public function reset() { @@ -53589,6 +54096,7 @@ public function __construct($taxonomy, $object_type, $args = array()) * * @param string|string[] $object_type Name or array of names of the object types for the taxonomy. * @param array|string $args Array or query string of arguments for registering a taxonomy. + * @phpstan-return void */ public function set_props($object_type, $args) { @@ -53599,6 +54107,7 @@ public function set_props($object_type, $args) * @since 4.7.0 * * @global WP $wp Current WordPress environment instance. + * @phpstan-return void */ public function add_rewrite_rules() { @@ -53609,6 +54118,7 @@ public function add_rewrite_rules() * @since 4.7.0 * * @global WP $wp Current WordPress environment instance. + * @phpstan-return void */ public function remove_rewrite_rules() { @@ -53617,6 +54127,7 @@ public function remove_rewrite_rules() * Registers the ajax callback for the meta box. * * @since 4.7.0 + * @phpstan-return void */ public function add_hooks() { @@ -53625,6 +54136,7 @@ public function add_hooks() * Removes the ajax callback for the meta box. * * @since 4.7.0 + * @phpstan-return void */ public function remove_hooks() { @@ -53656,6 +54168,7 @@ public static function get_default_labels() * Resets the cache for the default labels. * * @since 6.0.0 + * @phpstan-return void */ public static function reset_default_labels() { @@ -53912,6 +54425,7 @@ public function __construct($query = '') * meta_type_key?: string, * meta_query?: array, * } $query See WP_Term_Query::__construct() + * @phpstan-return void */ public function parse_query($query = '') { @@ -54175,6 +54689,7 @@ public function __construct($term) * * @param string $filter Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'rss', or 'raw'. * @phpstan-param 'edit'|'db'|'display'|'attribute'|'js'|'rss'|'raw' $filter + * @phpstan-return void */ public function filter($filter) { @@ -54581,6 +55096,7 @@ class WP_Textdomain_Registry * to invalidate MO files caches. * * @since 6.5.0 + * @phpstan-return void */ public function init() { @@ -54624,6 +55140,7 @@ public function has($domain) * @param string $domain Text domain. * @param string $locale Locale. * @param string|false $path Language directory path or false if there is none available. + * @phpstan-return void */ public function set($domain, $locale, $path) { @@ -54637,6 +55154,7 @@ public function set($domain, $locale, $path) * * @param string $domain Text domain. * @param string $path Language directory path. + * @phpstan-return void */ public function set_custom_path($domain, $path) { @@ -55044,6 +55562,7 @@ protected static function get_file_path_from_theme($file_name, $template = \fals * and `$i18n_schema` variables to reset. * @since 6.1.0 Added the `$blocks` and `$blocks_cache` variables * to reset. + * @phpstan-return void */ public static function clean_cached_data() { @@ -55510,6 +56029,7 @@ protected static function maybe_opt_in_into_settings($theme_json) * @since 5.9.0 * * @param array $context The context to which the settings belong. + * @phpstan-return void */ protected static function do_opt_in_into_settings(&$context) { @@ -56203,6 +56723,7 @@ protected static function get_metadata_boolean($data, $path, $default_value = \f * @since 6.7.0 Replace background image objects during merge. * * @param WP_Theme_JSON $incoming Data to merge. + * @phpstan-return void */ public function merge($incoming) { @@ -56529,7 +57050,6 @@ final class WP_Theme implements \ArrayAccess * @param string $theme_dir Directory of the theme within the theme_root. * @param string $theme_root Theme root. * @param WP_Theme|null $_child If this theme is a parent theme, the child may be passed for validation purposes. - * @phpstan-return void */ public function __construct($theme_dir, $theme_root, $_child = \null) { @@ -56659,6 +57179,7 @@ public function parent() * Perform reinitialization tasks. * * Prevents a callback from being injected during unserialization of an object. + * @phpstan-return void */ public function __wakeup() { @@ -56667,6 +57188,7 @@ public function __wakeup() * Clears the cache for the theme. * * @since 3.4.0 + * @phpstan-return void */ public function cache_delete() { @@ -57020,6 +57542,7 @@ public function get_block_patterns() * * @since 6.4.0 * @since 6.6.0 Uses transients to cache regardless of site environment. + * @phpstan-return void */ public function delete_pattern_cache() { @@ -57052,6 +57575,7 @@ public static function network_disable_theme($stylesheets) * @since 3.4.0 * * @param WP_Theme[] $themes Array of theme objects to sort (passed by reference). + * @phpstan-return void */ public static function sort_by_name(&$themes) { @@ -57476,6 +58000,7 @@ protected function get_session($verifier) * * @param string $verifier Verifier for the session to update. * @param array $session Optional. Session. Omitting this argument destroys the session. + * @phpstan-return void */ protected function update_session($verifier, $session = \null) { @@ -57486,6 +58011,7 @@ protected function update_session($verifier, $session = \null) * @since 4.0.0 * * @param array $sessions Sessions. + * @phpstan-return void */ protected function update_sessions($sessions) { @@ -57496,6 +58022,7 @@ protected function update_sessions($sessions) * @since 4.0.0 * * @param string $verifier Verifier of the session to keep. + * @phpstan-return void */ protected function destroy_other_sessions($verifier) { @@ -57504,6 +58031,7 @@ protected function destroy_other_sessions($verifier) * Destroys all session tokens for the user. * * @since 4.0.0 + * @phpstan-return void */ protected function destroy_all_sessions() { @@ -57512,6 +58040,7 @@ protected function destroy_all_sessions() * Destroys all sessions for all users. * * @since 4.0.0 + * @phpstan-return void */ public static function drop_sessions() { @@ -57782,6 +58311,7 @@ public static function fill_query_vars($args) * login__not_in?: string[], * cache_results?: bool, * } $query + * @phpstan-return void */ public function prepare_query($query = array()) { @@ -57815,6 +58345,7 @@ public function get($query_var) * * @param string $query_var Query variable key. * @param mixed $value Query variable value. + * @phpstan-return void */ public function set($query_var, $value) { @@ -58164,7 +58695,6 @@ class WP_User * @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB. * @param string $name Optional. User's username * @param int $site_id Optional Site ID, defaults to current site. - * @phpstan-return void */ public function __construct($id = 0, $name = '', $site_id = 0) { @@ -58176,6 +58706,7 @@ public function __construct($id = 0, $name = '', $site_id = 0) * * @param object $data User DB row object. * @param int $site_id Optional. The site ID to initialize for. + * @phpstan-return void */ public function init($data, $site_id = 0) { @@ -58239,6 +58770,7 @@ public function __set($key, $value) * @since 4.4.0 * * @param string $key User meta key to unset. + * @phpstan-return void */ public function __unset($key) { @@ -58405,6 +58937,7 @@ public function level_reduction($max, $item) * @since 2.0.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ public function update_user_level_from_caps() { @@ -58416,6 +58949,7 @@ public function update_user_level_from_caps() * * @param string $cap Capability name. * @param bool $grant Whether to grant capability to user. + * @phpstan-return void */ public function add_cap($cap, $grant = \true) { @@ -58437,6 +58971,7 @@ public function remove_cap($cap) * @since 2.1.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ public function remove_all_caps() { @@ -58503,6 +59038,7 @@ public function for_blog($blog_id = 0) * @global wpdb $wpdb WordPress database abstraction object. * * @param int $site_id Site ID to initialize user capabilities for. Default is the current site. + * @phpstan-return void */ public function for_site($site_id = 0) { @@ -58563,6 +59099,7 @@ public function WP_Widget_Factory() * * @param string|WP_Widget $widget Either the name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass. * @phpstan-param class-string<\WP_Widget>|\WP_Widget $widget + * @phpstan-return void */ public function register($widget) { @@ -58576,6 +59113,7 @@ public function register($widget) * * @param string|WP_Widget $widget Either the name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass. * @phpstan-param class-string<\WP_Widget>|\WP_Widget $widget + * @phpstan-return void */ public function unregister($widget) { @@ -58586,6 +59124,7 @@ public function unregister($widget) * @since 2.8.0 * * @global array $wp_registered_widgets + * @phpstan-return void */ public function _register_widgets() { @@ -58705,6 +59244,7 @@ class WP_Widget * @param array $instance The settings for the particular instance of the widget. * @phpstan-param T $instance * @phpstan-param array{name:string,id:string,description:string,class:string,before_widget:string,after_widget:string,before_title:string,after_title:string,before_sidebar:string,after_sidebar:string,show_in_rest:boolean,widget_id:string,widget_name:string} $args + * @phpstan-return void */ public function widget($args, $instance) { @@ -58831,6 +59371,7 @@ public function get_field_id($field_name) * Register all widget instances of this widget class. * * @since 2.8.0 + * @phpstan-return void */ public function _register() { @@ -58842,6 +59383,7 @@ public function _register() * * @param int $number The unique order number of this widget instance compared to other * instances of the same class. + * @phpstan-return void */ public function _set($number) { @@ -58959,6 +59501,7 @@ public function form_callback($widget_args = 1) * * @param int $number Optional. The unique order number of this widget instance * compared to other instances of the same class. Default -1. + * @phpstan-return void */ public function _register_one($number = -1) { @@ -58969,6 +59512,7 @@ public function _register_one($number = -1) * @since 2.8.0 * * @param array $settings Multi-dimensional array of widget instance settings. + * @phpstan-return void */ public function save_settings($settings) { @@ -59053,6 +59597,7 @@ public function __call($name, $arguments) * Serves the XML-RPC request. * * @since 2.9.0 + * @phpstan-return void */ public function serve_request() { @@ -59143,6 +59688,7 @@ public function escape(&$data) * * @param IXR_Error|string $error Error code or an error object. * @param false $message Error message. Optional. + * @phpstan-return void */ public function error($error, $message = \false) { @@ -59165,6 +59711,7 @@ public function get_custom_fields($post_id) * * @param int $post_id Post ID. * @param array $fields Custom fields. + * @phpstan-return void */ public function set_custom_fields($post_id, $fields) { @@ -59187,6 +59734,7 @@ public function get_term_custom_fields($term_id) * * @param int $term_id Term ID. * @param array $fields Custom fields. + * @phpstan-return void */ public function set_term_custom_fields($term_id, $fields) { @@ -59197,6 +59745,7 @@ public function set_term_custom_fields($term_id, $fields) * Passes property through {@see 'xmlrpc_blog_options'} filter. * * @since 2.6.0 + * @phpstan-return void */ public function initialise_blog_option_info() { @@ -61010,6 +61559,7 @@ public function mw_newPost($args) * * @param int $post_id Post ID. * @param array $enclosure Enclosure data. + * @phpstan-return void */ public function add_enclosure_if_new($post_id, $enclosure) { @@ -61023,6 +61573,7 @@ public function add_enclosure_if_new($post_id, $enclosure) * * @param int $post_id Post ID. * @param string $post_content Post Content for attachment. + * @phpstan-return void */ public function attach_uploads($post_id, $post_content) { @@ -61426,6 +61977,7 @@ class WP * @since 2.1.0 * * @param string $qv Query variable name. + * @phpstan-return void */ public function add_query_var($qv) { @@ -61436,6 +61988,7 @@ public function add_query_var($qv) * @since 4.5.0 * * @param string $name Query variable name. + * @phpstan-return void */ public function remove_query_var($name) { @@ -61447,6 +62000,7 @@ public function remove_query_var($name) * * @param string $key Query variable name. * @param mixed $value Query variable value. + * @phpstan-return void */ public function set_query_var($key, $value) { @@ -61479,6 +62033,7 @@ public function parse_request($extra_query_vars = '') * @since 6.1.0 Runs after posts have been queried. * * @global WP_Query $wp_query WordPress Query object. + * @phpstan-return void */ public function send_headers() { @@ -61490,6 +62045,7 @@ public function send_headers() * use the {@see 'request'} filter instead. * * @since 2.0.0 + * @phpstan-return void */ public function build_query_string() { @@ -61511,6 +62067,7 @@ public function build_query_string() * @global int $more Only set, if single page or post. * @global int $single If single page or post. Only set, if single page or post. * @global WP_User $authordata Only set, if author archive. + * @phpstan-return void */ public function register_globals() { @@ -61519,6 +62076,7 @@ public function register_globals() * Set up the current user. * * @since 2.0.0 + * @phpstan-return void */ public function init() { @@ -61529,6 +62087,7 @@ public function init() * @since 2.0.0 * * @global WP_Query $wp_the_query WordPress Query object. + * @phpstan-return void */ public function query_posts() { @@ -61564,6 +62123,7 @@ public function handle_404() * @since 2.0.0 * * @param string|array $query_args Passed to parse_request(). + * @phpstan-return void */ public function main($query_args = '') { @@ -62127,7 +62687,6 @@ class wpdb * @param string $dbpassword Database password. * @param string $dbname Database name. * @param string $dbhost Database host. - * @phpstan-return void */ public function __construct( $dbuser, @@ -62178,6 +62737,7 @@ public function __isset($name) * @since 3.5.0 * * @param string $name The private member to unset. + * @phpstan-return void */ public function __unset($name) { @@ -62186,6 +62746,7 @@ public function __unset($name) * Sets $this->charset and $this->collate. * * @since 3.1.0 + * @phpstan-return void */ public function init_charset() { @@ -62221,6 +62782,7 @@ public function determine_charset($charset, $collate) * @param mysqli $dbh The connection returned by `mysqli_connect()`. * @param string $charset Optional. The character set. Default null. * @param string $collate Optional. The collation. Default null. + * @phpstan-return void */ public function set_charset($dbh, $charset = \null, $collate = \null) { @@ -62320,6 +62882,7 @@ public function tables($scope = 'all', $prefix = \true, $blog_id = 0) * @param string $db Database name. * @param mysqli $dbh Optional. Database connection. * Defaults to the current database handle. + * @phpstan-return void */ public function select($db, $dbh = \null) { @@ -62390,6 +62953,7 @@ public function escape($data) * @since 2.3.0 * * @param string $data String to escape. + * @phpstan-return void */ public function escape_by_ref(&$data) { @@ -62652,6 +63216,7 @@ public function query($query) * @param string $query_callstack Comma-separated list of the calling functions. * @param float $query_start Unix timestamp of the time at the start of the query. * @param array $query_data Custom query data. + * @phpstan-return void */ public function log_query($query, $query_time, $query_callstack, $query_start, $query_data) { @@ -63498,6 +64063,7 @@ public function __construct($manager, $id, $args = array()) * * @since 3.4.0 * @since 4.2.0 Moved from WP_Customize_Upload_Control. + * @phpstan-return void */ public function enqueue() { @@ -63509,6 +64075,7 @@ public function enqueue() * @since 4.2.0 Moved from WP_Customize_Upload_Control. * * @see WP_Customize_Control::to_json() + * @phpstan-return void */ public function to_json() { @@ -63529,6 +64096,7 @@ public function render_content() * * @since 4.1.0 * @since 4.2.0 Moved from WP_Customize_Upload_Control. + * @phpstan-return void */ public function content_template() { @@ -63585,6 +64153,7 @@ class WP_Customize_Upload_Control extends \WP_Customize_Media_Control * @since 3.4.0 * * @uses WP_Customize_Media_Control::to_json() + * @phpstan-return void */ public function to_json() { @@ -63682,6 +64251,7 @@ public function __construct($manager) * Enqueue control related scripts/styles. * * @since 4.1.0 + * @phpstan-return void */ public function enqueue() { @@ -63707,6 +64277,7 @@ final class WP_Customize_Background_Image_Setting extends \WP_Customize_Setting * @since 3.4.0 * * @param mixed $value The value to update. Not used. + * @phpstan-return void */ public function update($value) { @@ -63740,6 +64311,7 @@ public function render_content() * Render a JS template for the content of the position control. * * @since 4.7.0 + * @phpstan-return void */ public function content_template() { @@ -63780,6 +64352,7 @@ class WP_Customize_Code_Editor_Control extends \WP_Customize_Control * Enqueue control related scripts/styles. * * @since 4.9.0 + * @phpstan-return void */ public function enqueue() { @@ -63808,6 +64381,7 @@ public function render_content() * Render a JS template for control display. * * @since 4.9.0 + * @phpstan-return void */ public function content_template() { @@ -63879,6 +64453,7 @@ public function __construct($manager, $id, $args = array()) * Enqueue scripts/styles for the color picker. * * @since 3.4.0 + * @phpstan-return void */ public function enqueue() { @@ -63888,6 +64463,7 @@ public function enqueue() * * @since 3.4.0 * @uses WP_Customize_Control::to_json() + * @phpstan-return void */ public function to_json() { @@ -63904,6 +64480,7 @@ public function render_content() * Render a JS template for the content of the color picker control. * * @since 4.1.0 + * @phpstan-return void */ public function content_template() { @@ -63957,6 +64534,7 @@ class WP_Customize_Cropped_Image_Control extends \WP_Customize_Image_Control * Enqueue control related scripts/styles. * * @since 4.3.0 + * @phpstan-return void */ public function enqueue() { @@ -63967,6 +64545,7 @@ public function enqueue() * @since 4.3.0 * * @see WP_Customize_Control::to_json() + * @phpstan-return void */ public function to_json() { @@ -64164,6 +64743,7 @@ public function json() * Renders a JS template for the content of date time control. * * @since 4.9.0 + * @phpstan-return void */ public function content_template() { @@ -64280,6 +64860,7 @@ public function __construct($manager) { } /** + * @phpstan-return void */ public function enqueue() { @@ -64292,6 +64873,7 @@ public function prepare_control() { } /** + * @phpstan-return void */ public function print_header_image_template() { @@ -64303,6 +64885,7 @@ public function get_current_image_src() { } /** + * @phpstan-return void */ public function render_content() { @@ -64332,6 +64915,7 @@ final class WP_Customize_Header_Image_Setting extends \WP_Customize_Setting * @global Custom_Image_Header $custom_image_header * * @param mixed $value The value to update. + * @phpstan-return void */ public function update($value) { @@ -64365,6 +64949,7 @@ protected function render_content() * Render the Underscore template for this control. * * @since 4.3.0 + * @phpstan-return void */ protected function content_template() { @@ -64398,6 +64983,7 @@ public function render_content() * JS/Underscore template for the control UI. * * @since 4.3.0 + * @phpstan-return void */ public function content_template() { @@ -64482,6 +65068,7 @@ public function render_content() * JS/Underscore template for the control UI. * * @since 4.3.0 + * @phpstan-return void */ public function content_template() { @@ -64653,6 +65240,7 @@ public function __construct(\WP_Customize_Manager $manager, $id, array $args = a * * @param int $menu_id The term ID for the menu. * @param int $menu_item_id The post ID for the menu item. + * @phpstan-return void */ public function flush_cached_value($menu_id, $menu_item_id) { @@ -64800,7 +65388,6 @@ public function sanitize($value) * entirely. See WP_Customize_Nav_Menu_Item_Setting::$default for what the value * should consist of. * @return null|void - * @phpstan-return void */ protected function update($value) { @@ -64850,6 +65437,7 @@ class WP_Customize_Nav_Menu_Location_Control extends \WP_Customize_Control * @since 4.3.0 * * @see WP_Customize_Control::to_json() + * @phpstan-return void */ public function to_json() { @@ -64893,6 +65481,7 @@ public function render_content() * JS/Underscore template for the control UI. * * @since 4.9.0 + * @phpstan-return void */ public function content_template() { @@ -64926,6 +65515,7 @@ protected function render_content() * Render the Underscore template for this control. * * @since 4.3.0 + * @phpstan-return void */ protected function content_template() { @@ -65219,7 +65809,6 @@ public function sanitize($value) * parent?: int, * auto_add?: bool, * } $value - * @phpstan-return void */ protected function update($value) { @@ -65276,6 +65865,7 @@ class WP_Customize_Nav_Menus_Panel extends \WP_Customize_Panel * Render screen options for Menus. * * @since 4.3.0 + * @phpstan-return void */ public function render_screen_options() { @@ -65300,6 +65890,7 @@ public function wp_nav_menu_manage_columns() * @since 4.3.0 * * @see WP_Customize_Panel::print_template() + * @phpstan-return void */ protected function content_template() { @@ -65728,6 +66319,7 @@ public function get_partial($id) * @since 4.5.0 * * @param string $id Customize Partial ID. + * @phpstan-return void */ public function remove_partial($id) { @@ -65736,6 +66328,7 @@ public function remove_partial($id) * Initializes the Customizer preview. * * @since 4.5.0 + * @phpstan-return void */ public function init_preview() { @@ -65744,6 +66337,7 @@ public function init_preview() * Enqueues preview scripts. * * @since 4.5.0 + * @phpstan-return void */ public function enqueue_preview_scripts() { @@ -65752,6 +66346,7 @@ public function enqueue_preview_scripts() * Exports data in preview after it has finished rendering so that partials can be added at runtime. * * @since 4.5.0 + * @phpstan-return void */ public function export_preview_data() { @@ -65908,6 +66503,7 @@ public function __construct($manager, $id, $args = array()) * Renders a JS template for the content of the site icon control. * * @since 4.5.0 + * @phpstan-return void */ public function content_template() { @@ -65942,6 +66538,7 @@ class WP_Customize_Theme_Control extends \WP_Customize_Control * @since 4.2.0 * * @see WP_Customize_Control::to_json() + * @phpstan-return void */ public function to_json() { @@ -65958,6 +66555,7 @@ public function render_content() * Render a JS template for theme display. * * @since 4.2.0 + * @phpstan-return void */ public function content_template() { @@ -65987,6 +66585,7 @@ class WP_Customize_Themes_Panel extends \WP_Customize_Panel * @see WP_Customize_Panel::print_template() * * @since 4.9.0 + * @phpstan-return void */ protected function render_template() { @@ -66000,6 +66599,7 @@ protected function render_template() * @since 4.9.0 * * @see WP_Customize_Panel::print_template() + * @phpstan-return void */ protected function content_template() { @@ -66057,6 +66657,7 @@ public function json() * The template is only rendered by PHP once, so all actions are prepared at once on the server side. * * @since 4.9.0 + * @phpstan-return void */ protected function render_template() { @@ -66068,6 +66669,7 @@ protected function render_template() * The filter bar container is rendered by {@see render_template()}. * * @since 4.9.0 + * @phpstan-return void */ protected function filter_bar_content_template() { @@ -66078,6 +66680,7 @@ protected function filter_bar_content_template() * The filter bar container is rendered by {@see render_template()}. * * @since 4.9.0 + * @phpstan-return void */ protected function filter_drawer_content_template() { @@ -66105,6 +66708,7 @@ class WP_Sidebar_Block_Editor_Control extends \WP_Customize_Control * Render the widgets block editor container. * * @since 5.8.0 + * @phpstan-return void */ public function render_content() { @@ -66137,6 +66741,7 @@ class WP_Widget_Area_Customize_Control extends \WP_Customize_Control * Refreshes the parameters passed to the JavaScript via JSON. * * @since 3.9.0 + * @phpstan-return void */ public function to_json() { @@ -66145,6 +66750,7 @@ public function to_json() * Renders the control's content. * * @since 3.9.0 + * @phpstan-return void */ public function render_content() { @@ -66221,6 +66827,7 @@ class WP_Widget_Form_Customize_Control extends \WP_Customize_Control * @since 3.9.0 * * @global array $wp_registered_widgets + * @phpstan-return void */ public function to_json() { @@ -66623,6 +67230,7 @@ public function insert_marker(): void * @see https://html.spec.whatwg.org/#push-onto-the-list-of-active-formatting-elements * * @param WP_HTML_Token $token Push this node onto the stack. + * @phpstan-return void */ public function push(\WP_HTML_Token $token) { @@ -67614,6 +68222,7 @@ public function clear_to_table_row_context(): void * Wakeup magic method. * * @since 6.6.0 + * @phpstan-return never */ public function __wakeup() { @@ -70888,6 +71497,7 @@ public function __construct(?string $bookmark_name, string $node_name, bool $has * Destructor. * * @since 6.4.0 + * @phpstan-return void */ public function __destruct() { @@ -70896,6 +71506,7 @@ public function __destruct() * Wakeup magic method. * * @since 6.4.2 + * @phpstan-return never */ public function __wakeup() { @@ -71238,6 +71849,7 @@ public function register_script_modules() * * @since 6.5.0 * @since 6.9.0 Adds support for client-side navigation in script modules. + * @phpstan-return void */ public function add_hooks() { @@ -71269,6 +71881,7 @@ public function add_load_on_client_navigation_attribute_to_script_modules($attri * @since 6.9.0 * * @param string $script_module_id The script module identifier. + * @phpstan-return void */ public function add_client_navigation_support_to_script_module(string $script_module_id) { @@ -71301,6 +71914,7 @@ public function print_router_loading_and_screen_reader_markup() * navigation. * * @since 6.7.0 + * @phpstan-return void */ public function print_router_markup() { @@ -71341,6 +71955,7 @@ public function get_locale(): string * @since 6.5.0 * * @param string $locale Locale. + * @phpstan-return void */ public function set_locale(string $locale) { @@ -71887,7 +72502,6 @@ class Translation_Entry * references?: array, * flags?: array, * } $args - * @phpstan-return void */ public function __construct($args = array()) { @@ -71919,6 +72533,7 @@ public function key() * @since 2.8.0 * * @param Translation_Entry $other Other translation entry. + * @phpstan-return void */ public function merge_with(&$other) { @@ -71981,6 +72596,7 @@ public function add_entry_or_merge($entry) * * @param string $header header name, without trailing : * @param string $value header value, without trailing \n + * @phpstan-return void */ public function set_header($header, $value) { @@ -71991,6 +72607,7 @@ public function set_header($header, $value) * @since 2.8.0 * * @param array $headers Associative array of headers. + * @phpstan-return void */ public function set_headers($headers) { @@ -72076,6 +72693,7 @@ public function translate_plural($singular, $plural, $count, $context = \null) * @since 2.8.0 * * @param Translations $other Another Translation object, whose translations will be merged in this one (passed by reference). + * @phpstan-return void */ public function merge_with(&$other) { @@ -72086,6 +72704,7 @@ public function merge_with(&$other) * @since 2.8.0 * * @param Translations $other + * @phpstan-return void */ public function merge_originals_with(&$other) { @@ -72185,6 +72804,7 @@ public function make_headers($translation) * * @param string $header * @param string $value + * @phpstan-return void */ public function set_header($header, $value) { @@ -72368,6 +72988,7 @@ public function __construct($str) * @throws Exception If there is a syntax or parsing error with the string. * * @param string $str String to parse. + * @phpstan-return void */ protected function parse($str) { @@ -72443,6 +73064,7 @@ public function export_to_file($filename, $include_headers = \true) * Doesn't need to include # in the beginning of lines, these are added automatically * * @param string $text Text to include as a comment. + * @phpstan-return void */ public function set_comment_before_headers($text) { @@ -72535,6 +73157,7 @@ public function read_line($f, $action = 'read') /** * @param Translation_Entry $entry * @param string $po_comment_line + * @phpstan-return void */ public function add_comment_to_entry(&$entry, $po_comment_line) { @@ -72574,6 +73197,7 @@ public function POMO_Reader() * * @param string $endian Set the endianness of the file. Accepts 'big', or 'little'. * @phpstan-param 'big'|'little' $endian + * @phpstan-return void */ public function setEndian($endian) { @@ -73040,6 +73664,7 @@ public function get_method() * @since 4.4.0 * * @param string $method HTTP method. + * @phpstan-return void */ public function set_method($method) { @@ -73119,6 +73744,7 @@ public function get_header_as_array($key) * * @param string $key Header name. * @param string $value Header value, or list of values. + * @phpstan-return void */ public function set_header($key, $value) { @@ -73130,6 +73756,7 @@ public function set_header($key, $value) * * @param string $key Header name. * @param string $value Header value, or list of values. + * @phpstan-return void */ public function add_header($key, $value) { @@ -73140,6 +73767,7 @@ public function add_header($key, $value) * @since 4.4.0 * * @param string $key Header name. + * @phpstan-return void */ public function remove_header($key) { @@ -73151,6 +73779,7 @@ public function remove_header($key) * * @param array $headers Map of header name to value. * @param bool $override If true, replace the request's headers. Otherwise, merge with existing. + * @phpstan-return void */ public function set_headers($headers, $override = \true) { @@ -73271,6 +73900,7 @@ public function get_url_params() * @since 4.4.0 * * @param array $params Parameter map of key to value. + * @phpstan-return void */ public function set_url_params($params) { @@ -73295,6 +73925,7 @@ public function get_query_params() * @since 4.4.0 * * @param array $params Parameter map of key to value. + * @phpstan-return void */ public function set_query_params($params) { @@ -73319,6 +73950,7 @@ public function get_body_params() * @since 4.4.0 * * @param array $params Parameter map of key to value. + * @phpstan-return void */ public function set_body_params($params) { @@ -73343,6 +73975,7 @@ public function get_file_params() * @since 4.4.0 * * @param array $params Parameter map of key to value. + * @phpstan-return void */ public function set_file_params($params) { @@ -73367,6 +74000,7 @@ public function get_default_params() * @since 4.4.0 * * @param array $params Parameter map of key to value. + * @phpstan-return void */ public function set_default_params($params) { @@ -73387,6 +74021,7 @@ public function get_body() * @since 4.4.0 * * @param string $data Binary data from the request body. + * @phpstan-return void */ public function set_body($data) { @@ -73441,6 +74076,7 @@ public function get_route() * @since 4.4.0 * * @param string $route Route matching regex. + * @phpstan-return void */ public function set_route($route) { @@ -73463,6 +74099,7 @@ public function get_attributes() * @since 4.4.0 * * @param array $attributes Attributes for the request. + * @phpstan-return void */ public function set_attributes($attributes) { @@ -73605,6 +74242,7 @@ class WP_REST_Response extends \WP_HTTP_Response * or an absolute URL. * @param string $href Target URI for the link. * @param array $attributes Optional. Link parameters to send along with the URL. Default empty array. + * @phpstan-return void */ public function add_link($rel, $href, $attributes = array()) { @@ -73633,6 +74271,7 @@ public function remove_link($rel, $href = \null) * @since 4.4.0 * * @param array $links Map of link relation to list of links. + * @phpstan-return void */ public function add_links($links) { @@ -73661,6 +74300,7 @@ public function get_links() * @param string $link Target IRI for the link. * @param array $other Optional. Other parameters to send, as an associative array. * Default empty array. + * @phpstan-return void */ public function link_header($rel, $link, $other = array()) { @@ -73681,6 +74321,7 @@ public function get_matched_route() * @since 4.4.0 * * @param string $route Route name. + * @phpstan-return void */ public function set_matched_route($route) { @@ -73701,6 +74342,7 @@ public function get_matched_handler() * @since 4.4.0 * * @param array $handler The matched handler. + * @phpstan-return void */ public function set_matched_handler($handler) { @@ -74009,6 +74651,7 @@ public function envelope_response($response, $embed) * @param array $route_args Route arguments. * @param bool $override Optional. Whether the route should be overridden if it already exists. * Default false. + * @phpstan-return void */ public function register_route($route_namespace, $route, $route_args, $override = \false) { @@ -74141,6 +74784,7 @@ public function get_index($request) * @since 5.7.0 * * @param WP_REST_Response $response REST API response. + * @phpstan-return void */ protected function add_active_theme_link_to_index(\WP_REST_Response $response) { @@ -74154,6 +74798,7 @@ protected function add_active_theme_link_to_index(\WP_REST_Response $response) * @since 5.8.0 * * @param WP_REST_Response $response REST API response. + * @phpstan-return void */ protected function add_site_logo_to_index(\WP_REST_Response $response) { @@ -74167,6 +74812,7 @@ protected function add_site_logo_to_index(\WP_REST_Response $response) * @since 5.9.0 * * @param WP_REST_Response $response REST API response. + * @phpstan-return void */ protected function add_site_icon_to_index(\WP_REST_Response $response) { @@ -74181,6 +74827,7 @@ protected function add_site_icon_to_index(\WP_REST_Response $response) * @param WP_REST_Response $response REST API response. * @param int $image_id Image attachment ID. * @param string $type Type of Image. + * @phpstan-return void */ protected function add_image_to_index(\WP_REST_Response $response, $image_id, $type) { @@ -74251,6 +74898,7 @@ public function serve_batch_request_v1(\WP_REST_Request $batch_request) * @since 4.4.0 * * @param int $code HTTP status. + * @phpstan-return void */ protected function set_status($code) { @@ -74262,6 +74910,7 @@ protected function set_status($code) * * @param string $key Header key. * @param string $value Header value. + * @phpstan-return void */ public function send_header($key, $value) { @@ -74272,6 +74921,7 @@ public function send_header($key, $value) * @since 4.4.0 * * @param array $headers Map of header name to header value. + * @phpstan-return void */ public function send_headers($headers) { @@ -74282,6 +74932,7 @@ public function send_headers($headers) * @since 4.8.0 * * @param string $key Header key. + * @phpstan-return void */ public function remove_header($key) { @@ -74345,6 +74996,7 @@ abstract class WP_REST_Controller * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -74984,6 +75636,7 @@ public function __construct() * Registers the REST API routes for the application passwords controller. * * @since 5.6.0 + * @phpstan-return void */ public function register_routes() { @@ -75285,6 +75938,7 @@ public function __construct($post_type) * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -75538,6 +76192,7 @@ public function check_template($template, $request) * @param string $template Page template filename. * @param int $post_id Post ID. * @param bool $validate Whether to validate that the template selected is valid. + * @phpstan-return void */ public function handle_template($template, $post_id, $validate = \false) { @@ -75743,6 +76398,7 @@ class WP_REST_Attachments_Controller extends \WP_REST_Posts_Controller * @since 5.3.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -76047,6 +76703,7 @@ public function __construct($parent_post_type) * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -76240,6 +76897,7 @@ public function __construct($parent_post_type) * @since 5.0.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -76381,6 +77039,7 @@ public function __construct() } /** * Registers the necessary REST API routes. + * @phpstan-return void */ public function register_routes() { @@ -76484,6 +77143,7 @@ public function __construct() * Registers the routes for the objects of the controller. * * @since 6.0.0 + * @phpstan-return void */ public function register_routes() { @@ -76561,6 +77221,7 @@ public function __construct() * Registers the routes for the objects of the controller. * * @since 6.0.0 + * @phpstan-return void */ public function register_routes() { @@ -76729,6 +77390,7 @@ public function __construct() * @since 5.5.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -76923,6 +77585,7 @@ public function __construct() * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -77226,6 +77889,7 @@ public function __construct() * Registers the site export route. * * @since 5.9.0 + * @phpstan-return void */ public function register_routes() { @@ -77271,6 +77935,7 @@ public function __construct() * Registers the routes for the objects of the controller. * * @since 6.5.0 + * @phpstan-return void */ public function register_routes() { @@ -77376,6 +78041,7 @@ class WP_REST_Font_Faces_Controller extends \WP_REST_Posts_Controller * @since 6.5.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -77834,6 +78500,7 @@ public function __construct($post_type = 'wp_global_styles') * Registers the controllers routes. * * @since 5.9.0 + * @phpstan-return void */ public function register_routes() { @@ -78071,6 +78738,7 @@ public function __construct($parent_post_type = 'wp_global_styles') * * @since 6.3.0 * @since 6.6.0 Added route to fetch individual global styles revisions. + * @phpstan-return void */ public function register_routes() { @@ -78338,6 +79006,7 @@ public function __construct() * @since 5.9.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -78501,6 +79170,7 @@ public function __construct($taxonomy) * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -78903,6 +79573,7 @@ public function __construct() * Registers the controllers routes. * * @since 6.3.0 + * @phpstan-return void */ public function register_routes() { @@ -78976,6 +79647,7 @@ public function __construct() * Registers the necessary REST API routes. * * @since 5.8.0 + * @phpstan-return void */ public function register_routes() { @@ -79079,6 +79751,7 @@ public function __construct() * Registers the routes for the plugins controller. * * @since 5.5.0 + * @phpstan-return void */ public function register_routes() { @@ -79382,6 +80055,7 @@ public function __construct() * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -79498,6 +80172,7 @@ public function __construct() * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -79640,6 +80315,7 @@ public function __construct(array $search_handlers) * @since 5.0.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -79748,6 +80424,7 @@ public function __construct() * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -79880,6 +80557,7 @@ public function __construct() * Registers the controllers routes. * * @since 5.8.0 + * @phpstan-return void */ public function register_routes() { @@ -79988,6 +80666,7 @@ protected function get_sidebar($id) * @since 5.9.0 * * @see retrieve_widgets() + * @phpstan-return void */ protected function retrieve_widgets() { @@ -80148,6 +80827,7 @@ public function get_directory_sizes() * This means that the translations for Site Health won't be loaded by default in {@see load_default_textdomain()}. * * @since 5.6.0 + * @phpstan-return void */ protected function load_admin_textdomain() { @@ -80186,6 +80866,7 @@ public function __construct() * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -80306,6 +80987,7 @@ public function __construct($parent_post_type) * @since 6.4.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -80391,6 +81073,7 @@ public function __construct($parent_post_type) * @since 6.4.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -80482,6 +81165,7 @@ public function __construct($post_type) * * @since 5.8.0 * @since 6.1.0 Endpoint for fallback template content. + * @phpstan-return void */ public function register_routes() { @@ -80737,6 +81421,7 @@ public function __construct() * @since 5.0.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -80914,6 +81599,7 @@ public function __construct() * Registers the necessary REST API routes. * * @since 5.9.0 + * @phpstan-return void */ public function register_routes() { @@ -80987,6 +81673,7 @@ public function __construct() * @since 4.7.0 * * @see register_rest_route() + * @phpstan-return void */ public function register_routes() { @@ -81512,6 +82199,7 @@ public function __construct() * Registers the widget routes for the controller. * * @since 5.8.0 + * @phpstan-return void */ public function register_routes() { @@ -81659,6 +82347,7 @@ protected function permissions_check($request) * @since 5.9.0 * * @see retrieve_widgets() + * @phpstan-return void */ protected function retrieve_widgets() { @@ -82724,6 +83413,7 @@ public function get_sitemap_index_stylesheet_url() * @since 5.5.0 * * @param array $sitemaps Array of sitemap URLs. + * @phpstan-return void */ public function render_index($sitemaps) { @@ -82745,6 +83435,7 @@ public function get_sitemap_index_xml($sitemaps) * @since 5.5.0 * * @param array $url_list Array of URLs for a sitemap. + * @phpstan-return void */ public function render_sitemap($url_list) { @@ -82872,6 +83563,7 @@ public function sitemaps_enabled() * Registers and sets up the functionality for all supported sitemaps. * * @since 5.5.0 + * @phpstan-return void */ public function register_sitemaps() { @@ -82880,6 +83572,7 @@ public function register_sitemaps() * Registers sitemap rewrite tags and routing rules. * * @since 5.5.0 + * @phpstan-return void */ public function register_rewrites() { @@ -83425,6 +84118,7 @@ public static function get_stores() * Clears all stores from static::$stores. * * @since 6.1.0 + * @phpstan-return void */ public static function remove_all_stores() { @@ -83435,6 +84129,7 @@ public static function remove_all_stores() * @since 6.1.0 * * @param string $name The store name. + * @phpstan-return void */ public function set_name($name) { @@ -83481,6 +84176,7 @@ public function add_rule($selector, $rules_group = '') * @since 6.1.0 * * @param string $selector The CSS selector. + * @phpstan-return void */ public function remove_rule($selector) { @@ -83763,6 +84459,7 @@ public function update($new_instance, $old_instance) * @global WP_Customize_Manager $wp_customize * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -83793,6 +84490,7 @@ public function __construct() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Archives widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -83816,6 +84514,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -83853,6 +84552,7 @@ public function __construct() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Block widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -83877,6 +84577,7 @@ public function update($new_instance, $old_instance) * @see WP_Widget_Custom_HTML::render_control_template_scripts() * * @param array $instance Current instance. + * @phpstan-return void */ public function form($instance) { @@ -83919,6 +84620,7 @@ public function __construct() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance The settings for the particular instance of the widget. + * @phpstan-return void */ public function widget($args, $instance) { @@ -83942,6 +84644,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -83974,6 +84677,7 @@ public function __construct() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Categories widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -83997,6 +84701,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -84069,6 +84774,7 @@ public function _filter_gallery_shortcode_attrs($attrs) * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Custom HTML widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -84090,6 +84796,7 @@ public function update($new_instance, $old_instance) * Loads the required scripts and styles for the widget control. * * @since 4.9.0 + * @phpstan-return void */ public function enqueue_admin_scripts() { @@ -84103,6 +84810,7 @@ public function enqueue_admin_scripts() * @see WP_Widget_Custom_HTML::render_control_template_scripts() * * @param array $instance Current instance. + * @phpstan-return void */ public function form($instance) { @@ -84111,6 +84819,7 @@ public function form($instance) * Render form template scripts. * * @since 4.9.0 + * @phpstan-return void */ public static function render_control_template_scripts() { @@ -84119,6 +84828,7 @@ public static function render_control_template_scripts() * Add help text to widgets admin screen. * * @since 4.9.0 + * @phpstan-return void */ public static function add_help_text() { @@ -84149,6 +84859,7 @@ public function __construct() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Links widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -84172,6 +84883,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -84340,6 +85052,7 @@ abstract public function render_media($instance); * @see \WP_Widget_Media::render_control_template_scripts() Where the JS template is located. * * @param array $instance Current settings. + * @phpstan-return void */ final public function form($instance) { @@ -84373,6 +85086,7 @@ public function enqueue_preview_scripts() * Loads the required scripts and styles for the widget control. * * @since 4.8.0 + * @phpstan-return void */ public function enqueue_admin_scripts() { @@ -84381,6 +85095,7 @@ public function enqueue_admin_scripts() * Render form template scripts. * * @since 4.8.0 + * @phpstan-return void */ public function render_control_template_scripts() { @@ -84389,6 +85104,7 @@ public function render_control_template_scripts() * Resets the cache for the default labels. * * @since 6.0.0 + * @phpstan-return void */ public static function reset_default_labels() { @@ -84463,6 +85179,7 @@ public function get_instance_schema() * @since 4.8.0 * * @param array $instance Widget instance props. + * @phpstan-return void */ public function render_media($instance) { @@ -84476,6 +85193,7 @@ public function render_media($instance) * case a widget does get added. * * @since 4.8.0 + * @phpstan-return void */ public function enqueue_preview_scripts() { @@ -84484,6 +85202,7 @@ public function enqueue_preview_scripts() * Loads the required media files for the media manager and scripts for media widgets. * * @since 4.8.0 + * @phpstan-return void */ public function enqueue_admin_scripts() { @@ -84492,6 +85211,7 @@ public function enqueue_admin_scripts() * Render form template scripts. * * @since 4.8.0 + * @phpstan-return void */ public function render_control_template_scripts() { @@ -84535,6 +85255,7 @@ public function get_instance_schema() * @since 4.9.0 * * @param array $instance Widget instance props. + * @phpstan-return void */ public function render_media($instance) { @@ -84543,6 +85264,7 @@ public function render_media($instance) * Loads the required media files for the media manager and scripts for media widgets. * * @since 4.9.0 + * @phpstan-return void */ public function enqueue_admin_scripts() { @@ -84551,6 +85273,7 @@ public function enqueue_admin_scripts() * Render form template scripts. * * @since 4.9.0 + * @phpstan-return void */ public function render_control_template_scripts() { @@ -84614,6 +85337,7 @@ public function render_media($instance) * Loads the required media files for the media manager and scripts for media widgets. * * @since 4.8.0 + * @phpstan-return void */ public function enqueue_admin_scripts() { @@ -84622,6 +85346,7 @@ public function enqueue_admin_scripts() * Render form template scripts. * * @since 4.8.0 + * @phpstan-return void */ public function render_control_template_scripts() { @@ -84690,6 +85415,7 @@ public function inject_video_max_width_style($html) * case a widget does get added. * * @since 4.8.0 + * @phpstan-return void */ public function enqueue_preview_scripts() { @@ -84698,6 +85424,7 @@ public function enqueue_preview_scripts() * Loads the required scripts and styles for the widget control. * * @since 4.8.0 + * @phpstan-return void */ public function enqueue_admin_scripts() { @@ -84706,6 +85433,7 @@ public function enqueue_admin_scripts() * Render form template scripts. * * @since 4.8.0 + * @phpstan-return void */ public function render_control_template_scripts() { @@ -84738,6 +85466,7 @@ public function __construct() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Meta widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -84761,6 +85490,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -84791,6 +85521,7 @@ public function __construct() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Pages widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -84814,6 +85545,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -84855,6 +85587,7 @@ public function recent_comments_style() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Recent Comments widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -84878,6 +85611,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -84942,6 +85676,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -84996,6 +85731,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -85026,6 +85762,7 @@ public function __construct() * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Search widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -85036,6 +85773,7 @@ public function widget($args, $instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -85103,6 +85841,7 @@ public function update($new_instance, $old_instance) * @since 2.8.0 * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -85199,6 +85938,7 @@ public function _filter_gallery_shortcode_attrs($attrs) * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Text widget instance. + * @phpstan-return void */ public function widget($args, $instance) { @@ -85237,6 +85977,7 @@ public function update($new_instance, $old_instance) * dynamically added via selective refresh, so it is important to unconditionally enqueue them. * * @since 4.9.3 + * @phpstan-return void */ public function enqueue_preview_scripts() { @@ -85245,6 +85986,7 @@ public function enqueue_preview_scripts() * Loads the required scripts and styles for the widget control. * * @since 4.8.0 + * @phpstan-return void */ public function enqueue_admin_scripts() { @@ -85260,6 +86002,7 @@ public function enqueue_admin_scripts() * @see _WP_Editors::editor() * * @param array $instance Current settings. + * @phpstan-return void */ public function form($instance) { @@ -85269,6 +86012,7 @@ public function form($instance) * * @since 4.8.0 * @since 4.9.0 The method is now static. + * @phpstan-return void */ public static function render_control_template_scripts() { @@ -85330,6 +86074,7 @@ function skip($handle, $num_bytes) * Fires on {@see 'wp_head'}. * * @since MU (3.0.0) + * @phpstan-return void */ function do_activate_header() { @@ -85338,6 +86083,7 @@ function do_activate_header() * Loads styles specific to this page. * * @since MU (3.0.0) + * @phpstan-return void */ function wpmu_activate_stylesheet() { @@ -85346,6 +86092,7 @@ function wpmu_activate_stylesheet() * Display JavaScript on the page. * * @since 3.5.0 + * @phpstan-return void */ function export_add_js() { @@ -85435,6 +86182,7 @@ function wp_ajax_autocomplete_user() * Handles Ajax requests for community events * * @since 4.8.0 + * @phpstan-return void */ function wp_ajax_get_community_events() { @@ -85467,6 +86215,7 @@ function wp_ajax_logged_in() * * @param int $comment_id * @param int $delta + * @phpstan-return void */ function _wp_ajax_delete_comment_response($comment_id, $delta = -1) { @@ -85476,6 +86225,7 @@ function _wp_ajax_delete_comment_response($comment_id, $delta = -1) * * @since 3.1.0 * @access private + * @phpstan-return void */ function _wp_ajax_add_hierarchical_term() { @@ -85493,6 +86243,7 @@ function wp_ajax_delete_comment() * Handles deleting a tag via AJAX. * * @since 3.1.0 + * @phpstan-return void */ function wp_ajax_delete_tag() { @@ -85501,6 +86252,7 @@ function wp_ajax_delete_tag() * Handles deleting a link via AJAX. * * @since 3.1.0 + * @phpstan-return void */ function wp_ajax_delete_link() { @@ -85520,6 +86272,7 @@ function wp_ajax_delete_meta() * @since 3.1.0 * * @param string $action Action to perform. + * @phpstan-return void */ function wp_ajax_delete_post($action) { @@ -85541,6 +86294,7 @@ function wp_ajax_trash_post($action) * @since 3.1.0 * * @param string $action Action to perform. + * @phpstan-return void */ function wp_ajax_untrash_post($action) { @@ -85551,6 +86305,7 @@ function wp_ajax_untrash_post($action) * @since 3.1.0 * * @param string $action Action to perform. + * @phpstan-return void */ function wp_ajax_delete_page($action) { @@ -85570,6 +86325,7 @@ function wp_ajax_dim_comment() * @since 3.1.0 * * @param string $action Action to perform. + * @phpstan-return void */ function wp_ajax_add_link_category($action) { @@ -85578,6 +86334,7 @@ function wp_ajax_add_link_category($action) * Handles adding a tag via AJAX. * * @since 3.1.0 + * @phpstan-return void */ function wp_ajax_add_tag() { @@ -85599,6 +86356,7 @@ function wp_ajax_get_tagcloud() * @global int $post_id * * @param string $action Action to perform. + * @phpstan-return void */ function wp_ajax_get_comments($action) { @@ -85609,6 +86367,7 @@ function wp_ajax_get_comments($action) * @since 3.1.0 * * @param string $action Action to perform. + * @phpstan-return void */ function wp_ajax_replyto_comment($action) { @@ -85617,6 +86376,7 @@ function wp_ajax_replyto_comment($action) * Handles editing a comment via AJAX. * * @since 3.1.0 + * @phpstan-return void */ function wp_ajax_edit_comment() { @@ -85634,6 +86394,7 @@ function wp_ajax_add_menu_item() * Handles adding meta via AJAX. * * @since 3.1.0 + * @phpstan-return void */ function wp_ajax_add_meta() { @@ -85644,6 +86405,7 @@ function wp_ajax_add_meta() * @since 3.1.0 * * @param string $action Action to perform. + * @phpstan-return void */ function wp_ajax_add_user($action) { @@ -85797,6 +86559,7 @@ function wp_ajax_save_widget() * @since 3.9.0 * * @global WP_Customize_Manager $wp_customize + * @phpstan-return void */ function wp_ajax_update_widget() { @@ -85889,7 +86652,6 @@ function wp_ajax_time_format() * * @since 3.1.0 * @deprecated 4.3.0 - * @phpstan-return never */ function wp_ajax_wp_fullscreen_save_post() { @@ -86215,6 +86977,7 @@ function wp_ajax_search_install_plugins() * @since 4.9.0 * * @see wp_edit_theme_plugin_file() + * @phpstan-return void */ function wp_ajax_edit_theme_plugin_file() { @@ -86243,7 +87006,6 @@ function wp_ajax_wp_privacy_erase_personal_data() * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_dotorg_communication() * @see WP_REST_Site_Health_Controller::test_dotorg_communication() - * @phpstan-return never */ function wp_ajax_health_check_dotorg_communication() { @@ -86254,7 +87016,6 @@ function wp_ajax_health_check_dotorg_communication() * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_background_updates() * @see WP_REST_Site_Health_Controller::test_background_updates() - * @phpstan-return never */ function wp_ajax_health_check_background_updates() { @@ -86265,7 +87026,6 @@ function wp_ajax_health_check_background_updates() * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_loopback_requests() * @see WP_REST_Site_Health_Controller::test_loopback_requests() - * @phpstan-return never */ function wp_ajax_health_check_loopback_requests() { @@ -86285,7 +87045,6 @@ function wp_ajax_health_check_site_status_result() * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::get_directory_sizes() * @see WP_REST_Site_Health_Controller::get_directory_sizes() - * @phpstan-return never */ function wp_ajax_health_check_get_sizes() { @@ -86312,6 +87071,7 @@ function wp_ajax_toggle_auto_updates() * Handles sending a password reset link via AJAX. * * @since 5.7.0 + * @phpstan-return void */ function wp_ajax_send_password_reset() { @@ -86444,6 +87204,7 @@ function wp_insert_link($linkdata, $wp_error = \false) * * @param int $link_id ID of the link to update. * @param int[] $link_categories Array of link category IDs to add the link to. + * @phpstan-return void */ function wp_set_link_cats($link_id = 0, $link_categories = array()) { @@ -86588,6 +87349,7 @@ function floated_admin_avatar($name) * Enqueues comment shortcuts jQuery script. * * @since 2.7.0 + * @phpstan-return void */ function enqueue_comment_hotkeys_js() { @@ -86625,6 +87387,7 @@ function wp_credits($version = '', $locale = '') * @param string $display_name The contributor's display name (passed by reference). * @param string $username The contributor's username. * @param string $profiles URL to the contributor's WordPress.org profile page. + * @phpstan-return void */ function _wp_credits_add_profile_link(&$display_name, $username, $profiles) { @@ -86636,6 +87399,7 @@ function _wp_credits_add_profile_link(&$display_name, $username, $profiles) * @since 3.2.0 * * @param string $data External library data (passed by reference). + * @phpstan-return void */ function _wp_credits_build_object_link(&$data) { @@ -86673,6 +87437,7 @@ function wp_credits_section_list($credits = array(), $slug = '') * @global array $wp_registered_widgets * @global array $wp_registered_widget_controls * @global callable[] $wp_dashboard_control_callbacks + * @phpstan-return void */ function wp_dashboard_setup() { @@ -86698,6 +87463,7 @@ function wp_dashboard_setup() * Accepts 'high', 'core', 'default', or 'low'. Default 'core'. * @phpstan-param 'normal'|'side'|'column3'|'column4' $context * @phpstan-param 'high'|'core'|'default'|'low' $priority + * @phpstan-return void */ function wp_add_dashboard_widget($widget_id, $widget_name, $callback, $control_callback = \null, $callback_args = \null, $context = 'normal', $priority = 'core') { @@ -86710,6 +87476,7 @@ function wp_add_dashboard_widget($widget_id, $widget_name, $callback, $control_c * * @param mixed $dashboard * @param array $meta_box + * @phpstan-return void */ function _wp_dashboard_control_callback($dashboard, $meta_box) { @@ -86718,6 +87485,7 @@ function _wp_dashboard_control_callback($dashboard, $meta_box) * Displays the dashboard. * * @since 2.5.0 + * @phpstan-return void */ function wp_dashboard() { @@ -86728,12 +87496,14 @@ function wp_dashboard() * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8. * * @since 2.7.0 + * @phpstan-return void */ function wp_dashboard_right_now() { } /** * @since 3.1.0 + * @phpstan-return void */ function wp_network_dashboard_right_now() { @@ -86772,6 +87542,7 @@ function wp_dashboard_recent_drafts($drafts = \false) * * @param WP_Comment $comment The current comment. * @param bool $show_date Optional. Whether to display the date. + * @phpstan-return void */ function _wp_dashboard_recent_comments_row(&$comment, $show_date = \true) { @@ -86782,6 +87553,7 @@ function _wp_dashboard_recent_comments_row(&$comment, $show_date = \true) * Callback function for {@see 'dashboard_activity'}. * * @since 3.8.0 + * @phpstan-return void */ function wp_dashboard_site_activity() { @@ -86829,6 +87601,7 @@ function wp_dashboard_recent_comments($total_items = 5) * @since 2.5.0 * * @param string $widget_id + * @phpstan-return void */ function wp_dashboard_rss_output($widget_id) { @@ -86862,6 +87635,7 @@ function wp_dashboard_cached_rss_widget($widget_id, $callback, $check_urls = arr * @global callable[] $wp_dashboard_control_callbacks * * @param int|false $widget_control_id Optional. Registered widget ID. Default false. + * @phpstan-return void */ function wp_dashboard_trigger_widget_control($widget_control_id = \false) { @@ -86875,6 +87649,7 @@ function wp_dashboard_trigger_widget_control($widget_control_id = \false) * * @param string $widget_id * @param array $form_inputs + * @phpstan-return void */ function wp_dashboard_rss_control($widget_id, $form_inputs = array()) { @@ -86883,6 +87658,7 @@ function wp_dashboard_rss_control($widget_id, $form_inputs = array()) * Renders the Events and News dashboard widget. * * @since 4.8.0 + * @phpstan-return void */ function wp_dashboard_events_news() { @@ -86891,6 +87667,7 @@ function wp_dashboard_events_news() * Prints the markup for the Community Events section of the Events and News Dashboard widget. * * @since 4.8.0 + * @phpstan-return void */ function wp_print_community_events_markup() { @@ -86899,6 +87676,7 @@ function wp_print_community_events_markup() * Renders the events templates for the Event and News widget. * * @since 4.8.0 + * @phpstan-return void */ function wp_print_community_events_templates() { @@ -86908,6 +87686,7 @@ function wp_print_community_events_templates() * * @since 2.7.0 * @since 4.8.0 Removed popular plugins feed. + * @phpstan-return void */ function wp_dashboard_primary() { @@ -86920,6 +87699,7 @@ function wp_dashboard_primary() * * @param string $widget_id Widget ID. * @param array $feeds Array of RSS feeds. + * @phpstan-return void */ function wp_dashboard_primary_output($widget_id, $feeds) { @@ -86943,6 +87723,7 @@ function wp_dashboard_quota() * @since 5.8.0 Added a special message for Internet Explorer users. * * @global bool $is_IE + * @phpstan-return void */ function wp_dashboard_browser_nag() { @@ -86992,6 +87773,7 @@ function dashboard_php_nag_class($classes) * Displays the Site Health Status widget. * * @since 5.4.0 + * @phpstan-return void */ function wp_dashboard_site_health() { @@ -87011,6 +87793,7 @@ function wp_dashboard_empty() * * @since 3.3.0 * @since 5.9.0 Send users to the Site Editor if the active theme is block-based. + * @phpstan-return void */ function wp_welcome_panel() { @@ -87965,6 +88748,7 @@ function wp_get_theme_file_editable_extensions($theme) * Prints file editor templates (for plugins and themes). * * @since 4.9.0 + * @phpstan-return void */ function wp_print_file_editor_templates() { @@ -88496,6 +89280,7 @@ function wp_opcache_invalidate_directory($dir) * @param int $post_id Attachment post ID. * @param false|object $msg Optional. Message to display for image editor updates or errors. * Default false. + * @phpstan-return void */ function wp_image_editor($post_id, $msg = \false) { @@ -88936,6 +89721,7 @@ function register_importer($id, $name, $description, $callback) * @since 2.0.0 * * @param string $id Importer ID. + * @phpstan-return void */ function wp_import_cleanup($id) { @@ -88989,6 +89775,7 @@ function _get_list_table($class_name, $args = array()) * usually the hook name returned by the `add_*_page()` functions. * @param string[] $columns An array of columns with column IDs as the keys and translated * column names as the values. + * @phpstan-return void */ function register_column_headers($screen, $columns) { @@ -89000,6 +89787,7 @@ function register_column_headers($screen, $columns) * * @param string|WP_Screen $screen The screen hook name or screen object. * @param bool $with_id Whether to set the ID attribute or not. + * @phpstan-return void */ function print_column_headers($screen, $with_id = \true) { @@ -89033,6 +89821,7 @@ function update_gallery_tab($tabs) * @since 2.5.0 * * @global string $redir_tab + * @phpstan-return void */ function the_media_upload_tabs() { @@ -89138,6 +89927,7 @@ function media_handle_sideload($file_array, $post_id = 0, $desc = \null, $post_d * * @param callable $content_func Function that outputs the content. * @param mixed ...$args Optional additional parameters to pass to the callback function when it's called. + * @phpstan-return void */ function wp_iframe($content_func, ...$args) { @@ -89150,6 +89940,7 @@ function wp_iframe($content_func, ...$args) * @global int $post_ID * * @param string $editor_id + * @phpstan-return void */ function media_buttons($editor_id = 'content') { @@ -89390,6 +90181,7 @@ function get_compat_media_markup($attachment_id, $args = \null) * Outputs the legacy media upload header. * * @since 2.5.0 + * @phpstan-return void */ function media_upload_header() { @@ -89416,6 +90208,7 @@ function media_upload_form($errors = \null) * @param string $type * @param array $errors * @param int|WP_Error $id + * @phpstan-return void */ function media_upload_type_form($type = 'file', $errors = \null, $id = \null) { @@ -89428,6 +90221,7 @@ function media_upload_type_form($type = 'file', $errors = \null, $id = \null) * @param string $type * @param object $errors * @param int $id + * @phpstan-return void */ function media_upload_type_url_form($type = \null, $errors = \null, $id = \null) { @@ -89442,6 +90236,7 @@ function media_upload_type_url_form($type = \null, $errors = \null, $id = \null) * @global string $tab * * @param array $errors + * @phpstan-return void */ function media_upload_gallery_form($errors) { @@ -89459,6 +90254,7 @@ function media_upload_gallery_form($errors) * @global array $post_mime_types * * @param array $errors + * @phpstan-return void */ function media_upload_library_form($errors) { @@ -89479,6 +90275,7 @@ function wp_media_insert_url_form($default_view = 'image') * Displays the multi-file uploader message. * * @since 2.6.0 + * @phpstan-return void */ function media_upload_flash_bypass() { @@ -89487,6 +90284,7 @@ function media_upload_flash_bypass() * Displays the browser's built-in uploader message. * * @since 2.6.0 + * @phpstan-return void */ function media_upload_html_bypass() { @@ -89503,6 +90301,7 @@ function media_upload_text_after() * Displays the checkbox to scale images. * * @since 3.3.0 + * @phpstan-return void */ function media_upload_max_image_resize() { @@ -89511,6 +90310,7 @@ function media_upload_max_image_resize() * Displays the out of storage quota message in Multisite. * * @since 3.5.0 + * @phpstan-return void */ function multisite_over_quota_message() { @@ -89521,6 +90321,7 @@ function multisite_over_quota_message() * @since 3.5.0 * * @param WP_Post $post A post object. + * @phpstan-return void */ function edit_form_image_editor($post) { @@ -89529,6 +90330,7 @@ function edit_form_image_editor($post) * Displays non-editable attachment metadata in the publish meta box. * * @since 3.5.0 + * @phpstan-return void */ function attachment_submitbox_metadata() { @@ -89540,6 +90342,7 @@ function attachment_submitbox_metadata() * * @param array $metadata An existing array with data. * @param array $data Data supplied by ID3 tags. + * @phpstan-return void */ function wp_add_id3_tag_data(&$metadata, $data) { @@ -89657,6 +90460,7 @@ function sort_menu($a, $b) * callback?: callable, * args?: array, * } $args + * @phpstan-return void */ function post_submit_meta_box($post, $args = array()) { @@ -89667,6 +90471,7 @@ function post_submit_meta_box($post, $args = array()) * @since 3.5.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function attachment_submit_meta_box($post) { @@ -89691,6 +90496,7 @@ function attachment_submit_meta_box($post) * callback?: callable, * args?: array, * } $box + * @phpstan-return void */ function post_format_meta_box($post, $box) { @@ -89723,6 +90529,7 @@ function post_format_meta_box($post, $box) * taxonomy?: string, * }, * } $box + * @phpstan-return void */ function post_tags_meta_box($post, $box) { @@ -89755,6 +90562,7 @@ function post_tags_meta_box($post, $box) * taxonomy?: string, * }, * } $box + * @phpstan-return void */ function post_categories_meta_box($post, $box) { @@ -89765,6 +90573,7 @@ function post_categories_meta_box($post, $box) * @since 2.6.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_excerpt_meta_box($post) { @@ -89775,6 +90584,7 @@ function post_excerpt_meta_box($post) * @since 2.6.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_trackback_meta_box($post) { @@ -89785,6 +90595,7 @@ function post_trackback_meta_box($post) * @since 2.6.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_custom_meta_box($post) { @@ -89795,6 +90606,7 @@ function post_custom_meta_box($post) * @since 2.6.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_comment_status_meta_box($post) { @@ -89816,6 +90628,7 @@ function post_comment_meta_box_thead($result) * @since 2.8.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_comment_meta_box($post) { @@ -89826,6 +90639,7 @@ function post_comment_meta_box($post) * @since 2.6.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_slug_meta_box($post) { @@ -89838,6 +90652,7 @@ function post_slug_meta_box($post) * @global int $user_ID * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_author_meta_box($post) { @@ -89848,6 +90663,7 @@ function post_author_meta_box($post) * @since 2.6.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_revisions_meta_box($post) { @@ -89858,6 +90674,7 @@ function post_revisions_meta_box($post) * @since 2.7.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function page_attributes_meta_box($post) { @@ -89868,6 +90685,7 @@ function page_attributes_meta_box($post) * @since 2.7.0 * * @param object $link Current link object. + * @phpstan-return void */ function link_submit_meta_box($link) { @@ -89878,6 +90696,7 @@ function link_submit_meta_box($link) * @since 2.6.0 * * @param object $link Current link object. + * @phpstan-return void */ function link_categories_meta_box($link) { @@ -89888,6 +90707,7 @@ function link_categories_meta_box($link) * @since 2.6.0 * * @param object $link Current link object. + * @phpstan-return void */ function link_target_meta_box($link) { @@ -89907,6 +90727,7 @@ function link_target_meta_box($link) * Default empty string. * @param mixed $deprecated Deprecated. Not used. * @phpstan-param '' $deprecated + * @phpstan-return void */ function xfn_check($xfn_relationship, $xfn_value = '', $deprecated = '') { @@ -89917,6 +90738,7 @@ function xfn_check($xfn_relationship, $xfn_value = '', $deprecated = '') * @since 2.6.0 * * @param object $link Current link object. + * @phpstan-return void */ function link_xfn_meta_box($link) { @@ -89927,6 +90749,7 @@ function link_xfn_meta_box($link) * @since 2.6.0 * * @param object $link Current link object. + * @phpstan-return void */ function link_advanced_meta_box($link) { @@ -89937,6 +90760,7 @@ function link_advanced_meta_box($link) * @since 2.9.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function post_thumbnail_meta_box($post) { @@ -89947,6 +90771,7 @@ function post_thumbnail_meta_box($post) * @since 3.9.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function attachment_id3_data_meta_box($post) { @@ -89957,6 +90782,7 @@ function attachment_id3_data_meta_box($post) * @since 5.0.0 * * @param WP_Post $post The post object that these meta boxes are being generated for. + * @phpstan-return void */ function register_and_do_post_meta_boxes($post) { @@ -90049,6 +90875,7 @@ function iis7_save_url_rewrite_rules() * @since 1.5.0 * * @param string $file + * @phpstan-return void */ function update_recently_edited($file) { @@ -90079,6 +90906,7 @@ function wp_make_theme_file_tree($allowed_files) * @param int $level The aria-level for the current iteration. * @param int $size The aria-setsize for the current iteration. * @param int $index The aria-posinset for the current iteration. + * @phpstan-return void */ function wp_print_theme_file_tree($tree, $level = 2, $size = 1, $index = 1) { @@ -90106,6 +90934,7 @@ function wp_make_plugin_file_tree($plugin_editable_files) * @param int $level The aria-level for the current iteration. * @param int $size The aria-setsize for the current iteration. * @param int $index The aria-posinset for the current iteration. + * @phpstan-return void */ function wp_print_plugin_file_tree($tree, $label = '', $level = 2, $size = 1, $index = 1) { @@ -90132,6 +90961,7 @@ function update_home_siteurl($old_value, $value) * @since 2.0.0 * * @param array $vars An array of globals to reset. + * @phpstan-return void */ function wp_reset_vars($vars) { @@ -90142,6 +90972,7 @@ function wp_reset_vars($vars) * @since 2.1.0 * * @param string|WP_Error $message + * @phpstan-return void */ function show_message($message) { @@ -90205,6 +91036,7 @@ function iis7_add_rewrite_rule($filename, $rewrite_rule) * * @param DOMDocument $doc * @param string $filename + * @phpstan-return void */ function saveDomDocument($doc, $filename) { @@ -90217,6 +91049,7 @@ function saveDomDocument($doc, $filename) * @global array $_wp_admin_css_colors * * @param int $user_id User ID. + * @phpstan-return void */ function admin_color_scheme_picker($user_id) { @@ -90226,6 +91059,7 @@ function admin_color_scheme_picker($user_id) * @since 3.8.0 * * @global array $_wp_admin_css_colors + * @phpstan-return void */ function wp_color_scheme_settings() { @@ -90358,6 +91192,7 @@ function wp_admin_canonical_url() * so the post title and editor content are the last saved versions. Ideally this script should run first in the head. * * @since 4.6.0 + * @phpstan-return void */ function wp_page_reload_on_back_button_js() { @@ -90539,6 +91374,7 @@ function check_upload_size($file) * * @param int $blog_id Site ID. * @param bool $drop True if site's database tables should be dropped. Default false. + * @phpstan-return void */ function wpmu_delete_blog($blog_id, $drop = \false) { @@ -90579,6 +91415,7 @@ function upload_is_user_over_quota($display_message = \true) * Displays the amount of disk space used by the current site. Not used in core. * * @since MU (3.0.0) + * @phpstan-return void */ function display_space_usage() { @@ -90600,6 +91437,7 @@ function fix_import_form_size($size) * @since 3.0.0 * * @param int $id The ID of the site to display the setting for. + * @phpstan-return void */ function upload_space_setting($id) { @@ -90656,6 +91494,7 @@ function check_import_new_users($permission) * * @param string[] $lang_files Optional. An array of the language files. Default empty array. * @param string $current Optional. The current language code. Default empty. + * @phpstan-return void */ function mu_dropdown_languages($lang_files = array(), $current = '') { @@ -90695,6 +91534,7 @@ function avoid_blog_page_permalink_collision($data, $postarr) * which site is primary. * * @since 3.0.0 + * @phpstan-return void */ function choose_primary_blog() { @@ -90719,6 +91559,7 @@ function can_edit_network($network_id) * @since 3.1.0 * * @access private + * @phpstan-return void */ function _thickbox_path_admin_subfolder() { @@ -90736,6 +91577,7 @@ function confirm_delete_users($users) * Prints JavaScript in the header on the Network Settings screen. * * @since 4.1.0 + * @phpstan-return void */ function network_settings_add_js() { @@ -90759,6 +91601,7 @@ function network_settings_add_js() * links?: array, * selected?: string, * } $args + * @phpstan-return void */ function network_edit_site_nav($args = array()) { @@ -90791,6 +91634,7 @@ function get_site_screen_help_sidebar_content() * @since 6.8.0 * * @param string $role Role the user is attempting to assign. + * @phpstan-return void */ function wp_ensure_editable_role($role) { @@ -90810,6 +91654,7 @@ function _wp_ajax_menu_quick_search($request = array()) * Register nav menu meta boxes and advanced menu items. * * @since 3.0.0 + * @phpstan-return void */ function wp_nav_menu_setup() { @@ -90865,6 +91710,7 @@ function wp_nav_menu_disabled_check($nav_menu_selected_id, $display = \true) * * @global int $_nav_menu_placeholder * @global int|string $nav_menu_selected_id + * @phpstan-return void */ function wp_nav_menu_item_link_meta_box() { @@ -90979,6 +91825,7 @@ function wp_nav_menu_manage_columns() * @since 3.0.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function _wp_delete_orphaned_draft_menu_items() { @@ -91061,6 +91908,7 @@ function get_clean_basedomain() * @global bool $is_apache * * @param false|WP_Error $errors Optional. Error object. Default false. + * @phpstan-return void */ function network_step1($errors = \false) { @@ -91074,6 +91922,7 @@ function network_step1($errors = \false) * @global bool $is_nginx Whether the server software is Nginx or something else. * * @param false|WP_Error $errors Optional. Error object. Default false. + * @phpstan-return void */ function network_step2($errors = \false) { @@ -91082,6 +91931,7 @@ function network_step2($errors = \false) * Output JavaScript to toggle display of additional settings if avatars are disabled. * * @since 4.2.0 + * @phpstan-return void */ function options_discussion_add_js() { @@ -91090,6 +91940,7 @@ function options_discussion_add_js() * Display JavaScript on the page. * * @since 3.5.0 + * @phpstan-return void */ function options_general_add_js() { @@ -91098,6 +91949,7 @@ function options_general_add_js() * Display JavaScript on the page. * * @since 3.5.0 + * @phpstan-return void */ function options_reading_add_js() { @@ -91106,6 +91958,7 @@ function options_reading_add_js() * Render the site charset setting. * * @since 3.5.0 + * @phpstan-return void */ function options_reading_blog_charset() { @@ -91258,6 +92111,7 @@ function install_popular_tags($args = array()) * Displays the Featured tab of Add Plugins screen. * * @since 2.7.0 + * @phpstan-return void */ function install_dashboard() { @@ -91270,6 +92124,7 @@ function install_dashboard() * * @param bool $deprecated Not used. * @phpstan-param true $deprecated + * @phpstan-return void */ function install_search_form($deprecated = \true) { @@ -91278,6 +92133,7 @@ function install_search_form($deprecated = \true) * Displays a form to upload plugins from zip files. * * @since 2.8.0 + * @phpstan-return void */ function install_plugins_upload() { @@ -91286,6 +92142,7 @@ function install_plugins_upload() * Shows a username form for the favorites page. * * @since 3.5.0 + * @phpstan-return void */ function install_plugins_favorites_form() { @@ -91679,6 +92536,7 @@ function activate_plugin($plugin, $redirect = '', $network_wide = \false, $silen * @param bool|null $network_wide Whether to deactivate the plugin for all sites in the network. * A value of null will deactivate plugins for both the network * and the current site. Multisite only. Default null. + * @phpstan-return void */ function deactivate_plugins($plugins, $silent = \false, $network_wide = \null) { @@ -92317,6 +93175,7 @@ function remove_allowed_options($del_options, $options = '') * * @param string $option_group A settings group name. This should match the group name * used in register_setting(). + * @phpstan-return void */ function settings_fields($option_group) { @@ -92327,6 +93186,7 @@ function settings_fields($option_group) * @since 3.7.0 * * @param bool $clear_update_cache Whether to clear the plugin updates cache. Default true. + * @phpstan-return void */ function wp_clean_plugins_cache($clear_update_cache = \true) { @@ -92338,6 +93198,7 @@ function wp_clean_plugins_cache($clear_update_cache = \true) * @since 4.4.0 Function was moved into the `wp-admin/includes/plugin.php` file. * * @param string $plugin Path to the plugin file relative to the plugins directory. + * @phpstan-return void */ function plugin_sandbox_scrape($plugin) { @@ -92861,6 +93722,7 @@ function wp_create_post_autosave($post_data) * @since 6.4.0 * * @param array $new_autosave The new post data being autosaved. + * @phpstan-return void */ function wp_autosave_post_revisioned_meta_fields($new_autosave) { @@ -92947,6 +93809,7 @@ function get_block_editor_server_block_settings() * @global WP_Post $post Global post object. * @global WP_Screen $current_screen WordPress current screen object. * @global array $wp_meta_boxes Global meta box state. + * @phpstan-return void */ function the_block_editor_meta_boxes() { @@ -92957,6 +93820,7 @@ function the_block_editor_meta_boxes() * @since 5.0.0 * * @param WP_Post $post Current post object. + * @phpstan-return void */ function the_block_editor_meta_box_post_form_hidden_fields($post) { @@ -93034,6 +93898,7 @@ function _wp_privacy_completed_request($request_id) * * @since 4.9.6 * @access private + * @phpstan-return void */ function _wp_personal_data_handle_actions() { @@ -93043,6 +93908,7 @@ function _wp_personal_data_handle_actions() * * @since 4.9.6 * @access private + * @phpstan-return void */ function _wp_personal_data_cleanup_requests() { @@ -93090,6 +93956,7 @@ function wp_privacy_generate_personal_data_export_group_html($group_data, $group * @since 4.9.6 * * @param int $request_id The export request ID. + * @phpstan-return void */ function wp_privacy_generate_personal_data_export_file($request_id) { @@ -93182,6 +94049,7 @@ function wp_prepare_revisions_for_js($post, $selected_revision_id, $from = \null * @since 4.1.0 * * @global WP_Post $post Global post object. + * @phpstan-return void */ function wp_print_revision_templates() { @@ -93211,6 +94079,7 @@ function wp_get_db_schema($scope = 'all', $blog_id = \null) * @global int $wp_current_db_version The old (current) database version. * * @param array $options Optional. Custom option $key => $value pairs to use. Default empty array. + * @phpstan-return void */ function populate_options(array $options = array()) { @@ -93219,6 +94088,7 @@ function populate_options(array $options = array()) * Execute WordPress role creation for the various WordPress versions. * * @since 2.0.0 + * @phpstan-return void */ function populate_roles() { @@ -93227,6 +94097,7 @@ function populate_roles() * Create the roles for WordPress 2.0 * * @since 2.0.0 + * @phpstan-return void */ function populate_roles_160() { @@ -93235,6 +94106,7 @@ function populate_roles_160() * Create and modify WordPress roles for WordPress 2.1. * * @since 2.1.0 + * @phpstan-return void */ function populate_roles_210() { @@ -93243,6 +94115,7 @@ function populate_roles_210() * Create and modify WordPress roles for WordPress 2.3. * * @since 2.3.0 + * @phpstan-return void */ function populate_roles_230() { @@ -93251,6 +94124,7 @@ function populate_roles_230() * Create and modify WordPress roles for WordPress 2.5. * * @since 2.5.0 + * @phpstan-return void */ function populate_roles_250() { @@ -93259,6 +94133,7 @@ function populate_roles_250() * Create and modify WordPress roles for WordPress 2.6. * * @since 2.6.0 + * @phpstan-return void */ function populate_roles_260() { @@ -93267,6 +94142,7 @@ function populate_roles_260() * Create and modify WordPress roles for WordPress 2.7. * * @since 2.7.0 + * @phpstan-return void */ function populate_roles_270() { @@ -93275,6 +94151,7 @@ function populate_roles_270() * Create and modify WordPress roles for WordPress 2.8. * * @since 2.8.0 + * @phpstan-return void */ function populate_roles_280() { @@ -93283,6 +94160,7 @@ function populate_roles_280() * Create and modify WordPress roles for WordPress 3.0. * * @since 3.0.0 + * @phpstan-return void */ function populate_roles_300() { @@ -93291,6 +94169,7 @@ function populate_roles_300() * Install Network. * * @since 3.0.0 + * @phpstan-return void */ function install_network() { @@ -93327,6 +94206,7 @@ function populate_network($network_id = 1, $domain = '', $email = '', $site_name * * @param int $network_id Network ID to populate meta for. * @param array $meta Optional. Custom meta $key => $value pairs to use. Default empty array. + * @phpstan-return void */ function populate_network_meta($network_id, array $meta = array()) { @@ -93422,6 +94302,7 @@ function get_current_screen() * * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen, * or an existing screen object. + * @phpstan-return void */ function set_current_screen($hook_name = '') { @@ -93603,6 +94484,7 @@ function wp_create_term($tag_name, $taxonomy = 'post_tag') * Default is a Walker_Category_Checklist instance. * @param bool $checked_ontop Optional. Whether to move checked items out of the hierarchy and to * the top of the list. Default true. + * @phpstan-return void */ function wp_category_checklist($post_id = 0, $descendants_and_self = 0, $selected_cats = \false, $popular_cats = \false, $walker = \null, $checked_ontop = \true) { @@ -93708,6 +94590,7 @@ function wp_comment_reply($position = 1, $checkbox = \false, $mode = 'single', $ * Outputs 'undo move to Trash' text for comments. * * @since 2.9.0 + * @phpstan-return void */ function wp_comment_trashnotice() { @@ -93743,6 +94626,7 @@ function _list_meta_row($entry, &$count) * @global wpdb $wpdb WordPress database abstraction object. * * @param WP_Post $post Optional. The post being edited. + * @phpstan-return void */ function meta_form($post = \null) { @@ -93773,6 +94657,7 @@ function touch_time($edit = 1, $for_post = 1, $tab_index = 0, $multi = 0) * * @param string $default_template Optional. The template file name. Default empty. * @param string $post_type Optional. Post type to get templates for. Default 'page'. + * @phpstan-return void */ function page_template_dropdown($default_template = '', $post_type = 'page') { @@ -93800,6 +94685,7 @@ function parent_dropdown($default_page = 0, $parent_page = 0, $level = 0, $post * @since 2.1.0 * * @param string $selected Slug for the role that should be already selected. + * @phpstan-return void */ function wp_dropdown_roles($selected = '') { @@ -93810,6 +94696,7 @@ function wp_dropdown_roles($selected = '') * @since 2.0.0 * * @param string $action The action attribute for the form. + * @phpstan-return void */ function wp_import_upload_form($action) { @@ -93871,6 +94758,7 @@ function add_meta_box($id, $title, $callback, $screen = \null, $context = 'advan * old_callback?: callable, * args?: array, * } $box + * @phpstan-return void */ function do_block_editor_incompatible_meta_box($data_object, $box) { @@ -93985,6 +94873,7 @@ function do_accordion_sections($screen, $context, $data_object) * after_section?: string, * section_class?: string, * } $args + * @phpstan-return void */ function add_settings_section($id, $title, $callback, $page, $args = array()) { @@ -94027,6 +94916,7 @@ function add_settings_section($id, $title, $callback, $page, $args = array()) * label_for?: string, * class?: string, * } $args + * @phpstan-return void */ function add_settings_field($id, $title, $callback, $page, $section = 'default', $args = array()) { @@ -94091,6 +94981,7 @@ function do_settings_fields($page, $section) * `
` and `

` tags). * @param string $type Optional. Message type, controls HTML class. Possible values include 'error', * 'success', 'warning', 'info'. Default 'error'. + * @phpstan-return void */ function add_settings_error($setting, $code, $message, $type = 'error') { @@ -94179,6 +95070,7 @@ function settings_errors($setting = '', $sanitize = \false, $hide_on_update = \f * @since 2.7.0 * * @param string $found_action Optional. The value of the 'found_action' input field. Default empty string. + * @phpstan-return void */ function find_posts_div($found_action = '') { @@ -94189,6 +95081,7 @@ function find_posts_div($found_action = '') * The password is passed through esc_attr() to ensure that it is safe for placing in an HTML attribute. * * @since 2.7.0 + * @phpstan-return void */ function the_post_password() { @@ -94214,6 +95107,7 @@ function _draft_or_post_title($post = 0) * should only be used when the_search_query() cannot. * * @since 2.7.0 + * @phpstan-return void */ function _admin_search_query() { @@ -94231,6 +95125,7 @@ function _admin_search_query() * @param string $title Optional. Title of the Iframe page. Default empty. * @param bool $deprecated Not used. * @phpstan-param false $deprecated + * @phpstan-return void */ function iframe_header($title = '', $deprecated = \false) { @@ -94239,6 +95134,7 @@ function iframe_header($title = '', $deprecated = \false) * Generic Iframe footer for use with Thickbox. * * @since 2.7.0 + * @phpstan-return void */ function iframe_footer() { @@ -94304,6 +95200,7 @@ function get_media_states($post) * has to be deleted. * * @since 2.8.0 + * @phpstan-return void */ function compression_test() { @@ -94329,6 +95226,7 @@ function compression_test() * where attribute is the key. Attributes can also be provided as a string, * e.g. `id="search-submit"`, though the array format is generally preferred. * Default empty string. + * @phpstan-return void */ function submit_button($text = '', $type = 'primary', $name = 'submit', $wrap = \true, $other_attributes = '') { @@ -94364,6 +95262,7 @@ function get_submit_button($text = '', $type = 'primary large', $name = 'submit' * @since 3.3.0 * * @global bool $is_IE + * @phpstan-return void */ function _wp_admin_html_begin() { @@ -94384,6 +95283,7 @@ function convert_to_screen($hook_name) * * @since 3.6.0 * @access private + * @phpstan-return void */ function _local_storage_notice() { @@ -94425,6 +95325,7 @@ function wp_star_rating($args = array()) * * @ignore * @since 4.2.0 + * @phpstan-return void */ function _wp_posts_page_notice() { @@ -94434,6 +95335,7 @@ function _wp_posts_page_notice() * * @ignore * @since 5.8.0 + * @phpstan-return void */ function _wp_block_editor_posts_page_notice() { @@ -94456,6 +95358,7 @@ function install_themes_feature_list() * @since 2.8.0 * * @param bool $type_selector + * @phpstan-return void */ function install_theme_search_form($type_selector = \true) { @@ -94464,6 +95367,7 @@ function install_theme_search_form($type_selector = \true) * Displays tags filter for themes. * * @since 2.8.0 + * @phpstan-return void */ function install_themes_dashboard() { @@ -94472,6 +95376,7 @@ function install_themes_dashboard() * Displays a form to upload themes from zip files. * * @since 2.8.0 + * @phpstan-return void */ function install_themes_upload() { @@ -94494,6 +95399,7 @@ function display_theme($theme) * @since 2.8.0 * * @global WP_Theme_Install_List_Table $wp_list_table + * @phpstan-return void */ function display_themes() { @@ -94560,6 +95466,7 @@ function _get_template_edit_filename($fullpath, $containingfolder) * @see get_theme_update_available() * * @param WP_Theme $theme Theme data object. + * @phpstan-return void */ function theme_update_available($theme) { @@ -94749,6 +95656,7 @@ function wp_prepare_themes_for_js($themes = \null) * Prints JS templates for the theme-browsing UI in the Customizer. * * @since 4.2.0 + * @phpstan-return void */ function customize_themes_print_templates() { @@ -94906,6 +95814,7 @@ function wp_get_available_translations() * @global string $wp_local_package Locale code of the package. * * @param array[] $languages Array of available languages (populated via the Translation API). + * @phpstan-return void */ function wp_install_language_form($languages) { @@ -95040,6 +95949,7 @@ function _redirect_to_about_wordpress($new_version) * * @global string[] $wp_theme_directories * @global WP_Filesystem_Base $wp_filesystem + * @phpstan-return void */ function _upgrade_422_remove_genericons() { @@ -95059,6 +95969,7 @@ function _upgrade_422_find_genericons_files_in_folder($directory) /** * @ignore * @since 4.4.0 + * @phpstan-return void */ function _upgrade_440_force_deactivate_incompatible_plugins() { @@ -95071,6 +95982,7 @@ function _upgrade_440_force_deactivate_incompatible_plugins() * @since 6.1.1 The minimum compatible version of Gutenberg is 14.1. * @since 6.4.0 The minimum compatible version of Gutenberg is 16.5. * @since 6.5.0 The minimum compatible version of Gutenberg is 17.6. + * @phpstan-return void */ function _upgrade_core_deactivate_incompatible_plugins() { @@ -95182,6 +96094,7 @@ function update_nag() * Displays WordPress version and active theme in the 'At a Glance' dashboard widget. * * @since 2.5.0 + * @phpstan-return void */ function update_right_now_message() { @@ -95275,6 +96188,7 @@ function maintenance_nag() * @type string message The notice's message. * @type string type The type of update the notice is for. Either 'plugin' or 'theme'. * } + * @phpstan-return void */ function wp_print_admin_notice_templates() { @@ -95305,6 +96219,7 @@ function wp_print_admin_notice_templates() * @type string name Plugin name. * @type string colspan The number of table columns this row spans. * } + * @phpstan-return void */ function wp_print_update_row_templates() { @@ -95411,6 +96326,7 @@ function wp_install( * @global string $table_prefix The database table prefix. * * @param int $user_id User ID. + * @phpstan-return void */ function wp_install_defaults($user_id) { @@ -95442,6 +96358,7 @@ function wp_install_maybe_enable_pretty_permalinks() * @param int $user_id Administrator's user ID. * @param string $password Administrator's password. Note that a placeholder message is * usually passed instead of the actual password. + * @phpstan-return void */ function wp_new_blog_notification( $blog_title, @@ -95489,6 +96406,7 @@ function upgrade_all() * @since 1.0.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_100() { @@ -95500,6 +96418,7 @@ function upgrade_100() * @since 1.0.1 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_101() { @@ -95512,6 +96431,7 @@ function upgrade_101() * @since 6.8.0 User passwords are no longer hashed with md5. * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_110() { @@ -95523,6 +96443,7 @@ function upgrade_110() * @since 1.5.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_130() { @@ -95535,6 +96456,7 @@ function upgrade_130() * * @global wpdb $wpdb WordPress database abstraction object. * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_160() { @@ -95547,6 +96469,7 @@ function upgrade_160() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_210() { @@ -95559,6 +96482,7 @@ function upgrade_210() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_230() { @@ -95570,6 +96494,7 @@ function upgrade_230() * @since 2.3.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_230_options_table() { @@ -95581,6 +96506,7 @@ function upgrade_230_options_table() * @since 2.3.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_230_old_tables() { @@ -95592,6 +96518,7 @@ function upgrade_230_old_tables() * @since 2.2.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_old_slugs() { @@ -95603,6 +96530,7 @@ function upgrade_old_slugs() * @since 2.5.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_250() { @@ -95614,6 +96542,7 @@ function upgrade_250() * @since 2.5.2 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_252() { @@ -95625,6 +96554,7 @@ function upgrade_252() * @since 2.6.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_260() { @@ -95637,6 +96567,7 @@ function upgrade_260() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_270() { @@ -95649,6 +96580,7 @@ function upgrade_270() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_280() { @@ -95660,6 +96592,7 @@ function upgrade_280() * @since 2.9.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_290() { @@ -95672,6 +96605,7 @@ function upgrade_290() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_300() { @@ -95699,6 +96633,7 @@ function upgrade_330() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_340() { @@ -95711,6 +96646,7 @@ function upgrade_340() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_350() { @@ -95722,6 +96658,7 @@ function upgrade_350() * @since 3.7.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_370() { @@ -95733,6 +96670,7 @@ function upgrade_370() * @since 3.7.2 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_372() { @@ -95744,6 +96682,7 @@ function upgrade_372() * @since 3.8.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_380() { @@ -95755,6 +96694,7 @@ function upgrade_380() * @since 4.0.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_400() { @@ -95776,6 +96716,7 @@ function upgrade_420() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_430() { @@ -95797,6 +96738,7 @@ function upgrade_430_fix_comments() * * @ignore * @since 4.3.1 + * @phpstan-return void */ function upgrade_431() { @@ -95809,6 +96751,7 @@ function upgrade_431() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_440() { @@ -95821,6 +96764,7 @@ function upgrade_440() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_450() { @@ -95832,6 +96776,7 @@ function upgrade_450() * @since 4.6.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_460() { @@ -95851,6 +96796,7 @@ function upgrade_500() * * @ignore * @since 5.1.0 + * @phpstan-return void */ function upgrade_510() { @@ -95860,6 +96806,7 @@ function upgrade_510() * * @ignore * @since 5.3.0 + * @phpstan-return void */ function upgrade_530() { @@ -95871,6 +96818,7 @@ function upgrade_530() * @since 5.5.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_550() { @@ -95883,6 +96831,7 @@ function upgrade_550() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_560() { @@ -95894,6 +96843,7 @@ function upgrade_560() * @since 5.9.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_590() { @@ -95905,6 +96855,7 @@ function upgrade_590() * @since 6.0.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_600() { @@ -95916,6 +96867,7 @@ function upgrade_600() * @since 6.3.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_630() { @@ -95927,6 +96879,7 @@ function upgrade_630() * @since 6.4.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_640() { @@ -95939,6 +96892,7 @@ function upgrade_640() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_650() { @@ -95950,6 +96904,7 @@ function upgrade_650() * @since 6.7.0 * * @global int $wp_current_db_version The old (current) database version. + * @phpstan-return void */ function upgrade_670() { @@ -95972,6 +96927,7 @@ function upgrade_682() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function upgrade_network() { @@ -96120,6 +97076,7 @@ function dbDelta($queries = '', $execute = \true) * @uses dbDelta * * @param string $tables Optional. Which set of tables to update. Default is 'all'. + * @phpstan-return void */ function make_db_current($tables = 'all') { @@ -96135,6 +97092,7 @@ function make_db_current($tables = 'all') * @see make_db_current() * * @param string $tables Optional. Which set of tables to update. Default is 'all'. + * @phpstan-return void */ function make_db_current_silent($tables = 'all') { @@ -96196,6 +97154,7 @@ function translate_level_to_role($level) * @since 2.1.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function wp_check_mysql_version() { @@ -96204,6 +97163,7 @@ function wp_check_mysql_version() * Disables the Automattic widgets plugin, which was merged into core. * * @since 2.2.0 + * @phpstan-return void */ function maybe_disable_automattic_widgets() { @@ -96215,6 +97175,7 @@ function maybe_disable_automattic_widgets() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function maybe_disable_link_manager() { @@ -96226,6 +97187,7 @@ function maybe_disable_link_manager() * * @global int $wp_current_db_version The old (current) database version. * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function pre_schema_upgrade() { @@ -96345,6 +97307,7 @@ function wp_delete_user($id, $reassign = \null) * @since 2.1.0 * * @param int $id User ID. + * @phpstan-return void */ function wp_revoke_user($id) { @@ -96382,6 +97345,7 @@ function default_password_nag() /** * @since 3.5.0 * @access private + * @phpstan-return void */ function delete_users_add_js() { @@ -96394,6 +97358,7 @@ function delete_users_add_js() * @since 2.7.0 * * @param WP_User $user User data object. + * @phpstan-return void */ function use_ssl_preference($user) { @@ -96452,6 +97417,7 @@ function wp_is_authorize_application_redirect_url_valid($url) * * @global array $wp_registered_widgets * @global array $wp_registered_widget_controls + * @phpstan-return void */ function wp_list_widgets() { @@ -96477,6 +97443,7 @@ function _sort_name_callback($a, $b) * * @param string $sidebar Sidebar ID. * @param string $sidebar_name Optional. Sidebar name. Default empty. + * @phpstan-return void */ function wp_list_widget_controls($sidebar, $sidebar_name = '') { @@ -96534,6 +97501,7 @@ function wp_widgets_access_body_class($classes) * @since 2.5.0 * * @param string $body_classes + * @phpstan-return void */ function display_header($body_classes = '') { @@ -96546,6 +97514,7 @@ function display_header($body_classes = '') * @global wpdb $wpdb WordPress database abstraction object. * * @param string|null $error + * @phpstan-return void */ function display_setup_form($error = \null) { @@ -96567,6 +97536,7 @@ function display_setup_form($error = \null) * @param resource $parser XML Parser resource. * @param string $tag_name XML element name. * @param array $attrs XML element attributes. + * @phpstan-return void */ function startElement($parser, $tag_name, $attrs) { @@ -96581,6 +97551,7 @@ function startElement($parser, $tag_name, $attrs) * * @param resource $parser XML Parser resource. * @param string $tag_name XML tag name. + * @phpstan-return void */ function endElement($parser, $tag_name) { @@ -96600,6 +97571,7 @@ function endElement($parser, $tag_name) * @param array $menu * @param array $submenu * @param bool $submenu_as_parent + * @phpstan-return void */ function _wp_menu_output($menu, $submenu, $submenu_as_parent = \true) { @@ -96612,6 +97584,7 @@ function _wp_menu_output($menu, $submenu, $submenu_as_parent = \true) * @since 3.0.0 * @since 5.9.0 Renamed 'Theme Editor' to 'Theme File Editor'. * Relocates to Tools for block themes. + * @phpstan-return void */ function _add_themes_utility_last() { @@ -96648,6 +97621,7 @@ function wp_load_press_this() * @since 2.3.0 * * @param string|string[] $body_classes Class attribute values for the body tag. + * @phpstan-return void */ function setup_config_display_header($body_classes = array()) { @@ -96684,6 +97658,7 @@ function wp_theme_auto_update_setting_template() * @global wpdb $wpdb WordPress database abstraction object. * * @param object $update + * @phpstan-return void */ function list_core_update($update) { @@ -96692,6 +97667,7 @@ function list_core_update($update) * Display dismissed updates. * * @since 2.7.0 + * @phpstan-return void */ function dismissed_updates() { @@ -96700,6 +97676,7 @@ function dismissed_updates() * Display upgrade WordPress for downloading latest or upgrading automatically form. * * @since 2.7.0 + * @phpstan-return void */ function core_upgrade_preamble() { @@ -96708,6 +97685,7 @@ function core_upgrade_preamble() * Display WordPress auto-updates settings. * * @since 5.6.0 + * @phpstan-return void */ function core_auto_updates_settings() { @@ -97288,6 +98266,7 @@ function wp_admin_bar_render() * @since 3.3.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. + * @phpstan-return void */ function wp_admin_bar_wp_menu($wp_admin_bar) { @@ -97298,6 +98277,7 @@ function wp_admin_bar_wp_menu($wp_admin_bar) * @since 3.8.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. + * @phpstan-return void */ function wp_admin_bar_sidebar_toggle($wp_admin_bar) { @@ -97476,6 +98456,7 @@ function wp_admin_bar_recovery_mode_menu($wp_admin_bar) * @since 3.3.0 * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. + * @phpstan-return void */ function wp_admin_bar_add_secondary_groups($wp_admin_bar) { @@ -97509,6 +98490,7 @@ function wp_enqueue_admin_bar_bump_styles() * @global bool $show_admin_bar * * @param bool $show Whether to allow the admin bar to show. + * @phpstan-return void */ function show_admin_bar($show) { @@ -97603,6 +98585,7 @@ function get_the_modified_author($post = \null) * @since 2.8.0 * * @see get_the_author() + * @phpstan-return void */ function the_modified_author() { @@ -97659,6 +98642,7 @@ function get_the_author_meta($field = '', $user_id = \false) * @param int|false $user_id Optional. User ID. Defaults to the current post author. * * @see get_the_author_meta() + * @phpstan-return void */ function the_author_meta($field = '', $user_id = \false) { @@ -97688,6 +98672,7 @@ function get_the_author_link() * @link https://developer.wordpress.org/reference/functions/the_author_link/ * * @since 2.1.0 + * @phpstan-return void */ function the_author_link() { @@ -97707,6 +98692,7 @@ function get_the_author_posts() * * @link https://developer.wordpress.org/reference/functions/the_author_posts/ * @since 0.71 + * @phpstan-return void */ function the_author_posts() { @@ -97733,6 +98719,7 @@ function get_the_author_posts_link() * * @param string $deprecated Unused. * @phpstan-param '' $deprecated + * @phpstan-return void */ function the_author_posts_link($deprecated = '') { @@ -97830,6 +98817,7 @@ function is_multi_author() * * @since 3.2.0 * @access private + * @phpstan-return void */ function __clear_multi_author_cache() { @@ -97987,6 +98975,7 @@ function _block_bindings_pattern_overrides_get_value(array $source_args, $block_ * * @since 6.5.0 * @access private + * @phpstan-return void */ function _register_block_bindings_pattern_overrides_source() { @@ -98010,6 +98999,7 @@ function _block_bindings_post_data_get_value(array $source_args, $block_instance * * @since 6.9.0 * @access private + * @phpstan-return void */ function _register_block_bindings_post_data_source() { @@ -98033,6 +99023,7 @@ function _block_bindings_post_meta_get_value(array $source_args, $block_instance * * @since 6.5.0 * @access private + * @phpstan-return void */ function _register_block_bindings_post_meta_source() { @@ -98227,6 +99218,7 @@ function get_classic_theme_supports_block_editor_settings() * This function sets IFRAME_REQUEST to true if the site preview parameter is set. * * @since 6.8.0 + * @phpstan-return void */ function wp_initialize_site_preview_hooks() { @@ -98237,6 +99229,7 @@ function wp_initialize_site_preview_hooks() * @since 5.5.0 * @since 6.3.0 Added source to core block patterns. * @access private + * @phpstan-return void */ function _register_core_block_patterns_and_categories() { @@ -98318,6 +99311,7 @@ function _register_theme_block_patterns() * @access private * * @param WP_Block_Type $block_type Block Type. + * @phpstan-return void */ function wp_register_alignment_support($block_type) { @@ -98413,6 +99407,7 @@ function wp_get_block_style_variation_name_from_class($class_string) * * @param array $variation_data Reference to the variation data being processed. * @param array $theme_json Theme.json data to retrieve referenced values from. + * @phpstan-return void */ function wp_resolve_block_style_variation_ref_values(&$variation_data, $theme_json) { @@ -98460,6 +99455,7 @@ function wp_render_block_style_variation_class_name($block_content, $block) * * @since 6.6.0 * @access private + * @phpstan-return void */ function wp_enqueue_block_style_variation_styles() { @@ -98498,6 +99494,7 @@ function wp_render_block_visibility_support($block_content, $block) * @access private * * @param WP_Block_Type $block_type Block Type. + * @phpstan-return void */ function wp_register_border_support($block_type) { @@ -98544,6 +99541,7 @@ function wp_has_border_feature_support($block_type, $feature, $default_value = \ * @access private * * @param WP_Block_Type $block_type Block Type. + * @phpstan-return void */ function wp_register_colors_support($block_type) { @@ -98571,6 +99569,7 @@ function wp_apply_colors_support($block_type, $block_attributes) * @access private * * @param WP_Block_Type $block_type Block Type. + * @phpstan-return void */ function wp_register_custom_classname_support($block_type) { @@ -98740,6 +99739,7 @@ function wp_get_layout_definitions() * @access private * * @param WP_Block_Type $block_type Block Type. + * @phpstan-return void */ function wp_register_layout_support($block_type) { @@ -98836,6 +99836,7 @@ function wp_restore_image_outer_container($block_content, $block) * @access private * * @param WP_Block_Type $block_type Block Type. + * @phpstan-return void */ function wp_register_position_support($block_type) { @@ -98933,6 +99934,7 @@ function wp_apply_shadow_support($block_type, $block_attributes) * @access private * * @param WP_Block_Type $block_type Block Type. + * @phpstan-return void */ function wp_register_spacing_support($block_type) { @@ -99327,6 +100329,7 @@ function _flatten_blocks(&$blocks) * @access private * * @param array $block a parsed block. + * @phpstan-return void */ function _inject_theme_attribute_in_template_part_block(&$block) { @@ -99338,6 +100341,7 @@ function _inject_theme_attribute_in_template_part_block(&$block) * @access private * * @param array $block a parsed block. + * @phpstan-return void */ function _remove_theme_attribute_from_template_part_block(&$block) { @@ -99493,6 +100497,7 @@ function block_template_part($part) * Prints the header block template part. * * @since 5.9.0 + * @phpstan-return void */ function block_header_area() { @@ -99501,6 +100506,7 @@ function block_header_area() * Prints the footer block template part. * * @since 5.9.0 + * @phpstan-return void */ function block_footer_area() { @@ -99574,6 +100580,7 @@ function inject_ignored_hooked_blocks_metadata_attributes($changes, $deprecated * * @access private * @since 5.9.0 + * @phpstan-return void */ function _add_template_loader_filters() { @@ -99630,6 +100637,7 @@ function resolve_block_template($template_type, $template_hierarchy, $fallback_t * @since 5.8.0 * * @see _wp_render_title_tag() + * @phpstan-return void */ function _block_template_render_title_tag() { @@ -99657,6 +100665,7 @@ function get_the_block_template_html() * * @access private * @since 5.8.0 + * @phpstan-return void */ function _block_template_viewport_meta_tag() { @@ -99860,6 +100869,7 @@ function get_block_metadata_i18n_schema() * @param string $manifest Optional. The absolute path to the manifest file containing the metadata collection, in * order to register the collection. If this parameter is not provided, the `$path` parameter * must reference a previously registered block metadata collection. + * @phpstan-return void */ function wp_register_block_types_from_metadata_collection($path, $manifest = '') { @@ -99875,6 +100885,7 @@ function wp_register_block_types_from_metadata_collection($path, $manifest = '') * * @param string $path The base path in which block files for the collection reside. * @param string $manifest The path to the manifest file for the collection. + * @phpstan-return void */ function wp_register_block_metadata_collection($path, $manifest) { @@ -100841,6 +101852,7 @@ function _wp_filter_post_meta_footnotes($footnotes) * * @access private * @since 6.3.2 + * @phpstan-return void */ function _wp_footnotes_kses_init_filters() { @@ -100850,6 +101862,7 @@ function _wp_footnotes_kses_init_filters() * * @access private * @since 6.3.2 + * @phpstan-return void */ function _wp_footnotes_remove_filters() { @@ -100859,6 +101872,7 @@ function _wp_footnotes_remove_filters() * * @access private * @since 6.3.2 + * @phpstan-return void */ function _wp_footnotes_kses_init() { @@ -100898,6 +101912,7 @@ function block_core_accordion_item_render($attributes, $content) * Registers the `core/accordion-item` block on server. * * @since 6.9.0 + * @phpstan-return void */ function register_block_core_accordion_item() { @@ -100920,6 +101935,7 @@ function render_block_core_accordion($attributes, $content) * Registers the `core/accordion` block on server. * * @since 6.9.0 + * @phpstan-return void */ function register_block_core_accordion() { @@ -100955,6 +101971,7 @@ function block_core_archives_build_dropdown_script($dropdown_id) * Register archives block. * * @since 5.0.0 + * @phpstan-return void */ function register_block_core_archives() { @@ -100988,6 +102005,7 @@ function get_block_core_avatar_border_attributes($attributes) * Registers the `core/avatar` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_avatar() { @@ -101010,6 +102028,7 @@ function render_block_core_block($attributes, $content, $block_instance) * Registers the `core/block` block. * * @since 5.3.0 + * @phpstan-return void */ function register_block_core_block() { @@ -101031,6 +102050,7 @@ function render_block_core_button($attributes, $content) * Registers the `core/button` block on server. * * @since 6.6.0 + * @phpstan-return void */ function register_block_core_button() { @@ -101054,6 +102074,7 @@ function render_block_core_calendar($attributes) * Registers the `core/calendar` block on server. * * @since 5.2.0 + * @phpstan-return void */ function register_block_core_calendar() { @@ -101141,6 +102162,7 @@ function build_dropdown_script_block_core_categories($dropdown_id) * Registers the `core/categories` block on server. * * @since 5.0.0 + * @phpstan-return void */ function register_block_core_categories() { @@ -101162,6 +102184,7 @@ function render_block_core_comment_author_name($attributes, $content, $block) * Registers the `core/comment-author-name` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comment_author_name() { @@ -101183,6 +102206,7 @@ function render_block_core_comment_content($attributes, $content, $block) * Registers the `core/comment-content` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comment_content() { @@ -101204,6 +102228,7 @@ function render_block_core_comment_date($attributes, $content, $block) * Registers the `core/comment-date` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comment_date() { @@ -101226,6 +102251,7 @@ function render_block_core_comment_edit_link($attributes, $content, $block) * Registers the `core/comment-edit-link` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comment_edit_link() { @@ -101247,6 +102273,7 @@ function render_block_core_comment_reply_link($attributes, $content, $block) * Registers the `core/comment-reply-link` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comment_reply_link() { @@ -101284,6 +102311,7 @@ function render_block_core_comment_template($attributes, $content, $block) * Registers the `core/comment-template` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comment_template() { @@ -101306,6 +102334,7 @@ function render_block_core_comments_pagination_next($attributes, $content, $bloc * Registers the `core/comments-pagination-next` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comments_pagination_next() { @@ -101328,6 +102357,7 @@ function render_block_core_comments_pagination_numbers($attributes, $content, $b * Registers the `core/comments-pagination-numbers` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comments_pagination_numbers() { @@ -101350,6 +102380,7 @@ function render_block_core_comments_pagination_previous($attributes, $content, $ * Registers the `core/comments-pagination-previous` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comments_pagination_previous() { @@ -101371,6 +102402,7 @@ function render_block_core_comments_pagination($attributes, $content) * Registers the `core/comments-pagination` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comments_pagination() { @@ -101391,6 +102423,7 @@ function render_block_core_comments_title($attributes) * Registers the `core/comments-title` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_comments_title() { @@ -101422,6 +102455,7 @@ function render_block_core_comments($attributes, $content, $block) * Registers the `core/comments` block on the server. * * @since 6.1.0 + * @phpstan-return void */ function register_block_core_comments() { @@ -101445,6 +102479,7 @@ function comments_block_form_defaults($fields) * @since 6.1.0 * * @param string $block_name Name of the new block type. + * @phpstan-return void */ function enqueue_legacy_post_comments_block_styles($block_name) { @@ -101460,6 +102495,7 @@ function enqueue_legacy_post_comments_block_styles($block_name) * * @see https://github.com/WordPress/gutenberg/pull/41807 * @see https://github.com/WordPress/gutenberg/pull/32514 + * @phpstan-return void */ function register_legacy_post_comments_block() { @@ -101481,6 +102517,7 @@ function render_block_core_cover($attributes, $content) * Registers the `core/cover` block renderer on server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_cover() { @@ -101502,6 +102539,7 @@ function render_block_core_file($attributes, $content) * Registers the `core/file` block on server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_file() { @@ -101524,6 +102562,7 @@ function render_block_core_footnotes($attributes, $content, $block) * Registers the `core/footnotes` block on the server. * * @since 6.3.0 + * @phpstan-return void */ function register_block_core_footnotes() { @@ -101532,6 +102571,7 @@ function register_block_core_footnotes() * Registers the footnotes meta field required for footnotes to work. * * @since 6.5.0 + * @phpstan-return void */ function register_block_core_footnotes_post_meta() { @@ -101593,6 +102633,7 @@ function block_core_gallery_render($attributes, $content) * Registers the `core/gallery` block on server. * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_gallery() { @@ -101620,6 +102661,7 @@ function block_core_heading_render($attributes, $content) * Registers the `core/heading` block on server. * * @since 6.2.0 + * @phpstan-return void */ function register_block_core_heading() { @@ -101682,6 +102724,7 @@ function render_block_core_home_link($attributes, $content, $block) * * @uses render_block_core_home_link() * @throws WP_Error An WP_Error exception parsing the block definition. + * @phpstan-return void */ function register_block_core_home_link() { @@ -101730,6 +102773,7 @@ function block_core_image_render_lightbox($block_content, $block) } /** * @since 6.5.0 + * @phpstan-return void */ function block_core_image_print_lightbox_overlay() { @@ -101738,6 +102782,7 @@ function block_core_image_print_lightbox_overlay() * Registers the `core/image` block on server. * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_image() { @@ -101759,6 +102804,7 @@ function register_core_block_style_handles() * Dynamic core blocks are registered separately. * * @since 5.5.0 + * @phpstan-return void */ function register_core_block_types_from_metadata() { @@ -101771,6 +102817,7 @@ function register_core_block_types_from_metadata() * block initialization that happens at priority 10. * * @since 6.7.0 + * @phpstan-return void */ function wp_register_core_block_metadata_collection() { @@ -101816,6 +102863,7 @@ function render_block_core_latest_comments($attributes) * Registers the `core/latest-comments` block. * * @since 5.3.0 + * @phpstan-return void */ function register_block_core_latest_comments() { @@ -101852,6 +102900,7 @@ function render_block_core_latest_posts($attributes) * Registers the `core/latest-posts` block on server. * * @since 5.0.0 + * @phpstan-return void */ function register_block_core_latest_posts() { @@ -101895,6 +102944,7 @@ function render_block_core_legacy_widget($attributes) * Registers the 'core/legacy-widget' block. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_legacy_widget() { @@ -101931,6 +102981,7 @@ function block_core_list_render($attributes, $content) * Registers the `core/list` block on server. * * @since 6.6.0 + * @phpstan-return void */ function register_block_core_list() { @@ -101952,6 +103003,7 @@ function render_block_core_loginout($attributes) * Registers the `core/loginout` block on server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_loginout() { @@ -101973,6 +103025,7 @@ function render_block_core_media_text($attributes, $content) * Registers the `core/media-text` block renderer on server. * * @since 6.6.0 + * @phpstan-return void */ function register_block_core_media_text() { @@ -102084,6 +103137,7 @@ function block_core_navigation_link_build_variations() * * @uses render_block_core_navigation_link() * @throws WP_Error An WP_Error exception parsing the block definition. + * @phpstan-return void */ function register_block_core_navigation_link() { @@ -102133,6 +103187,7 @@ function render_block_core_navigation_submenu($attributes, $content, $block) * * @uses render_block_core_navigation_submenu() * @throws WP_Error An WP_Error exception parsing the block definition. + * @phpstan-return void */ function register_block_core_navigation_submenu() { @@ -102309,6 +103364,7 @@ function render_block_core_navigation($attributes, $content, $block) * * @uses render_block_core_navigation() * @throws WP_Error An WP_Error exception parsing the block definition. + * @phpstan-return void */ function register_block_core_navigation() { @@ -102396,6 +103452,7 @@ function block_core_navigation_get_most_recently_published_navigation() * Registers the `core/page-list-item` block on server. * * @since 6.3.0 + * @phpstan-return void */ function register_block_core_page_list_item() { @@ -102477,6 +103534,7 @@ function render_block_core_page_list($attributes, $content, $block) * Registers the `core/pages` block on server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_page_list() { @@ -102485,6 +103543,7 @@ function register_block_core_page_list() * Registers the `core/pattern` block on the server. * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_pattern() { @@ -102520,6 +103579,7 @@ function render_block_core_post_author_biography($attributes, $content, $block) * Registers the `core/post-author-biography` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_post_author_biography() { @@ -102541,6 +103601,7 @@ function render_block_core_post_author_name($attributes, $content, $block) * Registers the `core/post-author-name` block on the server. * * @since 6.2.0 + * @phpstan-return void */ function register_block_core_post_author_name() { @@ -102562,6 +103623,7 @@ function render_block_core_post_author($attributes, $content, $block) * Registers the `core/post-author` block on the server. * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_post_author() { @@ -102583,6 +103645,7 @@ function render_block_core_post_comments_count($attributes, $content, $block) * Registers the `core/post-comments-count` block on the server. * * @since 6.9.0 + * @phpstan-return void */ function register_block_core_post_comments_count() { @@ -102604,6 +103667,7 @@ function render_block_core_post_comments_form($attributes, $content, $block) * Registers the `core/post-comments-form` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_post_comments_form() { @@ -102637,6 +103701,7 @@ function render_block_core_post_comments_link($attributes, $content, $block) * Registers the `core/post-comments-link` block on the server. * * @since 6.9.0 + * @phpstan-return void */ function register_block_core_post_comments_link() { @@ -102658,6 +103723,7 @@ function render_block_core_post_content($attributes, $content, $block) * Registers the `core/post-content` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_post_content() { @@ -102680,6 +103746,7 @@ function render_block_core_post_date($attributes, $content, $block) * Registers the `core/post-date` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_post_date() { @@ -102701,6 +103768,7 @@ function render_block_core_post_excerpt($attributes, $content, $block) * Registers the `core/post-excerpt` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_post_excerpt() { @@ -102746,6 +103814,7 @@ function get_block_core_post_featured_image_border_attributes($attributes) * Registers the `core/post-featured-image` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_post_featured_image() { @@ -102767,6 +103836,7 @@ function render_block_core_post_navigation_link($attributes, $content) * Registers the `core/post-navigation-link` block on the server. * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_post_navigation_link() { @@ -102803,6 +103873,7 @@ function render_block_core_post_template($attributes, $content, $block) * Registers the `core/post-template` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_post_template() { @@ -102834,6 +103905,7 @@ function block_core_post_terms_build_variations() * Registers the `core/post-terms` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_post_terms() { @@ -102880,6 +103952,7 @@ function render_block_core_post_time_to_read($attributes, $content, $block) * Registers the `core/post-time-to-read` block on the server. * * @since 6.9.0 + * @phpstan-return void */ function register_block_core_post_time_to_read() { @@ -102902,6 +103975,7 @@ function render_block_core_post_title($attributes, $content, $block) * Registers the `core/post-title` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_post_title() { @@ -102926,6 +104000,7 @@ function render_block_core_query_no_results($attributes, $content, $block) * Registers the `core/query-no-results` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_query_no_results() { @@ -102950,6 +104025,7 @@ function render_block_core_query_pagination_next($attributes, $content, $block) * Registers the `core/query-pagination-next` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_query_pagination_next() { @@ -102974,6 +104050,7 @@ function render_block_core_query_pagination_numbers($attributes, $content, $bloc * Registers the `core/query-pagination-numbers` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_query_pagination_numbers() { @@ -102996,6 +104073,7 @@ function render_block_core_query_pagination_previous($attributes, $content, $blo * Registers the `core/query-pagination-previous` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_query_pagination_previous() { @@ -103017,6 +104095,7 @@ function render_block_core_query_pagination($attributes, $content) * Registers the `core/query-pagination` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_query_pagination() { @@ -103041,6 +104120,7 @@ function render_block_core_query_title($attributes, $content, $block) * Registers the `core/query-title` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_query_title() { @@ -103066,6 +104146,7 @@ function render_block_core_query_total($attributes, $content, $block) * Registers the `query-total` block. * * @since 6.8.0 + * @phpstan-return void */ function register_block_core_query_total() { @@ -103088,6 +104169,7 @@ function render_block_core_query($attributes, $content, $block) * Registers the `core/query` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_query() { @@ -103123,6 +104205,7 @@ function render_block_core_read_more($attributes, $content, $block) * Registers the `core/read-more` block on the server. * * @since 6.0.0 + * @phpstan-return void */ function register_block_core_read_more() { @@ -103144,6 +104227,7 @@ function render_block_core_rss($attributes) * Registers the `core/rss` block on server. * * @since 5.2.0 + * @phpstan-return void */ function register_block_core_rss() { @@ -103165,6 +104249,7 @@ function render_block_core_search($attributes) * Registers the `core/search` block on the server. * * @since 5.2.0 + * @phpstan-return void */ function register_block_core_search() { @@ -103212,6 +104297,7 @@ function apply_block_core_search_border_style($attributes, $property, $side, &$w * @param array $wrapper_styles Current collection of wrapper styles. * @param array $button_styles Current collection of button styles. * @param array $input_styles Current collection of input styles. + * @phpstan-return void */ function apply_block_core_search_border_styles($attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles) { @@ -103298,6 +104384,7 @@ function render_block_core_shortcode($attributes, $content) * Registers the `core/shortcode` block on server. * * @since 5.0.0 + * @phpstan-return void */ function register_block_core_shortcode() { @@ -103319,6 +104406,7 @@ function render_block_core_site_logo($attributes) * Register a core site setting for a site logo * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_site_logo_setting() { @@ -103327,6 +104415,7 @@ function register_block_core_site_logo_setting() * Register a core site setting for a site icon * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_site_icon_setting() { @@ -103335,6 +104424,7 @@ function register_block_core_site_icon_setting() * Registers the `core/site-logo` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_site_logo() { @@ -103394,6 +104484,7 @@ function _delete_site_logo_on_remove_theme_mods() * Runs on `setup_theme` to account for dynamically-switched themes in the Customizer. * * @since 5.8.0 + * @phpstan-return void */ function _delete_site_logo_on_remove_custom_logo_on_setup_theme() { @@ -103404,6 +104495,7 @@ function _delete_site_logo_on_remove_custom_logo_on_setup_theme() * @since 5.9.0 * * @global array $_ignore_site_logo_changes + * @phpstan-return void */ function _delete_custom_logo_on_remove_site_logo() { @@ -103424,6 +104516,7 @@ function render_block_core_site_tagline($attributes) * Registers the `core/site-tagline` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_site_tagline() { @@ -103444,6 +104537,7 @@ function render_block_core_site_title($attributes) * Registers the `core/site-title` block on the server. * * @since 5.8.0 + * @phpstan-return void */ function register_block_core_site_title() { @@ -103466,6 +104560,7 @@ function render_block_core_social_link($attributes, $content, $block) * Registers the `core/social-link` blocks. * * @since 5.4.0 + * @phpstan-return void */ function register_block_core_social_link() { @@ -103547,6 +104642,7 @@ function render_block_core_tag_cloud($attributes) * Registers the `core/tag-cloud` block on server. * * @since 5.2.0 + * @phpstan-return void */ function register_block_core_tag_cloud() { @@ -103601,6 +104697,7 @@ function build_template_part_block_variations() * Registers the `core/template-part` block on the server. * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_template_part() { @@ -103623,6 +104720,7 @@ function render_block_core_term_count($attributes, $content, $block) * Registers the `core/term-count` block on the server. * * @since 6.9.0 + * @phpstan-return void */ function register_block_core_term_count() { @@ -103645,6 +104743,7 @@ function render_block_core_term_description($attributes, $content, $block) * Registers the `core/term-description` block on the server. * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_term_description() { @@ -103667,6 +104766,7 @@ function render_block_core_term_name($attributes, $content, $block) * Registers the `core/term-name` block on the server. * * @since 6.9.0 + * @phpstan-return void */ function register_block_core_term_name() { @@ -103689,6 +104789,7 @@ function render_block_core_term_template($attributes, $content, $block) * Registers the `core/term-template` block on the server. * * @since 6.9.0 + * @phpstan-return void */ function register_block_core_term_template() { @@ -103737,6 +104838,7 @@ function render_block_core_widget_group($attributes, $content, $block) * Registers the 'core/widget-group' block. * * @since 5.9.0 + * @phpstan-return void */ function register_block_core_widget_group() { @@ -103751,6 +104853,7 @@ function register_block_core_widget_group() * @global int|string $_sidebar_being_rendered * * @param int|string $index Index, name, or ID of the dynamic sidebar. + * @phpstan-return void */ function note_sidebar_being_rendered($index) { @@ -103762,6 +104865,7 @@ function note_sidebar_being_rendered($index) * @since 5.9.0 * * @global int|string $_sidebar_being_rendered + * @phpstan-return void */ function discard_sidebar_being_rendered() { @@ -104037,6 +105141,7 @@ function sanitize_bookmark_field($field, $value, $bookmark_id, $context) * @since 2.7.0 * * @param int $bookmark_id Bookmark ID. + * @phpstan-return void */ function clean_bookmark_cache($bookmark_id) { @@ -104047,6 +105152,7 @@ function clean_bookmark_cache($bookmark_id) * @since 2.0.0 * * @global WP_Object_Cache $wp_object_cache + * @phpstan-return void */ function wp_cache_init() { @@ -104328,6 +105434,7 @@ function wp_cache_close() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param string|string[] $groups A group or an array of groups to add. + * @phpstan-return void */ function wp_cache_add_global_groups($groups) { @@ -104338,6 +105445,7 @@ function wp_cache_add_global_groups($groups) * @since 2.6.0 * * @param string|string[] $groups A group or an array of groups to add. + * @phpstan-return void */ function wp_cache_add_non_persistent_groups($groups) { @@ -104353,6 +105461,7 @@ function wp_cache_add_non_persistent_groups($groups) * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int $blog_id Site ID. + * @phpstan-return void */ function wp_cache_switch_to_blog($blog_id) { @@ -104700,6 +105809,7 @@ function add_role($role, $display_name, $capabilities = array()) * @since 2.0.0 * * @param string $role Role name. + * @phpstan-return void */ function remove_role($role) { @@ -104919,6 +106029,7 @@ function in_category($category, $post = \null) * @param string $parents Optional. How to display the parents. Accepts 'multiple', 'single', or empty. * Default empty string. * @param int|false $post_id Optional. ID of the post to retrieve categories for. Defaults to the current post. + * @phpstan-return void */ function the_category($separator = '', $parents = '', $post_id = \false) { @@ -105356,6 +106467,7 @@ function get_the_tag_list($before = '', $sep = '', $after = '', $post_id = 0) * @param string $before Optional. String to use before the tags. Defaults to 'Tags:'. * @param string $sep Optional. String to use between the tags. Default ', '. * @param string $after Optional. String to use after the tags. Default empty. + * @phpstan-return void */ function the_tags($before = \null, $sep = ', ', $after = '') { @@ -105728,6 +106840,7 @@ function get_tag($tag, $output = \OBJECT, $filter = 'raw') * @since 2.1.0 * * @param int $id Category ID + * @phpstan-return void */ function clean_category_cache($id) { @@ -105751,6 +106864,7 @@ function clean_category_cache($id) * @access private * * @param array|object|WP_Term $category Category row object or array. + * @phpstan-return void */ function _make_cat_compat(&$category) { @@ -105869,6 +106983,7 @@ function get_comment_author($comment_id = 0) * * @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author. * Default current comment. + * @phpstan-return void */ function comment_author($comment_id = 0) { @@ -105900,6 +107015,7 @@ function get_comment_author_email($comment_id = 0) * * @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's email. * Default current comment. + * @phpstan-return void */ function comment_author_email($comment_id = 0) { @@ -105921,6 +107037,7 @@ function comment_author_email($comment_id = 0) * @param string $before Optional. Text or HTML to display before the email link. Default empty. * @param string $after Optional. Text or HTML to display after the email link. Default empty. * @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object. Default is the current comment. + * @phpstan-return void */ function comment_author_email_link($link_text = '', $before = '', $after = '', $comment = \null) { @@ -105972,6 +107089,7 @@ function get_comment_author_link($comment_id = 0) * * @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's link. * Default current comment. + * @phpstan-return void */ function comment_author_link($comment_id = 0) { @@ -105997,6 +107115,7 @@ function get_comment_author_IP($comment_id = 0) * * @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's IP address. * Default current comment. + * @phpstan-return void */ function comment_author_IP($comment_id = 0) { @@ -106022,6 +107141,7 @@ function get_comment_author_url($comment_id = 0) * * @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's URL. * Default current comment. + * @phpstan-return void */ function comment_author_url($comment_id = 0) { @@ -106066,6 +107186,7 @@ function get_comment_author_url_link($link_text = '', $before = '', $after = '', * Default empty. * @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object. * Default is the current comment. + * @phpstan-return void */ function comment_author_url_link($link_text = '', $before = '', $after = '', $comment = 0) { @@ -106130,6 +107251,7 @@ function get_comment_date($format = '', $comment_id = 0) * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. * @param int|WP_Comment $comment_id WP_Comment or ID of the comment for which to print the date. * Default current comment. + * @phpstan-return void */ function comment_date($format = '', $comment_id = 0) { @@ -106157,6 +107279,7 @@ function get_comment_excerpt($comment_id = 0) * * @param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to print the excerpt. * Default current comment. + * @phpstan-return void */ function comment_excerpt($comment_id = 0) { @@ -106175,6 +107298,7 @@ function get_comment_ID() * Displays the comment ID of the current comment. * * @since 0.71 + * @phpstan-return void */ function comment_ID() { @@ -106234,6 +107358,7 @@ function get_comments_link($post = 0) * @param string $deprecated_2 Not Used. * @phpstan-param '' $deprecated * @phpstan-param '' $deprecated_2 + * @phpstan-return void */ function comments_link($deprecated = '', $deprecated_2 = '') { @@ -106260,6 +107385,7 @@ function get_comments_number($post = 0) * @param string|false $one Optional. Text for one comment. Default false. * @param string|false $more Optional. Text for more than one comment. Default false. * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is the global `$post`. + * @phpstan-return void */ function comments_number($zero = \false, $one = \false, $more = \false, $post = 0) { @@ -106307,6 +107433,7 @@ function get_comment_text($comment_id = 0, $args = array()) * @param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to print the text. * Default current comment. * @param array $args Optional. An array of arguments. Default empty array. + * @phpstan-return void */ function comment_text($comment_id = 0, $args = array()) { @@ -106337,6 +107464,7 @@ function get_comment_time($format = '', $gmt = \false, $translate = \true, $comm * @param string $format Optional. PHP time format. Defaults to the 'time_format' option. * @param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to print the time. * Default current comment. + * @phpstan-return void */ function comment_time($format = '', $comment_id = 0) { @@ -106362,6 +107490,7 @@ function get_comment_type($comment_id = 0) * @param string|false $comment_text Optional. String to display for comment type. Default false. * @param string|false $trackback_text Optional. String to display for trackback type. Default false. * @param string|false $pingback_text Optional. String to display for pingback type. Default false. + * @phpstan-return void */ function comment_type($comment_text = \false, $trackback_text = \false, $pingback_text = \false) { @@ -106450,6 +107579,7 @@ function pings_open($post = \null) * Backported to 2.0.10. * * @since 2.1.3 + * @phpstan-return void */ function wp_comment_form_unfiltered_html_nonce() { @@ -106567,6 +107697,7 @@ function get_comment_reply_link($args = array(), $comment = \null, $post = \null * @param int|WP_Comment $comment Optional. Comment being replied to. Default current comment. * @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on. * Default current post. + * @phpstan-return void */ function comment_reply_link($args = array(), $comment = \null, $post = \null) { @@ -106615,6 +107746,7 @@ function get_post_reply_link($args = array(), $post = \null) * @param array $args Optional. Override default options. Default empty array. * @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on. * Default current post. + * @phpstan-return void */ function post_reply_link($args = array(), $post = \null) { @@ -106641,6 +107773,7 @@ function get_cancel_comment_reply_link($link_text = '', $post = \null) * * @param string $link_text Optional. Text to display for cancel reply link. If empty, * defaults to 'Click here to cancel reply'. Default empty. + * @phpstan-return void */ function cancel_comment_reply_link($link_text = '') { @@ -106673,6 +107806,7 @@ function get_comment_id_fields($post = \null) * * @param int|WP_Post|null $post Optional. The post the comment is being displayed for. * Defaults to the current global post. + * @phpstan-return void */ function comment_id_fields($post = \null) { @@ -107282,6 +108416,7 @@ function wp_set_comment_cookies($comment, $user, $cookies_consent = \true) * Mostly used after cookies had been sent to use elsewhere. * * @since 2.0.4 + * @phpstan-return void */ function sanitize_comment_cookies() { @@ -107315,6 +108450,7 @@ function wp_allow_comment($commentdata, $wp_error = \false) * * @since 2.3.0 * @since 4.7.0 Converted to be an add_filter() wrapper. + * @phpstan-return void */ function check_comment_flood_db() { @@ -107586,6 +108722,7 @@ function wp_get_comment_status($comment_id) * @param string $new_status New comment status. * @param string $old_status Previous comment status. * @param WP_Comment $comment Comment object. + * @phpstan-return void */ function wp_transition_comment_status($new_status, $old_status, $comment) { @@ -107601,6 +108738,7 @@ function wp_transition_comment_status($new_status, $old_status, $comment) * * @param string $new_status The new comment status. * @param string $old_status The old comment status. + * @phpstan-return void */ function _clear_modified_cache_on_transition_comment_status($new_status, $old_status) { @@ -107825,6 +108963,7 @@ function wp_new_comment_notify_postauthor($comment_id) * @since 6.9.0 * * @param WP_Comment $comment The comment object. + * @phpstan-return void */ function wp_new_comment_via_rest_notify_postauthor($comment) { @@ -107946,6 +109085,7 @@ function discover_pingback_server_uri($url, $deprecated = '') * * @since 2.1.0 * @since 5.6.0 Introduced `do_all_pings` action hook for individual services. + * @phpstan-return void */ function do_all_pings() { @@ -107954,6 +109094,7 @@ function do_all_pings() * Performs all pingbacks. * * @since 5.6.0 + * @phpstan-return void */ function do_all_pingbacks() { @@ -107962,6 +109103,7 @@ function do_all_pingbacks() * Performs all enclosures. * * @since 5.6.0 + * @phpstan-return void */ function do_all_enclosures() { @@ -107970,6 +109112,7 @@ function do_all_enclosures() * Performs all trackbacks. * * @since 5.6.0 + * @phpstan-return void */ function do_all_trackbacks() { @@ -108049,6 +109192,7 @@ function trackback($trackback_url, $title, $excerpt, $post_id) * * @param string $server Host of blog to connect to. * @param string $path Path to send the ping. + * @phpstan-return void */ function weblog_ping($server = '', $path = '') { @@ -108088,6 +109232,7 @@ function xmlrpc_pingback_error($ixr_error) * @since 2.3.0 * * @param int|array $ids Comment ID or an array of comment IDs to remove from cache. + * @phpstan-return void */ function clean_comment_cache($ids) { @@ -108104,6 +109249,7 @@ function clean_comment_cache($ids) * * @param WP_Comment[] $comments Array of comment objects * @param bool $update_meta_cache Whether to update commentmeta cache. Default true. + * @phpstan-return void */ function update_comment_cache($comments, $update_meta_cache = \true) { @@ -108120,6 +109266,7 @@ function update_comment_cache($comments, $update_meta_cache = \true) * * @param int[] $comment_ids Array of comment IDs. * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true. + * @phpstan-return void */ function _prime_comment_caches($comment_ids, $update_meta_cache = \true) { @@ -108257,6 +109404,7 @@ function wp_comments_personal_data_eraser($email_address, $page = 1) * Sets the last changed time for the 'comment' cache group. * * @since 5.0.0 + * @phpstan-return void */ function wp_cache_set_comments_last_changed() { @@ -108278,6 +109426,7 @@ function _wp_batch_update_comment_type() * * @ignore * @since 5.5.0 + * @phpstan-return void */ function _wp_check_for_scheduled_update_comment_type() { @@ -108871,6 +110020,7 @@ function _upgrade_cron_array($cron) * * @global int $blog_id The current site ID. * @global string $wp_version The WordPress version string. + * @phpstan-return void */ function wp_initial_constants() { @@ -108881,6 +110031,7 @@ function wp_initial_constants() * Defines must-use plugin directory constants, which may be overridden in the sunrise.php drop-in. * * @since 3.0.0 + * @phpstan-return void */ function wp_plugin_directory_constants() { @@ -108891,6 +110042,7 @@ function wp_plugin_directory_constants() * Defines constants after multisite is loaded. * * @since 3.0.0 + * @phpstan-return void */ function wp_cookie_constants() { @@ -108899,6 +110051,7 @@ function wp_cookie_constants() * Defines SSL-related WordPress constants. * * @since 3.0.0 + * @phpstan-return void */ function wp_ssl_constants() { @@ -108907,6 +110060,7 @@ function wp_ssl_constants() * Defines functionality-related WordPress constants. * * @since 3.0.0 + * @phpstan-return void */ function wp_functionality_constants() { @@ -108915,6 +110069,7 @@ function wp_functionality_constants() * Defines templating-related WordPress constants. * * @since 3.0.0 + * @phpstan-return void */ function wp_templating_constants() { @@ -108986,7 +110141,6 @@ function the_category_head($before = '', $after = '') * @param string $in_same_cat * @param int $limitprev * @param string $excluded_categories - * @phpstan-return void */ function previous_post($format = '%', $previous = 'previous post: ', $title = 'yes', $in_same_cat = 'no', $limitprev = 1, $excluded_categories = '') { @@ -109004,7 +110158,6 @@ function previous_post($format = '%', $previous = 'previous post: ', $title = 'y * @param string $in_same_cat * @param int $limitnext * @param string $excluded_categories - * @phpstan-return void */ function next_post($format = '%', $next = 'next post: ', $title = 'yes', $in_same_cat = 'no', $limitnext = 1, $excluded_categories = '') { @@ -111646,7 +112799,6 @@ function noindex() * @since 3.3.0 * @since 5.3.0 Echo `noindex,nofollow` if search engine visibility is discouraged. * @deprecated 5.7.0 Use wp_robots_no_robots() instead on 'wp_robots' filter. - * @phpstan-return void */ function wp_no_robots() { @@ -112177,7 +113329,6 @@ function wp_get_global_styles_svg_filters() * * @since 5.9.1 * @deprecated 6.3.0 SVG generation is handled on a per-block basis in block supports. - * @phpstan-return void */ function wp_global_styles_render_svg_filters() { @@ -112245,7 +113396,6 @@ function print_embed_styles() * * @since 4.2.0 * @deprecated 6.4.0 Use wp_enqueue_emoji_styles() instead. - * @phpstan-return void */ function print_emoji_styles() { @@ -112279,7 +113429,6 @@ function _admin_bar_bump_cb() * update the `https_detection_errors` option, but this is no longer necessary as the errors are * retrieved directly in Site Health and no longer used outside of Site Health. * @access private - * @phpstan-return void */ function wp_update_https_detection_errors() { @@ -112341,7 +113490,6 @@ function _remove_theme_attribute_in_block_template_content($template_content) * @deprecated 6.4.0 Use wp_enqueue_block_template_skip_link() instead. * * @global string $_wp_current_template_content - * @phpstan-return void */ function the_block_template_skip_link() { @@ -112422,7 +113570,6 @@ function wp_get_global_styles_custom_css() * * @since 6.2.0 * @deprecated 6.7.0 Use {@see 'wp_enqueue_global_styles'} instead. - * @phpstan-return void */ function wp_enqueue_global_styles_custom_css() { @@ -112488,7 +113635,6 @@ function wp_add_editor_classic_theme_styles($editor_settings) * @see https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size * @see https://core.trac.wordpress.org/ticket/62413 * @see https://core.trac.wordpress.org/ticket/62731 - * @phpstan-return void */ function wp_print_auto_sizes_contain_css_fix() { @@ -112507,6 +113653,7 @@ function wp_print_auto_sizes_contain_css_fix() * @param callable $callback The callback function that will be called if the regex is matched. * @param int $priority Optional. Used to specify the order in which the registered handlers will * be tested. Default 10. + * @phpstan-return void */ function wp_embed_register_handler($id, $regex, $callback, $priority = 10) { @@ -112520,6 +113667,7 @@ function wp_embed_register_handler($id, $regex, $callback, $priority = 10) * * @param string $id The handler ID that should be removed. * @param int $priority Optional. The priority of the handler to be removed. Default 10. + * @phpstan-return void */ function wp_embed_unregister_handler($id, $priority = 10) { @@ -112602,6 +113750,7 @@ function _wp_oembed_get_object() * as wildcards. * @param string $provider The URL to the oEmbed provider. * @param bool $regex Optional. Whether the `$format` parameter is in a RegEx format. Default false. + * @phpstan-return void */ function wp_oembed_add_provider($format, $provider, $regex = \false) { @@ -112684,6 +113833,7 @@ function wp_embed_handler_video($matches, $attr, $url, $rawattr) * Registers the oEmbed REST API route. * * @since 4.4.0 + * @phpstan-return void */ function wp_oembed_register_route() { @@ -112908,6 +114058,7 @@ function wp_embed_excerpt_more($more_string) * Intended to be used in 'The Loop'. * * @since 4.4.0 + * @phpstan-return void */ function the_excerpt_embed() { @@ -112934,6 +114085,7 @@ function wp_embed_excerpt_attachment($content) * Runs first in oembed_head(). * * @since 4.4.0 + * @phpstan-return void */ function enqueue_embed_scripts() { @@ -112951,6 +114103,7 @@ function wp_enqueue_embed_styles() * Prints the JavaScript in the embed iframe header. * * @since 4.4.0 + * @phpstan-return void */ function print_embed_scripts() { @@ -112998,6 +114151,7 @@ function print_embed_sharing_dialog() * Prints the necessary markup for the site title in an embed template. * * @since 4.5.0 + * @phpstan-return void */ function the_embed_site_title() { @@ -113109,6 +114263,7 @@ function get_bloginfo_rss($show = '') * @see get_bloginfo() For the list of possible values to display. * * @param string $show See get_bloginfo() for possible values. + * @phpstan-return void */ function bloginfo_rss($show = '') { @@ -113147,6 +114302,7 @@ function get_wp_title_rss($deprecated = '–') * * @param string $deprecated Unused. * @phpstan-param '–' $deprecated + * @phpstan-return void */ function wp_title_rss($deprecated = '–') { @@ -113167,6 +114323,7 @@ function get_the_title_rss($post = 0) * Displays the post title in the feed. * * @since 0.71 + * @phpstan-return void */ function the_title_rss() { @@ -113190,6 +114347,7 @@ function get_the_content_feed($feed_type = \null) * @since 2.9.0 * * @param string $feed_type The type of feed. rss2 | atom | rss | rdf + * @phpstan-return void */ function the_content_feed($feed_type = \null) { @@ -113198,6 +114356,7 @@ function the_content_feed($feed_type = \null) * Displays the post excerpt for the feed. * * @since 0.71 + * @phpstan-return void */ function the_excerpt_rss() { @@ -113206,6 +114365,7 @@ function the_excerpt_rss() * Displays the permalink to the post for use in feeds. * * @since 2.3.0 + * @phpstan-return void */ function the_permalink_rss() { @@ -113214,6 +114374,7 @@ function the_permalink_rss() * Outputs the link to the comments for the current post in an XML safe way. * * @since 3.0.0 + * @phpstan-return void */ function comments_link_feed() { @@ -113224,6 +114385,7 @@ function comments_link_feed() * @since 2.5.0 * * @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object. + * @phpstan-return void */ function comment_guid($comment_id = \null) { @@ -113246,6 +114408,7 @@ function get_comment_guid($comment_id = \null) * @since 4.4.0 Introduced the `$comment` argument. * * @param int|WP_Comment $comment Optional. Comment object or ID. Defaults to global comment object. + * @phpstan-return void */ function comment_link($comment = \null) { @@ -113264,6 +114427,7 @@ function get_comment_author_rss() * Displays the current comment author in the feed. * * @since 1.0.0 + * @phpstan-return void */ function comment_author_rss() { @@ -113272,6 +114436,7 @@ function comment_author_rss() * Displays the current comment content for use in the feeds. * * @since 1.0.0 + * @phpstan-return void */ function comment_text_rss() { @@ -113299,6 +114464,7 @@ function get_the_category_rss($type = \null) * @see get_the_category_rss() For better explanation. * * @param string $type Optional, default is the type returned by get_default_feed(). + * @phpstan-return void */ function the_category_rss($type = \null) { @@ -113309,6 +114475,7 @@ function the_category_rss($type = \null) * The two possible values are either 'xhtml' or 'html'. * * @since 2.2.0 + * @phpstan-return void */ function html_type_rss() { @@ -113375,6 +114542,7 @@ function prep_atom_text_construct($data) * @since 4.3.0 * * @see get_site_icon_url() + * @phpstan-return void */ function atom_site_icon() { @@ -113383,6 +114551,7 @@ function atom_site_icon() * Displays Site Icon in RSS2. * * @since 4.3.0 + * @phpstan-return void */ function rss2_site_icon() { @@ -113403,6 +114572,7 @@ function get_self_link() * Generate a correct link for the atom:self element. * * @since 2.5.0 + * @phpstan-return void */ function self_link() { @@ -113645,6 +114815,7 @@ function _wp_before_delete_font_face($post_id, $post) * * @access private * @since 6.5.0 + * @phpstan-return void */ function _wp_register_default_font_collections() { @@ -115390,6 +116561,7 @@ function map_deep($value, $callback) * @param string $input_string The string to be parsed. * @param array $result Variables will be stored in this array. * @phpstan-param-out array $result + * @phpstan-return void */ function wp_parse_str($input_string, &$result) { @@ -115757,6 +116929,7 @@ function print_emoji_detection_script() * @ignore * @since 4.6.0 * @access private + * @phpstan-return void */ function _print_emoji_detection_script() { @@ -116404,6 +117577,7 @@ function wp_remote_fopen($uri) * @global WP_Query $wp_the_query Copy of the WordPress Query object. * * @param string|array $query_vars Default WP_Query arguments. + * @phpstan-return void */ function wp($query_vars = '') { @@ -116477,6 +117651,7 @@ function nocache_headers() * Sets the HTTP headers for caching for 10 days with JavaScript content type. * * @since 2.1.0 + * @phpstan-return void */ function cache_javascript_headers() { @@ -116519,6 +117694,7 @@ function bool_from_yn($yn) * @since 2.1.0 * * @global WP_Query $wp_query WordPress Query object. + * @phpstan-return void */ function do_feed() { @@ -116529,6 +117705,7 @@ function do_feed() * @since 2.1.0 * * @see load_template() + * @phpstan-return void */ function do_feed_rdf() { @@ -116539,6 +117716,7 @@ function do_feed_rdf() * @since 2.1.0 * * @see load_template() + * @phpstan-return void */ function do_feed_rss() { @@ -116551,6 +117729,7 @@ function do_feed_rss() * @see load_template() * * @param bool $for_comments True for the comment feed, false for normal feed. + * @phpstan-return void */ function do_feed_rss2($for_comments) { @@ -116563,6 +117742,7 @@ function do_feed_rss2($for_comments) * @see load_template() * * @param bool $for_comments True for the comment feed, false for normal feed. + * @phpstan-return void */ function do_feed_atom($for_comments) { @@ -116574,6 +117754,7 @@ function do_feed_atom($for_comments) * @since 5.3.0 Remove the "Disallow: /" output if search engine visibility is * discouraged in favor of robots meta HTML tag via wp_robots_no_robots() * filter callback. + * @phpstan-return void */ function do_robots() { @@ -117153,6 +118334,7 @@ function get_allowed_mime_types($user = \null) * @since 2.0.4 * * @param string $action The nonce action. + * @phpstan-return void */ function wp_nonce_ays($action) { @@ -117231,6 +118413,7 @@ function wp_die($message = '', $title = '', $args = array()) * @param string|WP_Error $message Error message or WP_Error object. * @param string $title Optional. Error title. Default empty string. * @param string|array $args Optional. Arguments to control behavior. Default empty array. + * @phpstan-return void */ function _default_wp_die_handler($message, $title = '', $args = array()) { @@ -117246,6 +118429,7 @@ function _default_wp_die_handler($message, $title = '', $args = array()) * @param string $message Error message. * @param string $title Optional. Error title (unused). Default empty string. * @param string|array $args Optional. Arguments to control behavior. Default empty array. + * @phpstan-return void */ function _ajax_wp_die_handler($message, $title = '', $args = array()) { @@ -117261,6 +118445,7 @@ function _ajax_wp_die_handler($message, $title = '', $args = array()) * @param string $message Error message. * @param string $title Optional. Error title. Default empty string. * @param string|array $args Optional. Arguments to control behavior. Default empty array. + * @phpstan-return void */ function _json_wp_die_handler($message, $title = '', $args = array()) { @@ -117276,6 +118461,7 @@ function _json_wp_die_handler($message, $title = '', $args = array()) * @param string $message Error message. * @param string $title Optional. Error title. Default empty string. * @param string|array $args Optional. Arguments to control behavior. Default empty array. + * @phpstan-return void */ function _jsonp_wp_die_handler($message, $title = '', $args = array()) { @@ -117293,6 +118479,7 @@ function _jsonp_wp_die_handler($message, $title = '', $args = array()) * @param string $message Error message. * @param string $title Optional. Error title. Default empty string. * @param string|array $args Optional. Arguments to control behavior. Default empty array. + * @phpstan-return void */ function _xmlrpc_wp_die_handler($message, $title = '', $args = array()) { @@ -117308,6 +118495,7 @@ function _xmlrpc_wp_die_handler($message, $title = '', $args = array()) * @param string $message Error message. * @param string $title Optional. Error title. Default empty string. * @param string|array $args Optional. Arguments to control behavior. Default empty array. + * @phpstan-return void */ function _xml_wp_die_handler($message, $title = '', $args = array()) { @@ -117324,6 +118512,7 @@ function _xml_wp_die_handler($message, $title = '', $args = array()) * @param string $message Optional. Response to print. Default empty string. * @param string $title Optional. Error title (unused). Default empty string. * @param string|array $args Optional. Arguments to control behavior. Default empty array. + * @phpstan-return void */ function _scalar_wp_die_handler($message = '', $title = '', $args = array()) { @@ -117433,6 +118622,7 @@ function _wp_json_prepare_data($value) * then print and die. * @param int $status_code Optional. The HTTP status code to output. Default null. * @param int $flags Optional. Options to be passed to json_encode(). Default 0. + * @phpstan-return void */ function wp_send_json($response, $status_code = \null, $flags = 0) { @@ -117551,6 +118741,7 @@ function _config_wp_siteurl($url = '') * * @since 4.7.0 * @access private + * @phpstan-return void */ function _delete_option_fresh_site() { @@ -117692,6 +118883,7 @@ function wp_array_slice_assoc($input_array, $keys) * @since 6.0.0 * * @param array $input_array The array to sort, passed by reference. + * @phpstan-return void */ function wp_recursive_ksort(&$input_array) { @@ -117935,6 +119127,7 @@ function wp_widgets_add_menu() * Make sure all output buffers are flushed before our singletons are destroyed. * * @since 2.2.0 + * @phpstan-return void */ function wp_ob_end_flush_all() { @@ -117978,6 +119171,7 @@ function dead_db() * @param string $function_name The function that was called. * @param string $version The version of WordPress that deprecated the function. * @param string $replacement Optional. The function that should have been called. Default empty string. + * @phpstan-return void */ function _deprecated_function($function_name, $version, $replacement = '') { @@ -118001,6 +119195,7 @@ function _deprecated_function($function_name, $version, $replacement = '') * @param string $version The version of WordPress that deprecated the function. * @param string $parent_class Optional. The parent class calling the deprecated constructor. * Default empty string. + * @phpstan-return void */ function _deprecated_constructor($class_name, $version, $parent_class = '') { @@ -118022,6 +119217,7 @@ function _deprecated_constructor($class_name, $version, $parent_class = '') * @param string $version The version of WordPress that deprecated the class. * @param string $replacement Optional. The class or function that should have been called. * Default empty string. + * @phpstan-return void */ function _deprecated_class($class_name, $version, $replacement = '') { @@ -118045,6 +119241,7 @@ function _deprecated_class($class_name, $version, $replacement = '') * @param string $replacement Optional. The file that should have been included based on ABSPATH. * Default empty string. * @param string $message Optional. A message regarding the change. Default empty string. + * @phpstan-return void */ function _deprecated_file($file, $version, $replacement = '', $message = '') { @@ -118074,6 +119271,7 @@ function _deprecated_file($file, $version, $replacement = '', $message = '') * @param string $function_name The function that was called. * @param string $version The version of WordPress that deprecated the argument used. * @param string $message Optional. A message regarding the change. Default empty string. + * @phpstan-return void */ function _deprecated_argument($function_name, $version, $message = '') { @@ -118097,6 +119295,7 @@ function _deprecated_argument($function_name, $version, $message = '') * @param string $version The version of WordPress that deprecated the hook. * @param string $replacement Optional. The hook that should have been used. Default empty string. * @param string $message Optional. A message regarding the change. Default empty. + * @phpstan-return void */ function _deprecated_hook($hook, $version, $replacement = '', $message = '') { @@ -118115,6 +119314,7 @@ function _deprecated_hook($hook, $version, $replacement = '', $message = '') * @param string $function_name The function that was called. * @param string $message A message explaining what has been done incorrectly. * @param string $version The version of WordPress where the message was added. + * @phpstan-return void */ function _doing_it_wrong($function_name, $message, $version) { @@ -118380,6 +119580,7 @@ function _cleanup_header_comment($str) * @since 2.9.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function wp_scheduled_delete() { @@ -118495,6 +119696,7 @@ function __return_empty_string() * * @see https://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx * @see https://src.chromium.org/viewvc/chrome?view=rev&revision=6985 + * @phpstan-return void */ function send_nosniff_header() { @@ -118557,6 +119759,7 @@ function wp_find_hierarchy_loop_tortoise_hare($callback, $start, $override = arr * * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors + * @phpstan-return void */ function send_frame_options_header() { @@ -118566,6 +119769,7 @@ function send_frame_options_header() * * @since 4.9.0 * @since 6.8.0 This function was moved from `wp-admin/includes/misc.php` to `wp-includes/functions.php`. + * @phpstan-return void */ function wp_admin_headers() { @@ -118696,6 +119900,7 @@ function wp_auth_check_load() * Outputs the HTML that shows the wp-login dialog when the user is no longer logged in. * * @since 3.6.0 + * @phpstan-return void */ function wp_auth_check_html() { @@ -118817,6 +120022,7 @@ function mbstring_binary_safe_encoding($reset = \false) * @see mbstring_binary_safe_encoding() * * @since 3.7.0 + * @phpstan-return void */ function reset_mbstring_encoding() { @@ -119398,6 +120604,7 @@ function wp_get_admin_notice($message, $args = array()) * attributes?: string[], * paragraph_wrap?: bool, * } $args + * @phpstan-return void */ function wp_admin_notice($message, $args = array()) { @@ -119671,6 +120878,7 @@ function wp_deregister_script($handle) * in_footer?: bool, * fetchpriority?: string, * } $args + * @phpstan-return void */ function wp_enqueue_script($handle, $src = '', $deps = array(), $ver = \false, $args = array()) { @@ -119683,6 +120891,7 @@ function wp_enqueue_script($handle, $src = '', $deps = array(), $ver = \false, $ * @since 3.1.0 * * @param string $handle Name of the script to be removed. + * @phpstan-return void */ function wp_dequeue_script($handle) { @@ -119808,6 +121017,7 @@ function wp_register_style($handle, $src, $deps = array(), $ver = \false, $media * @since 2.1.0 * * @param string $handle Name of the stylesheet to be removed. + * @phpstan-return void */ function wp_deregister_style($handle) { @@ -119834,6 +121044,7 @@ function wp_deregister_style($handle) * @param string $media Optional. The media for which this stylesheet has been defined. * Default 'all'. Accepts media types like 'all', 'print' and 'screen', or media queries like * '(orientation: portrait)' and '(max-width: 640px)'. + * @phpstan-return void */ function wp_enqueue_style($handle, $src = '', $deps = array(), $ver = \false, $media = 'all') { @@ -119846,6 +121057,7 @@ function wp_enqueue_style($handle, $src = '', $deps = array(), $ver = \false, $m * @since 3.1.0 * * @param string $handle Name of the stylesheet to be removed. + * @phpstan-return void */ function wp_dequeue_style($handle) { @@ -120171,6 +121383,7 @@ function wp_register($before = '

  • ', $after = '
  • ', $display = \true) * @since 1.5.0 * * @link https://core.trac.wordpress.org/ticket/1458 Explanation of 'wp_meta' action. + * @phpstan-return void */ function wp_meta() { @@ -120183,6 +121396,7 @@ function wp_meta() * @see get_bloginfo() For possible `$show` values * * @param string $show Optional. Site information to display. Default empty. + * @phpstan-return void */ function bloginfo($show = '') { @@ -120258,6 +121472,7 @@ function get_site_icon_url($size = 512, $url = '', $blog_id = 0) * @param int $size Optional. Size of the site icon. Default 512 (pixels). * @param string $url Optional. Fallback url if no site icon is found. Default empty. * @param int $blog_id Optional. ID of the blog to get the site icon for. Default current blog. + * @phpstan-return void */ function site_icon_url($size = 512, $url = '', $blog_id = 0) { @@ -120304,6 +121519,7 @@ function get_custom_logo($blog_id = 0) * @since 4.5.0 * * @param int $blog_id Optional. ID of the blog in question. Default is the ID of the current blog. + * @phpstan-return void */ function the_custom_logo($blog_id = 0) { @@ -120478,6 +121694,7 @@ function single_month_title($prefix = '', $display = \true) * * @param string $before Optional. Content to prepend to the title. Default empty. * @param string $after Optional. Content to append to the title. Default empty. + * @phpstan-return void */ function the_archive_title($before = '', $after = '') { @@ -120502,6 +121719,7 @@ function get_the_archive_title() * * @param string $before Optional. Content to prepend to the description. Default empty. * @param string $after Optional. Content to append to the description. Default empty. + * @phpstan-return void */ function the_archive_description($before = '', $after = '') { @@ -120678,6 +121896,7 @@ function get_calendar($args = array()) * * @see get_calendar() * @since 2.1.0 + * @phpstan-return void */ function delete_get_calendar_cache() { @@ -120702,6 +121921,7 @@ function allowed_tags() * Outputs the date in iso8601 format for xml files. * * @since 1.0.0 + * @phpstan-return void */ function the_date_xml() { @@ -120784,6 +122004,7 @@ function get_the_modified_date($format = '', $post = \null) * @param string $format Optional. Format to use for retrieving the time the post * was written. Accepts 'G', 'U', or PHP date format. * Defaults to the 'time_format' option. + * @phpstan-return void */ function the_time($format = '') { @@ -120868,6 +122089,7 @@ function get_post_timestamp($post = \null, $field = 'date') * @param string $format Optional. Format to use for retrieving the time the post * was modified. Accepts 'G', 'U', or PHP date format. * Defaults to the 'time_format' option. + * @phpstan-return void */ function the_modified_time($format = '') { @@ -120939,6 +122161,7 @@ function the_weekday_date($before = '', $after = '') * See {@see 'wp_head'}. * * @since 1.2.0 + * @phpstan-return void */ function wp_head() { @@ -120949,6 +122172,7 @@ function wp_head() * See {@see 'wp_footer'}. * * @since 1.5.1 + * @phpstan-return void */ function wp_footer() { @@ -120959,6 +122183,7 @@ function wp_footer() * See {@see 'wp_body_open'}. * * @since 5.2.0 + * @phpstan-return void */ function wp_body_open() { @@ -120980,6 +122205,7 @@ function feed_links($args = array()) * @since 2.8.0 * * @param array $args Optional arguments. + * @phpstan-return void */ function feed_links_extra($args = array()) { @@ -120989,6 +122215,7 @@ function feed_links_extra($args = array()) * * @link http://archipelago.phrasewise.com/rsd * @since 2.0.0 + * @phpstan-return void */ function rsd_link() { @@ -121004,6 +122231,7 @@ function rsd_link() * add_action( 'wp_head', 'wp_strict_cross_origin_referrer' ); * * @since 5.7.0 + * @phpstan-return void */ function wp_strict_cross_origin_referrer() { @@ -121030,6 +122258,7 @@ function wp_site_icon() * These performance improving indicators work by using ``. * * @since 4.6.0 + * @phpstan-return void */ function wp_resource_hints() { @@ -121137,6 +122366,7 @@ function wp_default_editor() * tinymce?: bool|array, * quicktags?: bool|array, * } $settings See _WP_Editors::parse_settings() + * @phpstan-return void */ function wp_editor($content, $editor_id, $settings = array()) { @@ -121149,6 +122379,7 @@ function wp_editor($content, $editor_id, $settings = array()) * * @uses _WP_Editors * @since 4.8.0 + * @phpstan-return void */ function wp_enqueue_editor() { @@ -121245,6 +122476,7 @@ function get_search_query($escaped = \true) * for placing in an HTML attribute. * * @since 2.1.0 + * @phpstan-return void */ function the_search_query() { @@ -121275,6 +122507,7 @@ function get_language_attributes($doctype = 'html') * * @param string $doctype Optional. The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'. * @phpstan-param 'xhtml'|'html' $doctype + * @phpstan-return void */ function language_attributes($doctype = 'html') { @@ -121410,6 +122643,7 @@ function paginate_links($args = '') * focus?: string, * current?: string, * } $icons + * @phpstan-return void */ function wp_admin_css_color($key, $name, $url, $colors = array(), $icons = array()) { @@ -121423,6 +122657,7 @@ function wp_admin_css_color($key, $name, $url, $colors = array(), $icons = array * @see wp_admin_css_color() * * @since 3.0.0 + * @phpstan-return void */ function register_admin_color_schemes() { @@ -121472,6 +122707,7 @@ function wp_admin_css($file = 'wp-admin', $force_echo = \false) * require array('thickbox') to ensure it is loaded after. * * @since 2.5.0 + * @phpstan-return void */ function add_thickbox() { @@ -121482,6 +122718,7 @@ function add_thickbox() * See {@see 'wp_head'}. * * @since 2.5.0 + * @phpstan-return void */ function wp_generator() { @@ -121495,6 +122732,7 @@ function wp_generator() * @since 2.5.0 * * @param string $type The type of generator to output - (html|xhtml|atom|rss2|rdf|comment|export). + * @phpstan-return void */ function the_generator($type) { @@ -121714,6 +122952,7 @@ function wp_get_global_stylesheet($types = array()) * @since 6.7.0 Resolve relative paths in block styles. * * @global WP_Styles $wp_styles + * @phpstan-return void */ function wp_add_global_styles_for_blocks() { @@ -121744,6 +122983,7 @@ function wp_theme_has_theme_json() * Cleans the caches under the theme_json group. * * @since 6.2.0 + * @phpstan-return void */ function wp_clean_theme_json_cache() { @@ -123349,6 +124589,7 @@ function wp_filter_nohtml_kses($data) * 'excerpt_save_pre', and 'content_filtered_save_pre' hooks. * * @since 2.0.0 + * @phpstan-return void */ function kses_init_filters() { @@ -123364,6 +124605,7 @@ function kses_init_filters() * hook (priority is also default). * * @since 2.0.6 + * @phpstan-return void */ function kses_remove_filters() { @@ -123376,6 +124618,7 @@ function kses_remove_filters() * capability, then KSES filters are added. * * @since 2.0.0 + * @phpstan-return void */ function kses_init() { @@ -123601,6 +124844,7 @@ function esc_html__($text, $domain = 'default') * @param string $text Text to translate. * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. * Default 'default'. + * @phpstan-return void */ function _e($text, $domain = 'default') { @@ -123618,6 +124862,7 @@ function _e($text, $domain = 'default') * @param string $text Text to translate. * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. * Default 'default'. + * @phpstan-return void */ function esc_attr_e($text, $domain = 'default') { @@ -123635,6 +124880,7 @@ function esc_attr_e($text, $domain = 'default') * @param string $text Text to translate. * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. * Default 'default'. + * @phpstan-return void */ function esc_html_e($text, $domain = 'default') { @@ -123668,6 +124914,7 @@ function _x($text, $context, $domain = 'default') * @param string $context Context information for the translators. * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. * Default 'default'. + * @phpstan-return void */ function _ex($text, $context, $domain = 'default') { @@ -124367,6 +125614,7 @@ function has_translation(string $singular, string $textdomain = 'default', ?stri * @since 4.4.0 Added the `$post` parameter. * * @param int|WP_Post $post Optional. Post ID or post object. Default is the global `$post`. + * @phpstan-return void */ function the_permalink($post = 0) { @@ -124401,6 +125649,7 @@ function user_trailingslashit($url, $type_of_url = '') * * @param string $mode Optional. Permalink mode. Accepts 'title' or 'id'. Default 'id'. * @phpstan-param 'title'|'id' $mode + * @phpstan-return void */ function permalink_anchor($mode = 'id') { @@ -124567,6 +125816,7 @@ function get_day_link($year, $month, $day) * @param string $anchor The link's anchor text. * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. * Default is the value of get_default_feed(). + * @phpstan-return void */ function the_feed_link($anchor, $feed = '') { @@ -124611,6 +125861,7 @@ function get_post_comments_feed_link($post_id = 0, $feed = '') * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. * Default is the value of get_default_feed(). + * @phpstan-return void */ function post_comments_feed_link($link_text = '', $post_id = 0, $feed = '') { @@ -124699,6 +125950,7 @@ function get_edit_tag_link($tag, $taxonomy = 'post_tag') * @param string $after Optional. Display after edit link. Default empty. * @param WP_Term $tag Optional. Term object. If null, the queried object will be inspected. * Default null. + * @phpstan-return void */ function edit_tag_link($link = '', $before = '', $after = '', $tag = \null) { @@ -125024,6 +126276,7 @@ function get_adjacent_post_rel_link($title = '%title', $in_same_term = \false, $ * @param int[]|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. * Default empty. * @param string $taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'. + * @phpstan-return void */ function adjacent_posts_rel_link($title = '%title', $in_same_term = \false, $excluded_terms = '', $taxonomy = 'category') { @@ -125056,6 +126309,7 @@ function adjacent_posts_rel_link_wp_head() * @param int[]|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. * Default empty. * @param string $taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'. + * @phpstan-return void */ function next_post_rel_link($title = '%title', $in_same_term = \false, $excluded_terms = '', $taxonomy = 'category') { @@ -125073,6 +126327,7 @@ function next_post_rel_link($title = '%title', $in_same_term = \false, $excluded * @param int[]|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. * Default true. * @param string $taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'. + * @phpstan-return void */ function prev_post_rel_link($title = '%title', $in_same_term = \false, $excluded_terms = '', $taxonomy = 'category') { @@ -125128,6 +126383,7 @@ function get_previous_post_link($format = '« %link', $link = '%title', $in * @param int[]|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. * Default empty. * @param string $taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'. + * @phpstan-return void */ function previous_post_link($format = '« %link', $link = '%title', $in_same_term = \false, $excluded_terms = '', $taxonomy = 'category') { @@ -125163,6 +126419,7 @@ function get_next_post_link($format = '%link »', $link = '%title', $in_sam * @param int[]|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. * Default empty. * @param string $taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'. + * @phpstan-return void */ function next_post_link($format = '%link »', $link = '%title', $in_same_term = \false, $excluded_terms = '', $taxonomy = 'category') { @@ -125204,6 +126461,7 @@ function get_adjacent_post_link($format, $link, $in_same_term = \false, $exclude * @param bool $previous Optional. Whether to display link to previous or next post. * Default true. * @param string $taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'. + * @phpstan-return void */ function adjacent_post_link($format, $link, $in_same_term = \false, $excluded_terms = '', $previous = \true, $taxonomy = 'category') { @@ -125273,6 +126531,7 @@ function get_next_posts_link($label = \null, $max_page = 0) * * @param string $label Content for link text. * @param int $max_page Optional. Max pages. Default 0. + * @phpstan-return void */ function next_posts_link($label = \null, $max_page = 0) { @@ -125324,6 +126583,7 @@ function get_previous_posts_link($label = \null) * @since 0.71 * * @param string $label Optional. Previous page link text. + * @phpstan-return void */ function previous_posts_link($label = \null) { @@ -125362,6 +126622,7 @@ function get_posts_nav_link($args = array()) * @param string $sep Optional. Separator for posts navigation links. Default empty. * @param string $prelabel Optional. Label for previous pages. Default empty. * @param string $nxtlabel Optional Label for next pages. Default empty. + * @phpstan-return void */ function posts_nav_link($sep = '', $prelabel = '', $nxtlabel = '') { @@ -125423,6 +126684,7 @@ function get_the_post_navigation($args = array()) * aria_label?: string, * class?: string, * } $args See get_the_post_navigation() + * @phpstan-return void */ function the_post_navigation($args = array()) { @@ -125474,6 +126736,7 @@ function get_the_posts_navigation($args = array()) * aria_label?: string, * class?: string, * } $args See get_the_posts_navigation() + * @phpstan-return void */ function the_posts_navigation($args = array()) { @@ -125549,6 +126812,7 @@ function get_the_posts_pagination($args = array()) * before_page_number?: string, * after_page_number?: string, * } $args See get_the_posts_pagination() + * @phpstan-return void */ function the_posts_pagination($args = array()) { @@ -125609,6 +126873,7 @@ function get_next_comments_link($label = '', $max_page = 0, $page = \null) * * @param string $label Optional. Label for link text. Default empty. * @param int $max_page Optional. Max page. Default 0. + * @phpstan-return void */ function next_comments_link($label = '', $max_page = 0) { @@ -125632,6 +126897,7 @@ function get_previous_comments_link($label = '', $page = \null) * @since 2.7.0 * * @param string $label Optional. Label for comments link text. Default empty. + * @phpstan-return void */ function previous_comments_link($label = '') { @@ -125714,6 +126980,7 @@ function get_the_comments_navigation($args = array()) * aria_label?: string, * class?: string, * } $args See get_the_comments_navigation() + * @phpstan-return void */ function the_comments_navigation($args = array()) { @@ -125755,6 +127022,7 @@ function get_the_comments_pagination($args = array()) * aria_label?: string, * class?: string, * } $args See get_the_comments_pagination() + * @phpstan-return void */ function the_comments_pagination($args = array()) { @@ -126106,6 +127374,7 @@ function wp_shortlink_header() * @param string $title Unused. * @param string $before Optional. HTML to display before the link. Default empty. * @param string $after Optional. HTML to display after the link. Default empty. + * @phpstan-return void */ function the_shortlink($text = '', $title = '', $before = '', $after = '') { @@ -126312,6 +127581,7 @@ function get_privacy_policy_url() * * @param string $before Optional. Display before privacy policy link. Default empty. * @param string $after Optional. Display after privacy policy link. Default empty. + * @phpstan-return void */ function the_privacy_policy_link($before = '', $after = '') { @@ -126383,6 +127653,7 @@ function wp_get_server_protocol() * * @global string $PHP_SELF The filename of the currently executing script, * relative to the document root. + * @phpstan-return void */ function wp_fix_server_vars() { @@ -126415,6 +127686,7 @@ function wp_populate_basic_auth_from_authorization_header() * @global string $required_php_version The minimum required PHP version string. * @global string[] $required_php_extensions The names of required PHP extensions. * @global string $wp_version The WordPress version string. + * @phpstan-return void */ function wp_check_php_mysql_versions() { @@ -126605,6 +127877,7 @@ function wp_debug_mode() * * @since 3.0.0 * @access private + * @phpstan-return void */ function wp_set_lang_dir() { @@ -126631,6 +127904,7 @@ function require_wp_db() * * @global wpdb $wpdb WordPress database abstraction object. * @global string $table_prefix The database table prefix. + * @phpstan-return void */ function wp_set_wpdb_vars() { @@ -126659,6 +127933,7 @@ function wp_using_ext_object_cache($using = \null) * @access private * * @global array $wp_filter Stores all of the filters. + * @phpstan-return void */ function wp_start_object_cache() { @@ -126792,6 +128067,7 @@ function is_protected_ajax_action() * * @since 3.0.0 * @access private + * @phpstan-return void */ function wp_set_internal_encoding() { @@ -126804,6 +128080,7 @@ function wp_set_internal_encoding() * * @since 3.0.0 * @access private + * @phpstan-return void */ function wp_magic_quotes() { @@ -126813,6 +128090,7 @@ function wp_magic_quotes() * * @since 1.2.0 * @access private + * @phpstan-return void */ function shutdown_action_hook() { @@ -127107,6 +128385,7 @@ function wp_start_scraping_edited_file_errors() * @since 4.9.0 * * @param string $scrape_key Scrape key. + * @phpstan-return void */ function wp_finalize_scraping_edited_file_errors($scrape_key) { @@ -127181,6 +128460,7 @@ function wp_is_site_protected_by_basic_auth($context = '') * when data.model is passed. * * @since 3.9.0 + * @phpstan-return void */ function wp_underscore_audio_template() { @@ -127190,6 +128470,7 @@ function wp_underscore_audio_template() * when data.model is passed. * * @since 3.9.0 + * @phpstan-return void */ function wp_underscore_video_template() { @@ -127198,6 +128479,7 @@ function wp_underscore_video_template() * Prints the templates used in the media manager. * * @since 3.5.0 + * @phpstan-return void */ function wp_print_media_templates() { @@ -127329,6 +128611,7 @@ function image_downsize($id, $size = 'medium') * 0: string, * 1: string, * } $crop + * @phpstan-return void */ function add_image_size($name, $width = 0, $height = 0, $crop = \false) { @@ -127378,6 +128661,7 @@ function remove_image_size($name) * 0: string, * 1: string, * } $crop + * @phpstan-return void */ function set_post_thumbnail_size($width = 0, $height = 0, $crop = \false) { @@ -127975,6 +129259,7 @@ function _wp_post_thumbnail_class_filter($attr) * @since 2.9.0 * * @param string[] $attr Array of thumbnail attributes including src, class, alt, title, keyed by attribute name. + * @phpstan-return void */ function _wp_post_thumbnail_class_filter_add($attr) { @@ -127987,6 +129272,7 @@ function _wp_post_thumbnail_class_filter_add($attr) * @since 2.9.0 * * @param string[] $attr Array of thumbnail attributes including src, class, alt, title, keyed by attribute name. + * @phpstan-return void */ function _wp_post_thumbnail_class_filter_remove($attr) { @@ -128014,6 +129300,7 @@ function _wp_post_thumbnail_context_filter($context) * @ignore * @since 6.3.0 * @access private + * @phpstan-return void */ function _wp_post_thumbnail_context_filter_add() { @@ -128025,6 +129312,7 @@ function _wp_post_thumbnail_context_filter_add() * @ignore * @since 6.3.0 * @access private + * @phpstan-return void */ function _wp_post_thumbnail_context_filter_remove() { @@ -128141,6 +129429,7 @@ function gallery_shortcode($attr) * Outputs the templates used by playlists. * * @since 3.9.0 + * @phpstan-return void */ function wp_underscore_playlist_templates() { @@ -128152,6 +129441,7 @@ function wp_underscore_playlist_templates() * * @param string $type Type of playlist. Accepts 'audio' or 'video'. * @phpstan-param 'audio'|'video' $type + * @phpstan-return void */ function wp_playlist_scripts($type) { @@ -128351,6 +129641,7 @@ function get_previous_image_link($size = 'thumbnail', $text = \false) * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array * of width and height values in pixels (in that order). Default 'thumbnail'. * @param string|false $text Optional. Link text. Default false. + * @phpstan-return void */ function previous_image_link($size = 'thumbnail', $text = \false) { @@ -128378,6 +129669,7 @@ function get_next_image_link($size = 'thumbnail', $text = \false) * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array * of width and height values in pixels (in that order). Default 'thumbnail'. * @param string|false $text Optional. Link text. Default false. + * @phpstan-return void */ function next_image_link($size = 'thumbnail', $text = \false) { @@ -128409,6 +129701,7 @@ function get_adjacent_image_link($prev = \true, $size = 'thumbnail', $text = \fa * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array * of width and height values in pixels (in that order). Default 'thumbnail'. * @param bool $text Optional. Link text. Default false. + * @phpstan-return void */ function adjacent_image_link($prev = \true, $size = 'thumbnail', $text = \false) { @@ -128825,6 +130118,7 @@ function wp_media_personal_data_exporter($email_address, $page = 1) * * @since 5.3.0 * @access private + * @phpstan-return void */ function _wp_add_additional_image_sizes() { @@ -129517,6 +130811,7 @@ function get_object_subtype($object_type, $object_id) * Updates the last_updated field for the current site. * * @since MU (3.0.0) + * @phpstan-return void */ function wpmu_update_blogs_date() { @@ -129577,6 +130872,7 @@ function get_blog_details($fields = \null, $get_all = \true) * @since MU (3.0.0) * * @param int $blog_id Optional. Blog ID. Defaults to current blog. + * @phpstan-return void */ function refresh_blog_details($blog_id = 0) { @@ -129599,6 +130895,7 @@ function update_blog_details($blog_id, $details = array()) * @since 4.7.4 * * @param int $site_id Optional. Site ID. Default is the current site ID. + * @phpstan-return void */ function clean_site_details_cache($site_id = 0) { @@ -129908,6 +131205,7 @@ function ms_upload_constants() * Defines Multisite cookie constants. * * @since 3.0.0 + * @phpstan-return void */ function ms_cookie_constants() { @@ -129919,6 +131217,7 @@ function ms_cookie_constants() * wp-includes/ms-files.php (wp-content/blogs.php in MU). * * @since 3.0.0 + * @phpstan-return void */ function ms_file_constants() { @@ -129986,7 +131285,6 @@ function is_site_admin($user_login = '') * @since MU (3.0.0) * @deprecated 3.0.0 Use wp_die() * @see wp_die() - * @phpstan-return never */ function graceful_fail($message) { @@ -130084,7 +131382,6 @@ function get_most_active_blogs($num = 10, $display = \true) * @see wp_redirect() * * @param string $url Optional. Redirect URL. Default empty. - * @phpstan-return never */ function wpmu_admin_do_redirect($url = '') { @@ -130547,6 +131844,7 @@ function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') * @param string $user The user's requested login name. * @param string $user_email The user's email address. * @param array $meta Optional. Signup meta data. By default, contains the requested privacy setting and lang_id. + * @phpstan-return void */ function wpmu_signup_blog($domain, $path, $title, $user, $user_email, $meta = array()) { @@ -130564,6 +131862,7 @@ function wpmu_signup_blog($domain, $path, $title, $user, $user_email, $meta = ar * @param string $user The user's requested login name. * @param string $user_email The user's email address. * @param array $meta Optional. Signup meta data. Default empty array. + * @phpstan-return void */ function wpmu_signup_user($user, $user_email, $meta = array()) { @@ -130667,6 +131966,7 @@ function wpmu_activate_signup( * @param int $id ID of the user to delete. * @param int|null $reassign ID of the user to reassign posts and links to. * @param WP_User $user User object. + * @phpstan-return void */ function wp_delete_signup_on_user_delete($id, $reassign, $user) { @@ -130905,6 +132205,7 @@ function check_upload_mimes($mimes) * * @param string $deprecated Not used. * @phpstan-param '' $deprecated + * @phpstan-return void */ function update_posts_count($deprecated = '') { @@ -130919,6 +132220,7 @@ function update_posts_count($deprecated = '') * * @param WP_Site|int $blog_id The new site's object or ID. * @param int|array $user_id User ID, or array of arguments including 'user_id'. + * @phpstan-return void */ function wpmu_log_new_registrations($blog_id, $user_id) { @@ -130958,6 +132260,7 @@ function upload_is_file_too_big($upload) * Adds a nonce field to the signup page. * * @since MU (3.0.0) + * @phpstan-return void */ function signup_nonce_fields() { @@ -130977,6 +132280,7 @@ function signup_nonce_check($result) * Corrects 404 redirects when NOBLOGREDIRECT is defined. * * @since MU (3.0.0) + * @phpstan-return void */ function maybe_redirect_404() { @@ -131028,6 +132332,7 @@ function add_existing_user_to_blog($details = \false) * @param int $user_id User ID. * @param string $password User password. Ignored. * @param array $meta Signup meta data. + * @phpstan-return void */ function add_new_user_to_blog( $user_id, @@ -131043,6 +132348,7 @@ function add_new_user_to_blog( * @since MU (3.0.0) * * @param PHPMailer\PHPMailer\PHPMailer $phpmailer The PHPMailer instance (passed by reference). + * @phpstan-return void */ function fix_phpmailer_messageid($phpmailer) { @@ -131068,6 +132374,7 @@ function is_user_spammy($user = \null) * * @param int $old_value The old public value. * @param int $value The new public value. + * @phpstan-return void */ function update_blog_public($old_value, $value) { @@ -131133,6 +132440,7 @@ function wp_schedule_update_network_counts() * @since 4.8.0 The `$network_id` parameter has been added. * * @param int|null $network_id ID of the network. Default is the current network. + * @phpstan-return void */ function wp_update_network_counts($network_id = \null) { @@ -131174,6 +132482,7 @@ function wp_maybe_update_network_user_counts($network_id = \null) * @since 4.8.0 The `$network_id` parameter has been added. * * @param int|null $network_id ID of the network. Default is the current network. + * @phpstan-return void */ function wp_update_network_site_counts($network_id = \null) { @@ -131186,6 +132495,7 @@ function wp_update_network_site_counts($network_id = \null) * @since 6.0.0 This function is now a wrapper for wp_update_user_counts(). * * @param int|null $network_id ID of the network. Default is the current network. + * @phpstan-return void */ function wp_update_network_user_counts($network_id = \null) { @@ -131523,6 +132833,7 @@ function clean_network_cache($ids) * @since 4.6.0 * * @param array $networks Array of network row objects. + * @phpstan-return void */ function update_network_cache($networks) { @@ -131537,6 +132848,7 @@ function update_network_cache($networks) * @global wpdb $wpdb WordPress database abstraction object. * * @param array $network_ids Array of network IDs. + * @phpstan-return void */ function _prime_network_caches($network_ids) { @@ -131666,6 +132978,7 @@ function get_site($site = \null) * * @param array $ids ID list. * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true. + * @phpstan-return void */ function _prime_site_caches($ids, $update_meta_cache = \true) { @@ -132064,6 +133377,7 @@ function wp_maybe_update_network_site_counts_on_update($new_site, $old_site = \n * @param WP_Site $new_site The site object after the update. * @param WP_Site|null $old_site Optional. If $new_site has been updated, this must be the previous * state of that site. Default null. + * @phpstan-return void */ function wp_maybe_transition_site_statuses_on_update($new_site, $old_site = \null) { @@ -132075,6 +133389,7 @@ function wp_maybe_transition_site_statuses_on_update($new_site, $old_site = \nul * * @param WP_Site $new_site The site object after the update. * @param WP_Site $old_site The site object prior to the update. + * @phpstan-return void */ function wp_maybe_clean_new_site_cache_on_update($new_site, $old_site) { @@ -132097,6 +133412,7 @@ function wp_update_blog_public_option_on_site_update($site_id, $is_public) * Sets the last changed time for the 'sites' cache group. * * @since 5.1.0 + * @phpstan-return void */ function wp_cache_set_sites_last_changed() { @@ -132191,6 +133507,7 @@ function wp_nav_menu($args = array()) * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param array $menu_items The current menu item objects to which to add the class property information. + * @phpstan-return void */ function _wp_menu_item_classes_by_context(&$menu_items) { @@ -132276,6 +133593,7 @@ function is_nav_menu($menu) * * @param string[] $locations Associative array of menu location identifiers (like a slug) and descriptive text. * @phpstan-param array $locations + * @phpstan-return void */ function register_nav_menus($locations = array()) { @@ -132300,6 +133618,7 @@ function unregister_nav_menu($location) * * @param string $location Menu location identifier, like a slug. * @param string $description Menu location descriptive text. + * @phpstan-return void */ function register_nav_menu($location, $description) { @@ -132496,6 +133815,7 @@ function wp_get_nav_menu_items($menu, $args = array()) * @since 6.1.0 * * @param WP_Post[] $menu_items Array of menu item post objects. + * @phpstan-return void */ function update_menu_item_cache($menu_items) { @@ -132552,6 +133872,7 @@ function wp_get_associated_nav_menu_items($object_id = 0, $object_type = 'post_t * @access private * * @param int $object_id The ID of the original object being trashed. + * @phpstan-return void */ function _wp_delete_post_menu_item($object_id) { @@ -132565,6 +133886,7 @@ function _wp_delete_post_menu_item($object_id) * @param int $object_id The ID of the original object being trashed. * @param int $tt_id Term taxonomy ID. Unused. * @param string $taxonomy Taxonomy slug. + * @phpstan-return void */ function _wp_delete_tax_menu_item($object_id, $tt_id, $taxonomy) { @@ -132600,6 +133922,7 @@ function _wp_delete_customize_changeset_dependent_auto_drafts($post_id) * * @access private * @since 4.9.0 + * @phpstan-return void */ function _wp_menus_changed() { @@ -132726,6 +134049,7 @@ function wp_prime_option_caches($options) * @global array $new_allowed_options * * @param string $option_group The option group to load options for. + * @phpstan-return void */ function wp_prime_option_caches_by_group($option_group) { @@ -132815,6 +134139,7 @@ function wp_set_option_autoload($option, $autoload) * @since 2.2.0 * * @param string $option Option name. + * @phpstan-return void */ function wp_protect_special_option($option) { @@ -132825,6 +134150,7 @@ function wp_protect_special_option($option) * @since 1.5.0 * * @param string $option Option name. + * @phpstan-return void */ function form_option($option) { @@ -132856,6 +134182,7 @@ function wp_load_alloptions($force_cache = \false) * @see wp_prime_network_option_caches() * * @param string[] $options An array of option names to be loaded. + * @phpstan-return void */ function wp_prime_site_option_caches(array $options) { @@ -133365,6 +134692,7 @@ function set_site_transient($transient, $value, $expiration = 0) * * @since 4.7.0 * @since 6.0.1 The `show_on_front`, `page_on_front`, and `page_for_posts` options were added. + * @phpstan-return void */ function register_initial_settings() { @@ -133408,6 +134736,7 @@ function register_initial_settings() * show_in_rest?: bool|array, * default?: mixed, * } $args + * @phpstan-return void */ function register_setting($option_group, $option_name, $args = array()) { @@ -133427,6 +134756,7 @@ function register_setting($option_group, $option_name, $args = array()) * @param string $option_name The name of the option to unregister. * @param callable $deprecated Optional. Deprecated. * @phpstan-param '' $deprecated + * @phpstan-return void */ function unregister_setting($option_group, $option_name, $deprecated = '') { @@ -133769,6 +135099,7 @@ function wp_authenticate( * Logs the current user out. * * @since 2.5.0 + * @phpstan-return void */ function wp_logout() { @@ -134088,6 +135419,7 @@ function wp_notify_moderator($comment_id) * @since 2.7.0 * * @param WP_User $user User object. + * @phpstan-return void */ function wp_password_change_notification($user) { @@ -134347,6 +135679,7 @@ function wp_rand($min = \null, $max = \null) * * @param string $password The plaintext new user password. * @param int $user_id User ID. + * @phpstan-return void */ function wp_set_password( #[\SensitiveParameter] @@ -135113,6 +136446,7 @@ function register_uninstall_hook($file, $callback) * @global WP_Hook[] $wp_filter Stores all of the filters and actions. * * @param array $args The collected parameters from the hook that was called. + * @phpstan-return void */ function _wp_call_all_hook($args) { @@ -135291,6 +136625,7 @@ function _post_format_wp_get_object_terms($terms) * Displays the ID of the current item in the WordPress Loop. * * @since 0.71 + * @phpstan-return void */ function the_ID() { @@ -135378,6 +136713,7 @@ function get_the_title($post = 0) * @since 1.5.0 * * @param int|WP_Post $post Optional. Post ID or post object. Default is global $post. + * @phpstan-return void */ function the_guid($post = 0) { @@ -135404,6 +136740,7 @@ function get_the_guid($post = 0) * * @param string $more_link_text Optional. Content for when there is more text. * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default false. + * @phpstan-return void */ function the_content($more_link_text = \null, $strip_teaser = \false) { @@ -135433,6 +136770,7 @@ function get_the_content($more_link_text = \null, $strip_teaser = \false, $post * Displays the post excerpt. * * @since 0.71 + * @phpstan-return void */ function the_excerpt() { @@ -135472,6 +136810,7 @@ function has_excerpt($post = 0) * @param string|string[] $css_class Optional. One or more classes to add to the class list. * Default empty. * @param int|WP_Post $post Optional. Post ID or post object. Defaults to the global `$post`. + * @phpstan-return void */ function post_class($css_class = '', $post = \null) { @@ -135510,6 +136849,7 @@ function get_post_class($css_class = '', $post = \null) * * @param string|string[] $css_class Optional. Space-separated string or array of class names * to add to the class list. Default empty. + * @phpstan-return void */ function body_class($css_class = '') { @@ -135889,6 +137229,7 @@ function walk_page_dropdown_tree(...$args) * @param bool $deprecated Deprecated. Not used. * @param bool $permalink Optional. Whether to include permalink. Default false. * @phpstan-param false $deprecated + * @phpstan-return void */ function the_attachment_link($post = 0, $fullsize = \false, $deprecated = \false, $permalink = \false) { @@ -136078,6 +137419,7 @@ function get_post_thumbnail_id($post = \null) * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array of * width and height values in pixels (in that order). Default 'post-thumbnail'. * @param string|array $attr Optional. Query string or array of attributes. Default empty. + * @phpstan-return void */ function the_post_thumbnail($size = 'post-thumbnail', $attr = '') { @@ -136139,6 +137481,7 @@ function get_the_post_thumbnail_url($post = \null, $size = 'post-thumbnail') * @param string|int[] $size Optional. Image size to use. Accepts any valid image size, * or an array of width and height values in pixels (in that order). * Default 'post-thumbnail'. + * @phpstan-return void */ function the_post_thumbnail_url($size = 'post-thumbnail') { @@ -136160,6 +137503,7 @@ function get_the_post_thumbnail_caption($post = \null) * @since 4.6.0 * * @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default is global `$post`. + * @phpstan-return void */ function the_post_thumbnail_caption($post = \null) { @@ -136170,6 +137514,7 @@ function the_post_thumbnail_caption($post = \null) * See {@see 'init'}. * * @since 2.9.0 + * @phpstan-return void */ function create_initial_post_types() { @@ -136950,6 +138295,7 @@ function get_post_type_capabilities($args) * @global array $post_type_meta_caps Used to store meta capabilities. * * @param string[] $capabilities Post type meta capabilities. + * @phpstan-return void */ function _post_type_meta_capabilities($capabilities = \null) { @@ -137054,6 +138400,7 @@ function _get_custom_object_labels($data_object, $nohier_vs_hier_defaults) * * @access private * @since 3.1.0 + * @phpstan-return void */ function _add_post_type_submenus() { @@ -137094,6 +138441,7 @@ function _add_post_type_submenus() * @param string|array $feature The feature being added, accepts an array of * feature strings or a single string. * @param mixed ...$args Optional extra arguments to pass along with certain features. + * @phpstan-return void */ function add_post_type_support($post_type, $feature, ...$args) { @@ -137107,6 +138455,7 @@ function add_post_type_support($post_type, $feature, ...$args) * * @param string $post_type The post type for which to remove the feature. * @param string $feature The feature being removed. + * @phpstan-return void */ function remove_post_type_support($post_type, $feature) { @@ -137615,6 +138964,7 @@ function sanitize_post_field($field, $value, $post_id, $context = 'display') * @since 2.7.0 * * @param int $post_id Post ID. + * @phpstan-return void */ function stick_post($post_id) { @@ -137763,6 +139113,7 @@ function wp_delete_post($post_id = 0, $force_delete = \false) * @access private * * @param int $post_id Post ID. + * @phpstan-return void */ function _reset_front_page_settings_for_post($post_id) { @@ -138326,6 +139677,7 @@ function wp_set_post_categories($post_id = 0, $post_categories = array(), $appen * @param string $new_status Transition to this post status. * @param string $old_status Previous post status. * @param WP_Post $post Post data. + * @phpstan-return void */ function wp_transition_post_status($new_status, $old_status, $post) { @@ -138403,6 +139755,7 @@ function get_to_ping($post) * * @param string $tb_list Comma separated list of URLs. * @param int $post_id Post ID. + * @phpstan-return void */ function trackback_url_list($tb_list, $post_id) { @@ -138498,6 +139851,7 @@ function get_page_hierarchy(&$pages, $page_id = 0) * @param int $page_id Page ID. * @param array $children Parent-children relations (passed by reference). * @param string[] $result Array of page names keyed by ID (passed by reference). + * @phpstan-return void */ function _page_traverse_name($page_id, &$children, &$result) { @@ -138992,6 +140346,7 @@ function update_post_author_caches($posts) * @since 6.1.0 * * @param WP_Post[] $posts Array of post objects. + * @phpstan-return void */ function update_post_parent_caches($posts) { @@ -139042,6 +140397,7 @@ function clean_attachment_cache($id, $clean_terms = \false) * @param string $new_status New post status. * @param string $old_status Previous post status. * @param WP_Post $post Post object. + * @phpstan-return void */ function _transition_post_status($new_status, $old_status, $post) { @@ -139058,6 +140414,7 @@ function _transition_post_status($new_status, $old_status, $post) * as deprecated with _deprecated_argument() as it conflicts with * wp_transition_post_status() and the default filter for _future_post_hook(). * @param WP_Post $post Post object. + * @phpstan-return void */ function _future_post_hook($deprecated, $post) { @@ -139138,6 +140495,7 @@ function delete_post_thumbnail($post) * @since 3.4.0 * * @global wpdb $wpdb WordPress database abstraction object. + * @phpstan-return void */ function wp_delete_auto_drafts() { @@ -139148,6 +140506,7 @@ function wp_delete_auto_drafts() * @since 4.5.0 * * @param WP_Post[] $posts Array of WP_Post objects. + * @phpstan-return void */ function wp_queue_posts_for_term_meta_lazyload($posts) { @@ -139184,6 +140543,7 @@ function _update_term_count_on_transition_post_status($new_status, $old_status, * @param int[] $ids ID list. * @param bool $update_term_cache Optional. Whether to update the term cache. Default true. * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true. + * @phpstan-return void */ function _prime_post_caches($ids, $update_term_cache = \true, $update_meta_cache = \true) { @@ -139214,6 +140574,7 @@ function _prime_post_parent_id_caches(array $ids) * * @param string $post_name Post slug. * @param int $post_id Optional. Post ID that should be ignored. Default 0. + * @phpstan-return void */ function wp_add_trashed_suffix_to_post_name_for_trashed_posts($post_name, $post_id = 0) { @@ -139241,6 +140602,7 @@ function wp_add_trashed_suffix_to_post_name_for_post($post) * Sets the last changed time for the 'posts' cache group. * * @since 5.0.0 + * @phpstan-return void */ function wp_cache_set_posts_last_changed() { @@ -139339,6 +140701,7 @@ function use_block_editor_for_post_type($post_type) * @since 6.3.0 Adds `wp_pattern_sync_status` meta field to the wp_block post type so an unsynced option can be added. * * @link https://github.com/WordPress/gutenberg/pull/51144 + * @phpstan-return void */ function wp_create_initial_post_meta() { @@ -139396,6 +140759,7 @@ function get_queried_object_id() * * @param string $query_var Query variable key. * @param mixed $value Query variable value. + * @phpstan-return void */ function set_query_var($query_var, $value) { @@ -139432,6 +140796,7 @@ function query_posts($query) * * @global WP_Query $wp_query WordPress Query object. * @global WP_Query $wp_the_query Copy of the global WP_Query instance created during wp_reset_query(). + * @phpstan-return void */ function wp_reset_query() { @@ -139443,6 +140808,7 @@ function wp_reset_query() * @since 3.0.0 * * @global WP_Query $wp_query WordPress Query object. + * @phpstan-return void */ function wp_reset_postdata() { @@ -140181,6 +141547,7 @@ function register_rest_route($route_namespace, $route, $args = array(), $overrid * update_callback?: callable|null, * schema?: array|null, * } $args + * @phpstan-return void */ function register_rest_field($object_type, $attribute, $args = array()) { @@ -140192,6 +141559,7 @@ function register_rest_field($object_type, $attribute, $args = array()) * * @see rest_api_register_rewrites() * @global WP $wp Current WordPress environment instance. + * @phpstan-return void */ function rest_api_init() { @@ -140203,6 +141571,7 @@ function rest_api_init() * * @see add_rewrite_rule() * @global WP_Rewrite $wp_rewrite WordPress rewrite component. + * @phpstan-return void */ function rest_api_register_rewrites() { @@ -140214,6 +141583,7 @@ function rest_api_register_rewrites() * to make testing and disabling these filters easier. * * @since 4.4.0 + * @phpstan-return void */ function rest_api_default_filters() { @@ -140222,6 +141592,7 @@ function rest_api_default_filters() * Registers default REST API routes. * * @since 4.7.0 + * @phpstan-return void */ function create_initial_rest_routes() { @@ -140534,6 +141905,7 @@ function rest_cookie_collect_status() * * @param WP_Error $user_or_error The authenticated user or error instance. * @param array $app_password The Application Password used to authenticate. + * @phpstan-return void */ function rest_application_password_collect_status($user_or_error, $app_password = array()) { @@ -141418,6 +142790,7 @@ function wp_restore_post_revision_meta($post_id, $revision_id) * @param int $source_post_id Post ID to copy meta value(s) from. * @param int $target_post_id Post ID to copy meta value(s) to. * @param string $meta_key Meta key to copy. + * @phpstan-return void */ function _wp_copy_post_meta($source_post_id, $target_post_id, $meta_key) { @@ -141549,6 +142922,7 @@ function _set_preview($post) * * @since 2.7.0 * @access private + * @phpstan-return void */ function _show_post_preview() { @@ -141642,6 +143016,7 @@ function _wp_preview_meta_filter($value, $object_id, $meta_key, $single) * @param string $after Optional. Priority of the new rule. Accepts 'top' * or 'bottom'. Default 'bottom'. * @phpstan-param 'top'|'bottom' $after + * @phpstan-return void */ function add_rewrite_rule($regex, $query, $after = 'bottom') { @@ -141674,6 +143049,7 @@ function add_rewrite_tag($tag, $regex, $query = '') * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $tag Name of the rewrite tag. + * @phpstan-return void */ function remove_rewrite_tag($tag) { @@ -141699,6 +143075,7 @@ function remove_rewrite_tag($tag) * walk_dirs?: bool, * endpoints?: bool, * } $args See WP_Rewrite::add_permastruct() + * @phpstan-return void */ function add_permastruct($name, $struct, $args = array()) { @@ -141715,6 +143092,7 @@ function add_permastruct($name, $struct, $args = array()) * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $name Name for permalink structure. + * @phpstan-return void */ function remove_permastruct($name) { @@ -141744,6 +143122,7 @@ function add_feed($feedname, $callback) * * @param bool $hard Whether to update .htaccess (hard flush) or just update * rewrite_rules option (soft flush). Default is true (hard). + * @phpstan-return void */ function flush_rewrite_rules($hard = \true) { @@ -141796,6 +143175,7 @@ function flush_rewrite_rules($hard = \true) * - `EP_YEAR` * @param string|bool $query_var Name of the corresponding query variable. Pass `false` to skip registering a query_var * for this endpoint. Defaults to the value of `$name`. + * @phpstan-return void */ function add_rewrite_endpoint($name, $places, $query_var = \true) { @@ -142003,6 +143383,7 @@ function wp_robots_max_image_preview_large(array $robots) * * @param WP_Scripts $scripts WP_Scripts object. * @param bool $force_uncompressed Whether to forcibly prevent gzip compression. Default false. + * @phpstan-return void */ function wp_register_tinymce_scripts($scripts, $force_uncompressed = \false) { @@ -142018,6 +143399,7 @@ function wp_register_tinymce_scripts($scripts, $force_uncompressed = \false) * @global WP_Locale $wp_locale WordPress date and time locale object. * * @param WP_Scripts $scripts WP_Scripts object. + * @phpstan-return void */ function wp_default_packages_vendor($scripts) { @@ -142058,6 +143440,7 @@ function wp_register_development_scripts($scripts) * @since 5.0.0 * * @param WP_Scripts $scripts WP_Scripts object. + * @phpstan-return void */ function wp_default_packages_scripts($scripts) { @@ -142072,6 +143455,7 @@ function wp_default_packages_scripts($scripts) * @global wpdb $wpdb WordPress database abstraction object. * * @param WP_Scripts $scripts WP_Scripts object. + * @phpstan-return void */ function wp_default_packages_inline_scripts($scripts) { @@ -142085,6 +143469,7 @@ function wp_default_packages_inline_scripts($scripts) * @since 5.0.0 * * @global WP_Scripts $wp_scripts + * @phpstan-return void */ function wp_tinymce_inline_scripts() { @@ -142095,6 +143480,7 @@ function wp_tinymce_inline_scripts() * @since 5.0.0 * * @param WP_Scripts $scripts WP_Scripts object. + * @phpstan-return void */ function wp_default_packages($scripts) { @@ -142123,6 +143509,7 @@ function wp_scripts_get_suffix($type = '') * @since 2.6.0 * * @param WP_Scripts $scripts WP_Scripts object. + * @phpstan-return void */ function wp_default_scripts($scripts) { @@ -142143,6 +143530,7 @@ function wp_default_scripts($scripts) * @global array $editor_styles * * @param WP_Styles $styles + * @phpstan-return void */ function wp_default_styles($styles) { @@ -142166,6 +143554,7 @@ function wp_prototype_before_jquery($js_array) * @since 2.5.0 * * @global array $shortcode_tags + * @phpstan-return void */ function wp_just_in_time_script_localization() { @@ -142256,6 +143645,7 @@ function print_footer_scripts() * * @global WP_Scripts $wp_scripts * @global bool $compress_scripts + * @phpstan-return void */ function _print_scripts() { @@ -142288,6 +143678,7 @@ function wp_print_head_scripts() * The closure calls print_footer_scripts() to print scripts in the footer as usual. * * @since 3.3.0 + * @phpstan-return void */ function _wp_footer_scripts() { @@ -142296,6 +143687,7 @@ function _wp_footer_scripts() * Hooks to print the scripts and styles in the footer. * * @since 2.8.0 + * @phpstan-return void */ function wp_print_footer_scripts() { @@ -142307,6 +143699,7 @@ function wp_print_footer_scripts() * Runs first in wp_head() where all is_home(), is_page(), etc. functions are available. * * @since 2.8.0 + * @phpstan-return void */ function wp_enqueue_scripts() { @@ -142343,6 +143736,7 @@ function print_late_styles() * @since 3.3.0 * * @global bool $compress_css + * @phpstan-return void */ function _print_styles() { @@ -142355,6 +143749,7 @@ function _print_styles() * @global bool $concatenate_scripts * @global bool $compress_scripts * @global bool $compress_css + * @phpstan-return void */ function script_concat_settings() { @@ -142472,6 +143867,7 @@ function enqueue_block_styles_assets() * Function responsible for enqueuing the assets required for block styles functionality on the editor. * * @since 5.3.0 + * @phpstan-return void */ function enqueue_editor_block_styles_assets() { @@ -142480,6 +143876,7 @@ function enqueue_editor_block_styles_assets() * Enqueues the assets required for the block directory within the block editor. * * @since 5.5.0 + * @phpstan-return void */ function wp_enqueue_editor_block_directory_assets() { @@ -142488,6 +143885,7 @@ function wp_enqueue_editor_block_directory_assets() * Enqueues the assets required for the format library within the block editor. * * @since 5.8.0 + * @phpstan-return void */ function wp_enqueue_editor_format_library_assets() { @@ -142531,6 +143929,7 @@ function wp_get_script_tag($attributes) * @since 5.7.0 * * @param array $attributes Key-value pairs representing `