Changeset 10984
- Timestamp:
- 05/18/2021 05:38:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-code-import.php
r10971 r10984 92 92 // Prefer requires field from the plugin headers if set. 93 93 $headers = Import::find_plugin_headers( $export_directory ); 94 if ( $headers->RequiresWP&& preg_match( '!^[\d.]{3,}$!', $headers->RequiresWP ) ) {94 if ( ! empty( $headers->RequiresWP ) && preg_match( '!^[\d.]{3,}$!', $headers->RequiresWP ) ) { 95 95 $requires = $headers->RequiresWP; 96 96 }
Note: See TracChangeset
for help on using the changeset viewer.