Skip to content
Browse files

Add collection ID label to collection settings pages.

It's extremely useful for users to know the actual collection ID–like
webcomic42–when using various template tags, so adding it in a
prominent but not distracting place should be helpful.
  • Loading branch information...
1 parent 435dfe5 commit 388d2386bc544dbd8e5c8a56c7e62e4ceb760f58 Michael Sisk committed Feb 4, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 -/php/config.php
View
5 -/php/config.php
@@ -750,7 +750,8 @@ 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 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;
}
@@ -1118,7 +1119,7 @@ public function page() {
?>
<div class="wrap" >
<div id="icon-options-general" class="icon32" data-webcomic-admin-url="<?php echo admin_url(); ?>"></div>
- <h2><?php echo get_admin_page_title(); ?></h2>
+ <h2><?php echo get_admin_page_title(); if ( 'webcomic-options' !== $page ) { ?><a href="#" class="add-new-h2"><?php echo $_GET[ 'post_type' ]; ?></a><?php } ?></h2>
<form action="options.php" method="post"<?php echo 'webcomic' !== $page ? ' enctype="multipart/form-data"' : ''; ?>>
<?php
settings_fields( 'webcomic-options' );

0 comments on commit 388d238

Please sign in to comment.
Something went wrong with that request. Please try again.