Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#28498 closed feature request (wontfix)

Need a filter in the WP_Terms_List_Table class

Reported by: rudidraad's profile rudidraad Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: Administration Keywords: 2nd-opinion
Focuses: administration Cc:

Description

I current am in dire need of a filter in the WP_Terms_List_Table Class. The function i need a filter in is column_name.

I need to be able to adjust the URL here. I've made an adjustment to the core and I've got this at line 291 right now:

/* EXTENDING THE CORE HERE - THIS SUCKS FOR UPDATES
        @todo: Find another way to implement this
        @core @extension*/
        $name_link = apply_filters ("{$taxonomy}_name_url", $edit_link);

		$out = '<strong><a class="row-title" href="' . $name_link . '" title="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $name ) ) . '">' . $name . '</a></strong><br />';
        /* END OF EXTENSION */

Would be awesome if this could be implemented in the next release!

Change History (3)

#1 @engelen
12 years ago

  • Component changed from General to Administration
  • Keywords 2nd-opinion added

This looks like something that shouldn't be filterable, in my opinion. The term name in the terms list table should always link to the page for editing the term. I don't see any real use cases for this, could you name your own use case and perhaps a few others?

If you need a column where the title links to another type of page, I would prefer people adding a custom column and removing the default one via the manage_edit-{taxonomy}_columns filter.

By the way, @rudidraad, welcome :-)!

Last edited 12 years ago by engelen (previous) (diff)

#2 @rudidraad
12 years ago

I've fiddled around with that filter and the accompanying action, and I've accomplished exactly what I wanted to. This filter is indeed not needed. Thank you for the fast and correct feedback!

#3 @johnbillion
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.