Make WordPress Core


Ignore:
Timestamp:
11/25/2025 06:53:28 PM (5 months ago)
Author:
westonruter
Message:

Twenty Eleven: Improve PHP docblocks with corrected descriptions, missing/corrected tags, and specific types.

Developed in https://github.com/WordPress/wordpress-develop/pull/10482

Props huzaifaalmesbah, dhruvang21, juanfra, sabernhardt, noruzzaman, ravichudasama01, westonruter.
See #64224.
Fixes #64211.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/inc/widgets.php

    r60513 r61309  
    5050     * @since Twenty Eleven 1.0
    5151     *
    52      * @param array $args     An array of standard parameters for widgets in this theme.
    53      * @param array $instance An array of settings for this widget instance.
     52     * @param array                     $args     An array of standard parameters for widgets in this theme.
     53     * @param array<string, string|int> $instance An array of settings for this widget instance.
    5454     */
    5555    public function widget( $args, $instance ) {
     
    157157     *
    158158     * @since Twenty Eleven 1.0
     159     *
     160     * @param array $new_instance New widget instance.
     161     * @param array $old_instance Original widget instance.
     162     * @return array<string, string|int> Updated widget instance.
    159163     */
    160164    public function update( $new_instance, $old_instance ) {
Note: See TracChangeset for help on using the changeset viewer.