Skip to content
This repository
Browse code

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...
commit 388d2386bc544dbd8e5c8a56c7e62e4ceb760f58 1 parent 435dfe5
Michael Sisk authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 -/php/config.php
5 -/php/config.php
@@ -750,7 +750,8 @@ public function collection_supports_taxonomies() {
750 750 $first = true;
751 751
752 752 foreach ( get_taxonomies( array( 'public' => true ), 'objects' ) as $k => $v ) {
753   - if ( 'post_format' === $v->name or 'webcomic_language' === $v->name or preg_match( '/^webcomic\d+_(storyline|character)$/', $v->name ) ) {
  753 + //if ( 'post_format' === $v->name or 'webcomic_language' === $v->name or preg_match( '/^webcomic\d+_(storyline|character)$/', $v->name ) ) {
  754 + if ( 'post_format' === $v->name or 'webcomic_language' === $v->name or "{$_GET[ 'post_type' ]}_storyline" === $v->name or "{$_GET[ 'post_type' ]}_character" === $v->name ) {
754 755 continue;
755 756 }
756 757
@@ -1118,7 +1119,7 @@ public function page() {
1118 1119 ?>
1119 1120 <div class="wrap" >
1120 1121 <div id="icon-options-general" class="icon32" data-webcomic-admin-url="<?php echo admin_url(); ?>"></div>
1121   - <h2><?php echo get_admin_page_title(); ?></h2>
  1122 + <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>
1122 1123 <form action="options.php" method="post"<?php echo 'webcomic' !== $page ? ' enctype="multipart/form-data"' : ''; ?>>
1123 1124 <?php
1124 1125 settings_fields( 'webcomic-options' );

0 comments on commit 388d238

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