Making WordPress.org

Changeset 3475


Ignore:
Timestamp:
06/19/2016 12:58:17 PM (9 years ago)
Author:
dd32
Message:

Plugin Directory: Fix the readme validator again for the FAQ and Screenshots checks.

See #1584

File:
1 edited

Legend:

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

    r3452 r3475  
    139139
    140140        // Notes.
    141         if ( empty( $readme->sections['frequently_asked_questions'] ) ) {
     141        if ( empty( $readme->sections['faq'] ) ) {
    142142            /* Translators: Plugin header tag; */
    143143            $notes[] = sprintf( __( 'No %s section was found', 'wporg-plugins' ), '<code>== Frequently Asked Questions ==</code>' );
     
    151151            $notes[] = sprintf( __( 'No %s section was found', 'wporg-plugins' ), '<code>== Upgrade Notice ==</code>' );
    152152        }
    153         if ( empty( $readme->sections['screenshots'] ) ) {
     153        if ( empty( $readme->screenshots ) ) {
    154154            /* Translators: Plugin header tag; */
    155155            $notes[] = sprintf( __( 'No %s section was found', 'wporg-plugins' ), '<code>== Screenshots ==</code>' );
Note: See TracChangeset for help on using the changeset viewer.