Making WordPress.org


Ignore:
Timestamp:
04/21/2016 07:41:53 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Housekeeping.

  • Updates and corrects doc blocks.
  • Simplifies overqualified class references.
  • Corrects function args and return types.
  • Adds missing labels to input elements.
  • Makes sure variables are set before using them.

See #1584.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-committers.php

    r2777 r2994  
    8484                'username' => __( 'Username', 'wporg-plugins' ),
    8585            ),
    86             array(),
    8786            array(),
    8887            'username',
     
    123122                    <?php wp_nonce_field( 'add-committer', '_ajax_nonce', false ); ?>
    124123                    <span id="committer-error" class="notice notice-alt notice-error" style="display:none;"></span>
    125                     <input type="text" name="add_committer" class="form-required" value="" aria-required="true">
     124                    <label>
     125                        <input type="text" name="add_committer" class="form-required" value="" aria-required="true">
     126                        <span class="screen-reader-text"><?php _e( 'Add a new committer', 'wporg-plugins' ); ?></span>
     127                    </label>
    126128                    <input type="button" id="add-committer-submit" class="button" data-wp-lists="add:the-committer-list:add-committer::post_id=<?php echo get_post()->ID; ?>" value="<?php _e( 'Add Committer', 'wporg-plugins' ); ?>">
    127129                </p>
     
    144146        }
    145147        $user_object->filter = 'display';
    146         list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();
     148        list( $columns, $hidden, $primary ) = $this->get_column_info();
    147149
    148150        // Set up the hover actions for this committer.
Note: See TracChangeset for help on using the changeset viewer.