Remove unused settings and post types

This commit is contained in:
Takumi
2013-08-23 02:34:27 +10:00
parent d206460352
commit c6dafbf07b
11 changed files with 69 additions and 317 deletions

View File

@@ -1,6 +1,6 @@
<?php
function sp_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
if( empty ( $html ) && in_array( get_post_type( $post_id ), array( 'sp_team', 'sp_tournament', 'sp_venue' ) ) ) {
if( empty ( $html ) && in_array( get_post_type( $post_id ), array( 'sp_team', 'sp_tournament' ) ) ) {
$parents = get_post_ancestors( $post_id );
foreach ( $parents as $parent ) {
if( has_post_thumbnail( $parent ) ) {