Changeset 2561 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-template.php
- Timestamp:
- 02/24/2016 06:44:33 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-template.php
r2556 r2561 150 150 static function get_plugin_icon( $plugin, $output = 'raw' ) { 151 151 global $wporg_plugin_directory; 152 $plugin = $wporg_plugin_directory->get_ or_create_plugin_post( $plugin );153 if ( is_wp_error( $plugin )) {152 $plugin = $wporg_plugin_directory->get_plugin_post( $plugin ); 153 if ( ! $plugin ) { 154 154 return false; 155 155 } … … 219 219 static function get_plugin_banner( $plugin, $output = 'raw' ) { 220 220 global $wporg_plugin_directory; 221 $plugin = $wporg_plugin_directory->get_ or_create_plugin_post( $plugin );222 if ( is_wp_error( $plugin )) {221 $plugin = $wporg_plugin_directory->get_plugin_post( $plugin ); 222 if ( ! $plugin ) { 223 223 return false; 224 224 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)