Changeset 2556
- Timestamp:
- 02/23/2016 06:06:43 AM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-template.php
r2555 r2556 55 55 $plugin = get_post(); 56 56 $plugin_slug = $plugin->post_name; 57 $raw_sections = get_post_meta( $plugin->ID, 'sections', true ); 58 $ raw_sections = array_unique( array_merge( $raw_sections,array(57 58 $default_sections = array( 59 59 'description', 60 60 'screenshots', … … 63 63 'reviews', 64 64 'developers', 65 ) ) ); 65 ); 66 if ( ! get_post_meta( $plugin->ID, 'screenshots', true ) && ! get_post_meta( $plugin->ID, 'assets_screenshots', true ) ) { 67 unset( $default_sections[ array_search( 'screenshots', $default_sections ) ] ); 68 } 69 70 $raw_sections = get_post_meta( $plugin->ID, 'sections', true ); 71 $raw_sections = array_unique( array_merge( $raw_sections, $default_sections ) ); 66 72 67 73 $sections = array(); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/plugin-directory.php
r2501 r2556 14 14 */ 15 15 16 include_once( 'class-wporg-plugin-directory.php' ); 17 include_once( 'class-wporg-plugin-directory-template.php' ); 18 include_once( 'class-wporg-plugin-directory-tools.php' ); 16 include __DIR__ . '/class-wporg-plugin-directory.php'; 17 include __DIR__ . '/class-wporg-plugin-directory-template.php'; 18 include __DIR__ . '/class-wporg-plugin-directory-tools.php'; 19 20 include __DIR__ . '/shortcodes/screenshots.php'; 19 21 20 22 $wporg_plugin_directory = new WPorg_Plugin_Directory();
Note: See TracChangeset
for help on using the changeset viewer.