Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#12050 closed defect (bug) (fixed)

Link Manager Custom Column

Reported by: camiloclc Owned by:
Priority: normal Milestone: 3.0
Component: Administration Version: 2.9.1
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

When adding custom columns to links, in wp-admin/link-manager.php line 242, the "td" attributes are not being echoed for these custom columns like it is in other row based pages (post, page, comment) on the switch statement, even though the variable is being populated.
The code in wp-admin/link-manager.php line 242 is:

<td><?php do_action('manage_link_custom_column', $column_name, $link->link_id); ?></td>

But it should be:

<td <?php echo $attributes ?>><?php do_action('manage_link_custom_column', $column_name, $link->link_id); ?></td>

Attachments (1)

12050.diff (490 bytes ) - added by nacin 17 years ago.

Download all attachments as: .zip

Change History (3)

@nacin
17 years ago

#1 @nacin
17 years ago

  • Component GeneralAdministration
  • Keywords has-patch commit added; link link manager link custom removed
  • Milestone Unassigned3.0

For what it's worth, I checked all other *_custom_column actions and this was the only one missing the attributes. (Not counting actions in ms-sites.php and ms-users.php that don't have attributes at all.)

#2 @ryan
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [12872]) Show td attributes for custon coolumns. Props camiloclc. fixes #12050

Note: See TracTickets for help on using tickets.