Make WordPress Core

Changeset 55725


Ignore:
Timestamp:
05/06/2023 11:38:17 AM (14 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json-schema.php

    r54133 r55725  
    139139     * @param array $settings Reference to the current settings array.
    140140     * @param array $path Path to the property to be removed.
    141      *
    142      * @return void
    143141     */
    144142    private static function unset_setting_by_path( &$settings, $path ) {
  • trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php

    r55724 r55725  
    12591259     *
    12601260     * @since 6.2.0
    1261      *
    1262      * @return void
    12631261     */
    12641262    private function skip_whitespace() {
     
    12701268     *
    12711269     * @since 6.2.0
    1272      *
    1273      * @return void
    12741270     */
    12751271    private function after_tag() {
     
    12901286     * @see WP_HTML_Tag_Processor::$lexical_updates
    12911287     * @see WP_HTML_Tag_Processor::$classname_updates
    1292      *
    1293      * @return void
    12941288     */
    12951289    private function class_name_updates_to_attributes_updates() {
     
    21842178     *     @type string      $tag_closers  "visit" or "skip": whether to stop on tag closers, e.g. </div>.
    21852179     * }
    2186      * @return void
    21872180     */
    21882181    private function parse_query( $query ) {
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php

    r55606 r55725  
    3535     *
    3636     * @since 5.9.0
    37      *
    38      * @return void
    3937     */
    4038    public function register_routes() {
  • trunk/src/wp-includes/script-loader.php

    r55713 r55725  
    30223022 *     @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.
    30233023 * }
    3024  *
    3025  * @return void
    30263024 */
    30273025function wp_enqueue_stored_styles( $options = array() ) {
  • trunk/src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php

    r55719 r55725  
    8181     *
    8282     * @since 6.1.0
    83      *
    84      * @return void
    8583     */
    8684    public static function remove_all_stores() {
     
    9492     *
    9593     * @param string $name The store name.
    96      * @return void
    9794     */
    9895    public function set_name( $name ) {
     
    153150     *
    154151     * @param string $selector The CSS selector.
    155      * @return void
    156152     */
    157153    public function remove_rule( $selector ) {
  • trunk/src/wp-includes/style-engine/class-wp-style-engine-processor.php

    r55719 r55725  
    127127     *
    128128     * @since 6.1.0
    129      *
    130      * @return void
    131129     */
    132130    private function combine_rules_selectors() {
  • trunk/src/wp-includes/style-engine/class-wp-style-engine.php

    r55719 r55725  
    289289     * @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.
    290290     * @param string[] $css_declarations An associative array of CSS definitions, e.g., `array( "$property" => "$value", "$property" => "$value" )`.
    291      * @return void
    292291     */
    293292    public static function store_css_rule( $store_name, $css_selector, $css_declarations ) {
Note: See TracChangeset for help on using the changeset viewer.