Making WordPress.org


Ignore:
Timestamp:
02/01/2018 05:09:35 PM (7 years ago)
Author:
obenland
Message:

Main: Restore second argument to prevent warning.

Fun fact: It is impossible to silence a 'unused variable' phpcs warning with an inline comment.

See [6502].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/widgets/class-wporg-widget-download.php

    r6502 r6503  
    3030    }
    3131
     32    // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.Found
    3233    /**
    3334     * Outputs the content for the current Download widget instance.
     
    3637     *
    3738     * @param array $args     Display arguments including 'before_widget' and 'after_widget'.
     39     * @param array $instance Settings for the current Download widget instance.
    3840     */
    39     public function widget( $args ) {
     41    public function widget( $args, $instance ) {
     42        // phpcs:enable
    4043        global $rosetta;
    4144
Note: See TracChangeset for help on using the changeset viewer.