Permalink
Browse files

enable access to threads taxonomy, clean up widget labels

  • Loading branch information...
1 parent 9513ea5 commit 03476cc59e9d767b87bebc656c8fe6308ba582ce @alexkingorg alexkingorg committed Mar 17, 2013
Showing with 3 additions and 4 deletions.
  1. +1 −2 architecture.php
  2. +2 −2 recent-threads-widget.php
View
@@ -76,8 +76,7 @@ function cfth_hide_tax_nav() {
?>
<script>
jQuery(function($) {
- $('#newthreads_parent').remove();
- $('a[href*="edit-tags.php?taxonomy=threads"]').hide();
+ $('#newthreads_parent, #menu-posts-thread').remove();
});
</script>
<?php
@@ -3,7 +3,7 @@
class WP_Widget_Recent_Threads extends WP_Widget {
function __construct() {
- $widget_ops = array('classname' => 'widget_recent_threads', 'description' => __( "The recently active Threads on your site.") );
+ $widget_ops = array('classname' => 'widget_recent_threads', 'description' => __( "Recently active Threads on your site.") );
parent::__construct('recent-threads', __('Recent Threads'), $widget_ops);
$this->alt_option_name = 'widget_recent_threads';
@@ -26,7 +26,7 @@ function widget($args, $instance) {
ob_start();
extract($args);
- $title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Posts') : $instance['title'], $instance, $this->id_base);
+ $title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Threads') : $instance['title'], $instance, $this->id_base);
if ( ! $number = absint( $instance['number'] ) )
$number = 10;

0 comments on commit 03476cc

Please sign in to comment.