mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Docs: Remove @return void
from various DocBlocks.
Per the documentation standards, it should not be used outside of the default bundled themes. Follow-up to [52049], [52051], [53331], [54156], [54214], [55203], [55719]. See #57840. Built from https://develop.svn.wordpress.org/trunk@55725 git-svn-id: http://core.svn.wordpress.org/trunk@55237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
24eb807cbd
commit
8b53b81183
@ -138,8 +138,6 @@ class WP_Theme_JSON_Schema {
|
||||
*
|
||||
* @param array $settings Reference to the current settings array.
|
||||
* @param array $path Path to the property to be removed.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private static function unset_setting_by_path( &$settings, $path ) {
|
||||
$tmp_settings = &$settings; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
||||
|
@ -1258,8 +1258,6 @@ class WP_HTML_Tag_Processor {
|
||||
* Move the internal cursor past any immediate successive whitespace.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function skip_whitespace() {
|
||||
$this->bytes_already_parsed += strspn( $this->html, " \t\f\r\n", $this->bytes_already_parsed );
|
||||
@ -1269,8 +1267,6 @@ class WP_HTML_Tag_Processor {
|
||||
* Applies attribute updates and cleans up once a tag is fully parsed.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function after_tag() {
|
||||
$this->get_updated_html();
|
||||
@ -1289,8 +1285,6 @@ class WP_HTML_Tag_Processor {
|
||||
*
|
||||
* @see WP_HTML_Tag_Processor::$lexical_updates
|
||||
* @see WP_HTML_Tag_Processor::$classname_updates
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function class_name_updates_to_attributes_updates() {
|
||||
if ( count( $this->classname_updates ) === 0 ) {
|
||||
@ -2183,7 +2177,6 @@ class WP_HTML_Tag_Processor {
|
||||
* @type string|null $class_name Tag must contain this class name to match.
|
||||
* @type string $tag_closers "visit" or "skip": whether to stop on tag closers, e.g. </div>.
|
||||
* }
|
||||
* @return void
|
||||
*/
|
||||
private function parse_query( $query ) {
|
||||
if ( null !== $query && $query === $this->last_query ) {
|
||||
|
@ -34,8 +34,6 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
|
||||
* Registers the controllers routes.
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_routes() {
|
||||
register_rest_route(
|
||||
|
@ -3021,8 +3021,6 @@ function wp_enqueue_block_support_styles( $style, $priority = 10 ) {
|
||||
* @type bool $optimize Whether to optimize the CSS output, e.g., combine rules. Default is `false`.
|
||||
* @type bool $prettify Whether to add new lines and indents to output. Default is the test of whether the global constant `SCRIPT_DEBUG` is defined.
|
||||
* }
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function wp_enqueue_stored_styles( $options = array() ) {
|
||||
$is_block_theme = wp_is_block_theme();
|
||||
|
@ -80,8 +80,6 @@ class WP_Style_Engine_CSS_Rules_Store {
|
||||
* Clears all stores from static::$stores.
|
||||
*
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function remove_all_stores() {
|
||||
static::$stores = array();
|
||||
@ -93,7 +91,6 @@ class WP_Style_Engine_CSS_Rules_Store {
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @param string $name The store name.
|
||||
* @return void
|
||||
*/
|
||||
public function set_name( $name ) {
|
||||
$this->name = $name;
|
||||
@ -152,7 +149,6 @@ class WP_Style_Engine_CSS_Rules_Store {
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @param string $selector The CSS selector.
|
||||
* @return void
|
||||
*/
|
||||
public function remove_rule( $selector ) {
|
||||
unset( $this->rules[ $selector ] );
|
||||
|
@ -126,8 +126,6 @@ class WP_Style_Engine_Processor {
|
||||
* Combines selectors from the rules store when they have the same styles.
|
||||
*
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function combine_rules_selectors() {
|
||||
// Build an array of selectors along with the JSON-ified styles to make comparisons easier.
|
||||
|
@ -288,7 +288,6 @@ final class WP_Style_Engine {
|
||||
* @param string $store_name A valid store key.
|
||||
* @param string $css_selector When a selector is passed, the function will return a full CSS rule `$selector { ...rules }`, otherwise a concatenated string of properties and values.
|
||||
* @param string[] $css_declarations An associative array of CSS definitions, e.g., `array( "$property" => "$value", "$property" => "$value" )`.
|
||||
* @return void
|
||||
*/
|
||||
public static function store_css_rule( $store_name, $css_selector, $css_declarations ) {
|
||||
if ( empty( $store_name ) || empty( $css_selector ) || empty( $css_declarations ) ) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55724';
|
||||
$wp_version = '6.3-alpha-55725';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user