Changeset 8546
- Timestamp:
- 03/27/2019 09:45:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r8192 r8546 359 359 'description', 360 360 'screenshots', 361 'blocks', 361 362 'stats', 362 363 'support', … … 367 368 unset( $default_sections[ array_search( 'screenshots', $default_sections ) ] ); 368 369 } 370 if ( ! get_post_meta( $plugin->ID, 'all_blocks' ) ) { 371 unset( $default_sections[ array_search( 'blocks', $default_sections ) ] ); 372 } 369 373 370 374 $raw_sections = get_post_meta( $plugin->ID, 'sections', true ) ?: array(); … … 425 429 case 'other_notes': 426 430 $title = _x( 'Other Notes', 'plugin tab title', 'wporg-plugins' ); 431 $url = trailingslashit( $permalink ) . '/' . $section_slug . '/'; 432 break; 433 434 case 'blocks': 435 $title = _x( 'Blocks', 'plugin tab title', 'wporg-plugins' ); 427 436 $url = trailingslashit( $permalink ) . '/' . $section_slug . '/'; 428 437 break;
Note: See TracChangeset
for help on using the changeset viewer.