Making WordPress.org

Changeset 13523


Ignore:
Timestamp:
04/15/2024 07:09:52 AM (8 months ago)
Author:
dd32
Message:

Plugin Directory: Readme Warnings: Store the list of ignored tags in the readme warnings.

See #6108.

File:
1 edited

Legend:

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

    r13475 r13523  
    310310
    311311            if ( array_intersect( $this->tags, $this->ignore_tags ) ) {
    312                 $this->tags = array_diff( $this->tags, $this->ignore_tags );
    313                 $this->warnings['ignored_tags'] = true;
     312                $this->warnings['ignored_tags'] = array_intersect( $this->tags, $this->ignore_tags );
     313                $this->tags                     = array_diff( $this->tags, $this->ignore_tags );
    314314            }
    315315
    316316            if ( count( $this->tags ) > 5 ) {
    317317                $this->warnings['too_many_tags'] = array_slice( $this->tags, 5 );
    318                 $this->tags = array_slice( $this->tags, 0, 5 );
     318                $this->tags                      = array_slice( $this->tags, 0, 5 );
    319319            }
    320320        }
Note: See TracChangeset for help on using the changeset viewer.