Making WordPress.org


Ignore:
Timestamp:
05/26/2018 01:58:44 PM (6 years ago)
Author:
Otto42
Message:

Support Forums: Enable a rudimentary UI for editing the theme/plugin taxonomies, to allow moderators the ability to move topics between plugin/theme forums. A more comprehensive and foolproof UI can be added later, the default WordPress tags mechanism is functional for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php

    r6387 r7243  
    1616    abstract protected function query_var();
    1717    abstract protected function taxonomy();
     18    abstract protected function name();
    1819    abstract protected function parse_query();
    1920    abstract protected function do_view_sidebar();
     
    480481    public function register_taxonomy() {
    481482        if ( post_type_exists( 'topic' ) ) {
    482             register_taxonomy( $this->taxonomy(), 'topic', array( 'public' => false ) );
     483            register_taxonomy( $this->taxonomy(), 'topic', array( 'public' => false, 'show_ui' => true, 'labels' => array ('name' => $this->name() ) ) );
    483484        }
    484485    }
Note: See TracChangeset for help on using the changeset viewer.