[wp-trac] [WordPress Trac] #27957: Revisit the Tag/Category Converter mention on the Tools Page

WordPress Trac noreply at wordpress.org
Mon Apr 21 18:59:05 UTC 2014


#27957: Revisit the Tag/Category Converter mention on the Tools Page
--------------------------------+-----------------------------
 Reporter:  MadtownLems         |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  General             |    Version:  3.9
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 Core's tools.php page specifically calls attention to the "Categories and
 Tags Converter" plugin.

 I'd suggest eliminating reference to this completely.

 It looks to be a relic from years ago that just kind of came along for the
 ride, and doesn't really have a place in modern Core.  I think it's a
 perfect example of functionality that falls into 'Plugin Territory' -
 which, luckily, is how it's currently implemented.  There are also a large
 number of similar, more well-maintained plugins that can accomplish this
 and more for a larger number of taxonomies.

 If it's decided that the reference should stay, then I believe the logic
 surrounding the output needs to be modified, more along the lines of this
 psuedocode:

 (As currently, if a user can Manage Terms, they're instructed to go
 install a plugin, even if they may lack that capability.)

 {{{


     if ( current_user_can($cats->cap->manage_terms) ||
 current_user_can($tags->cap->manage_terms) ) {

             if ( $tag_category_converter_is_installed //TODO: this check )
 {
                     // provide link for actually using it. TODO: this link
             } else {
                     if ( current_user_can( 'install_plugins') ) {
                     ?>
                     <div class="tool-box">
                             <h3 class="title"><?php _e( 'Categories and
 Tags Converter' ) ?></h3>
                             <p><?php printf( __('If you want to convert
 your categories to tags (or vice versa), use the <a href="%s">Categories
 and Tags Converter</a> available from the Import screen.'), 'import.php'
 ); ?></p>
                     </div>
                     <?php
                     }
             }
     }


 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27957>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list