Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add taxonomy ID labels for collection taxonomies.

Useful for the expanded Twitter token support.
  • Loading branch information...
commit a1e55e9e8d12feaa4c439a9cf566a7a517bc683f 1 parent a51b5d6
Michael Sisk authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 -/php/config.php
View
6 -/php/config.php
@@ -763,16 +763,16 @@ public function collection_supports_taxonomies() {
$first = true;
foreach ( get_taxonomies( array( 'public' => true ), 'objects' ) as $k => $v ) {
- //if ( 'post_format' === $v->name or 'webcomic_language' === $v->name or preg_match( '/^webcomic\d+_(storyline|character)$/', $v->name ) ) {
if ( 'post_format' === $v->name or 'webcomic_language' === $v->name or "{$_GET[ 'post_type' ]}_storyline" === $v->name or "{$_GET[ 'post_type' ]}_character" === $v->name ) {
continue;
}
- printf( '<label><input type="checkbox" name="webcomic_taxonomies[]" value="%s"%s%s> %s</label><br>',
+ printf( '<label><input type="checkbox" name="webcomic_taxonomies[]" value="%s"%s%s> %s <a class="add-new-h2">%s</a></label><br>',
$v->name,
$first ? ' id="webcomic_posts_taxonomy"' : '',
checked( in_array( $v->name, self::$config[ 'collections' ][ $_GET[ 'post_type' ] ][ 'taxonomies' ] ), true, false ),
- $v->labels->name
+ $v->labels->name,
+ $v->name
);
$first = false;
Please sign in to comment.
Something went wrong with that request. Please try again.