Making WordPress.org


Ignore:
Timestamp:
07/03/2020 06:33:41 AM (5 years ago)
Author:
tellyworth
Message:

Plugin directory: make it easier to validate block plugins by name or URL.

This improves the input handler to accept either a plugin slug, or a URL like https://wordpress.org/plugins/the-slug/.

See #5303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php

    r10006 r10007  
    2121                </p>
    2222                <p>
    23                     <input type="text" id="plugin_url" name="plugin_url" size="70" placeholder="https://plugins.svn.wordpress.org/" value="<?php echo esc_url( $plugin_url ); ?>" />
     23                    <input type="text" id="plugin_url" name="plugin_url" size="70" placeholder="https://plugins.svn.wordpress.org/" value="<?php echo esc_attr( $plugin_url ); ?>" />
    2424                    <input type="submit" class="button button-secondary" value="<?php esc_attr_e( 'Validate!', 'wporg-plugins' ); ?>" />
    2525                    <?php wp_nonce_field( 'validate-block-plugin', 'block-nonce' ); ?>
Note: See TracChangeset for help on using the changeset viewer.