$type){ $rw_content_types[] = array_merge( (array) $type, get_post_custom_values('arguments',$type->ID) ? array( 'arguments'=> maybe_unserialize(array_shift(get_post_custom_values('arguments',$type->ID)))) : array()); } foreach((array) get_posts('post_type=rw_taxonomy&numberposts=-1') as $k=>$type){ $rw_taxonomies[] = array_merge( (array) $type, get_post_custom_values('arguments',$type->ID) ? array( 'arguments'=> maybe_unserialize(array_shift(get_post_custom_values('arguments',$type->ID)))) : array()); } /* } */ // Content Types foreach($rw_content_types as $content_type){ if(in_array($content_type["arguments"]["name-singular"],array("Content Type","Taxonomy"))) continue; $num_types = wp_count_posts( $content_type["arguments"]["slug"] ); $num = number_format_i18n( $num_types->publish ); $text = _n( $content_type["arguments"]["name-singular"] , $content_type["post_title"], intval($num_types->publish) ); if ( current_user_can( "edit_posts" ) ) { $num = '$num"; $text = '$text"; } $rows .= '' . $num . '' . $text . ""; } // Taxonomies foreach($rw_taxonomies as $taxonomy){ if(in_array($taxonomy["arguments"]["title-singular"],array("Content Type","Taxonomy"))) continue; $num_taxs = wp_count_terms($taxonomy["arguments"]["slug"]); $num = number_format_i18n( $num_taxs ); $text = _n( $taxonomy["arguments"]["title-singular"] , $taxonomy["post_title"], $num_taxs ); if ( current_user_can( "edit_posts" ) ) { $num = '$num"; $text = '$text"; } $rows .= '' . $num . '' . $text . ""; } if(0){ ?>