| 1538 | case 'post-thumbnails': |
| 1539 | // Support has already been added for all post types and has a boolean value of true. |
| 1540 | if ( true === get_theme_support( 'post-thumbnails' ) ) { |
| 1541 | return; |
| 1542 | } |
| 1543 | |
| 1544 | // Get previously added post types and merge unique values into new array as args. |
| 1545 | if ( is_array( $args[0] ) && is_array( $_wp_theme_features['post-thumbnails'][0] ) ) { |
| 1546 | $values = array_unique( array_merge( $args[0], $_wp_theme_features['post-thumbnails'][0] ) ); |
| 1547 | $args = array( $values ); |
| 1548 | } |
| 1549 | |
| 1550 | break; |
| 1551 | |