Make WordPress Core

Changeset 47055


Ignore:
Timestamp:
01/10/2020 12:28:10 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Remove @return void from widget DocBlocks.

Per the documentation standards, it should not be used outside of the default bundled themes.

See #48303.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php

    r46821 r47055  
    239239     *
    240240     * @see WP_Widget_Custom_HTML::render_control_template_scripts()
     241     *
    241242     * @param array $instance Current instance.
    242243     */
  • trunk/src/wp-includes/widgets/class-wp-widget-media-audio.php

    r46586 r47055  
    6161     * @see WP_REST_Controller::get_additional_fields()
    6262     * @link https://core.trac.wordpress.org/ticket/35574
     63     *
    6364     * @return array Schema for properties.
    6465     */
     
    9798     *
    9899     * @param array $instance Widget instance props.
    99      * @return void
    100100     */
    101101    public function render_media( $instance ) {
  • trunk/src/wp-includes/widgets/class-wp-widget-media-gallery.php

    r46586 r47055  
    5252     * @see WP_REST_Controller::get_additional_fields()
    5353     * @link https://core.trac.wordpress.org/ticket/35574
     54     *
    5455     * @return array Schema for properties.
    5556     */
     
    109110     *
    110111     * @param array $instance Widget instance props.
    111      * @return void
    112112     */
    113113    public function render_media( $instance ) {
  • trunk/src/wp-includes/widgets/class-wp-widget-media-image.php

    r46586 r47055  
    6060     * @see WP_REST_Controller::get_additional_fields()
    6161     * @link https://core.trac.wordpress.org/ticket/35574
     62     *
    6263     * @return array Schema for properties.
    6364     */
     
    173174     *
    174175     * @param array $instance Widget instance props.
    175      * @return void
    176176     */
    177177    public function render_media( $instance ) {
  • trunk/src/wp-includes/widgets/class-wp-widget-media-video.php

    r46586 r47055  
    6262     * @see WP_REST_Controller::get_additional_fields()
    6363     * @link https://core.trac.wordpress.org/ticket/35574
     64     *
    6465     * @return array Schema for properties.
    6566     */
     
    108109     *
    109110     * @param array $instance Widget instance props.
    110      *
    111      * @return void
    112111     */
    113112    public function render_media( $instance ) {
  • trunk/src/wp-includes/widgets/class-wp-widget-media.php

    r46586 r47055  
    128128     * @see WP_REST_Controller::get_additional_fields()
    129129     * @link https://core.trac.wordpress.org/ticket/35574
     130     *
    130131     * @return array Schema for properties.
    131132     */
     
    321322     *
    322323     * @see \WP_Widget_Media::render_control_template_scripts() Where the JS template is located.
     324     *
    323325     * @param array $instance Current settings.
    324      * @return void
    325326     */
    326327    final public function form( $instance ) {
  • trunk/src/wp-includes/widgets/class-wp-widget-text.php

    r45742 r47055  
    345345     *
    346346     * @see WP_Widget_Media_Video::inject_video_max_width_style()
     347     *
    347348     * @param array $matches Pattern matches from preg_replace_callback.
    348349     * @return string HTML Output.
     
    442443     * @since 4.8.0 Form only contains hidden inputs which are synced with JS template.
    443444     * @since 4.8.1 Restored original form to be displayed when in legacy mode.
     445     *
    444446     * @see WP_Widget_Text::render_control_template_scripts()
    445447     * @see _WP_Editors::editor()
    446448     *
    447449     * @param array $instance Current settings.
    448      * @return void
    449450     */
    450451    public function form( $instance ) {
Note: See TracChangeset for help on using the changeset viewer.