Changeset 5445
- Timestamp:
- 04/30/2017 04:03:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r5338 r5445 22 22 23 23 // Readme fields which get stored in plugin meta 24 var$readme_fields = array(24 public $readme_fields = array( 25 25 'tested', 26 26 'requires', … … 29 29 'license_uri', 30 30 'upgrade_notice', 31 'screenshots' 31 'screenshots', 32 32 ); 33 33 34 34 // Plugin headers that are stored in plugin meta 35 var$plugin_headers = array(35 public $plugin_headers = array( 36 36 // Header => meta_key 37 37 'Name' => 'header_name', … … 40 40 'Author' => 'header_author', 41 41 'AuthorURI' => 'header_author_uri', 42 'TextDomain' => 'header_textdomain' 42 'TextDomain' => 'header_textdomain', 43 43 ); 44 44 … … 53 53 */ 54 54 public function import_from_svn( $plugin_slug, $svn_changed_tags = array( 'trunk' ), $svn_revision_triggered = 0 ) { 55 global $wpdb;56 57 55 $plugin = Plugin_Directory::get_plugin_post( $plugin_slug ); 58 56 if ( ! $plugin ) { 59 throw new Exception( "Unknown Plugin");57 throw new Exception( 'Unknown Plugin' ); 60 58 } 61 59 … … 73 71 $content .= "\n\n<!--section={$section}-->\n{$section_content}"; 74 72 } 75 } elseif ( ! empty( $headers->Description ) ) {73 } elseif ( ! empty( $headers->Description ) ) { 76 74 $content = "<!--section=description-->\n{$headers->Description}"; 77 75 }
Note: See TracChangeset
for help on using the changeset viewer.