Making WordPress.org


Ignore:
Timestamp:
12/23/2016 01:43:08 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Ignore the wordpress and plugin tags, we know it's a WordPress plugin.

See #2341

File:
1 edited

Legend:

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

    r4562 r4571  
    127127
    128128        /**
     129         * These plugin tags are ignored.
     130         *
     131         * @var array
     132         */
     133        private $ignore_tags = array(
     134                'plugin',
     135                'wordpress',
     136        );
     137
     138        /**
    129139         * Parser constructor.
    130140         *
     
    209219                        $this->tags = array_map( 'trim', $this->tags );
    210220                        $this->tags = array_filter( $this->tags );
     221                        $this->tags = array_diff( $this->tags, $this->ignore_tags );
    211222                        $this->tags = array_slice( $this->tags, 0, 5 );
    212223                }
Note: See TracChangeset for help on using the changeset viewer.