Making WordPress.org

Changeset 3383


Ignore:
Timestamp:
06/16/2016 08:15:28 AM (8 years ago)
Author:
obenland
Message:

Plugin Directory: First pass at a readme validator.

Adds an admin UI and the basic infrastructure to validate readme files.
Needs some more work in the parsing part.

See https://wordpress.slack.com/archives/meta/p1466062950000169.
See #1571.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin
Files:
1 added
1 edited

Legend:

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

    r3350 r3383  
    135135         */
    136136        add_submenu_page( 'edit.php?post_type=plugin', 'Plugin Handbook', 'Plugin Handbook', 'read', 'handbook', function() {} );
    137         add_submenu_page( 'edit.php?post_type=plugin', 'Readme Validator', 'Readme Validator', 'read', 'readme_validator', function() {} );
     137
     138        $readme_validator = Readme_Validator::instance();
     139        add_submenu_page( 'edit.php?post_type=plugin', 'Readme Validator', 'Readme Validator', 'read', 'readme_validator', array( $readme_validator, 'display' ) );
    138140
    139141        if ( ! current_user_can( 'manage_options' ) ) {
Note: See TracChangeset for help on using the changeset viewer.