Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter maphewyk

    (@maphewyk)

    Thankfully Preview Theme mode shows the problem, so I don’t have to change active theme and break the site again in order to troubleshoot.

    • This reply was modified 8 years, 5 months ago by maphewyk.
    Thread Starter maphewyk

    (@maphewyk)

    The function surrounding theme.php line 1557 $args[0] = array_unique(...:

    
    	switch ( $feature ) {
    		case 'post-thumbnails':
    			// All post types are already supported.
    			if ( true === get_theme_support( 'post-thumbnails' ) ) {
    				return;
    			}
    
    			/*
    			 * Merge post types with any that already declared their support
    			 * for post thumbnails.
    			 */
    			if ( is_array( $args[0] ) && isset( $_wp_theme_features['post-thumbnails'] ) ) {
    				$args[0] = array_unique( array_merge( $_wp_theme_features['post-thumbnails'][0], $args[0] ) );
    			}
    
    			break;
    
    • This reply was modified 8 years, 5 months ago by maphewyk.
Viewing 2 replies - 1 through 2 (of 2 total)