Making WordPress.org

Changeset 9683


Ignore:
Timestamp:
04/02/2020 02:29:50 AM (6 years ago)
Author:
dd32
Message:

Plugin Directory: Display the 'Add New' field for Committers/Support Reps in wp-admin even when there are no committers/reps currently.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table
Files:
2 edited

Legend:

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

    r8034 r9683  
    105105            <tbody id="the-committer-list" data-wp-lists="list:committer">
    106106                <?php $this->display_rows_or_placeholder(); ?>
     107                <?php $this->display_add_new_row(); ?>
    107108            </tbody>
    108109        </table>
     
    119120            echo "\n\t" . $this->single_row( $user_object );
    120121        }
     122    }
     123
     124    /**
     125     * Display the "Add new" row.
     126     */
     127    public function display_add_new_row() {
    121128        ?>
    122129        <tr id="add-committer" class="add-committer wp-hidden-children">
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-support-reps.php

    r8034 r9683  
    105105            <tbody id="the-support-rep-list" data-wp-lists="list:support-rep">
    106106                <?php $this->display_rows_or_placeholder(); ?>
     107                <?php $this->display_add_new_row(); ?>
    107108            </tbody>
    108109        </table>
     
    119120            echo "\n\t" . $this->single_row( $user_object );
    120121        }
     122    }
     123
     124    /**
     125     * Display the "Add new" row.
     126     */
     127    public function display_add_new_row() {
    121128        ?>
    122129        <tr id="add-support-rep" class="add-support-rep wp-hidden-children">
Note: See TracChangeset for help on using the changeset viewer.