Changeset 2556 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-template.php
- Timestamp:
- 02/23/2016 06:06:43 AM (10 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
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();
Note: See TracChangeset
for help on using the changeset viewer.