Making WordPress.org

Changeset 13475


Ignore:
Timestamp:
04/09/2024 01:54:47 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Readme Validator: Fix an off-by-one in the readme validator for number of ignored tags.

Props ironprogrammer.
Fixes #7559.

File:
1 edited

Legend:

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

    r13446 r13475  
    315315
    316316                        if ( count( $this->tags ) > 5 ) {
    317                                 $this->warnings['too_many_tags'] = array_slice( $this->tags, 4 );
     317                                $this->warnings['too_many_tags'] = array_slice( $this->tags, 5 );
    318318                                $this->tags = array_slice( $this->tags, 0, 5 );
    319319                        }
Note: See TracChangeset for help on using the changeset viewer.