WordPress.org

Making WordPress.org

Changeset 7356


Ignore:
Timestamp:
07/02/2018 05:19:48 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory, Readme Validator: Clarify "No plugin name detected" error message.

Add a note that Plugin Name should be changed to reflect the actual name of the plugin.

Props duanestorey.
See #3675.

File:
1 edited

Legend:

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

    r7049 r7356  
    6464        // Fatal errors.
    6565        if ( empty( $readme->name ) ) {
    66             /* translators: %s: 'Plugin Name' section title */
    67             $errors[] = sprintf( __( 'No plugin name detected. Plugin names look like: %s', 'wporg-plugins' ), '<code>=== Plugin Name ===</code>' );
     66            /* translators: 1: 'Plugin Name' section title, 2: 'Plugin Name' */
     67            $errors[] = sprintf( __( 'No plugin name detected. Plugin names look like: %1$s. Please change %2$s to reflect the actual name of your plugin.', 'wporg-plugins' ), '<code>=== Plugin Name ===</code>', '<code>Plugin Name</code>' );
    6868        }
    6969
Note: See TracChangeset for help on using the changeset viewer.