Changeset 12315
- Timestamp:
- 12/12/2022 03:04:06 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php
r12117 r12315 803 803 } 804 804 805 /**806 * Determine if the readme contains unique installation instructions.807 *808 * When phrases are added here, the affected plugins will need to be reparsed to pick it up.809 *810 * @return bool Whether the instructions differ from default instructions.811 */812 protected function has_unique_installation_instructions() {813 if ( ! isset( $this->sections['installation'] ) ) {814 return false;815 }816 817 // If the plugin installation section contains any of these phrases, skip it as it's not useful.818 $common_phrases = array(819 'This section describes how to install the plugin and get it working.', // Default readme.txt content820 );821 foreach ( $common_phrases as $phrase ) {822 if ( false !== stripos( $this->sections['installation'], $phrase ) ) {823 return false;824 }825 }826 827 return true;828 }829 805 }
Note: See TracChangeset
for help on using the changeset viewer.