WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#3599 closed defect (bug) (fixed)

Admin screens could use filtering in various places

Reported by: jhodgdon Owned by:
Milestone: 2.2 Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: admin, filter, has-patch
Focuses: Cc:

Description

Sometimes, when the Admin screens put things like post categories and post titles on the screen, they are run through filters (so plugins can modify how they are displayed). Sometimes, they are not -- it isn't consistent. Here are some places they need to be added:

1) Dashboard screen: "Latest Activity" section filters post titles in "Posts" section but not in "Comments" section.

2) Manage / Categories screen: Category names are not filtered in the list of categories, or in the note about deleting section.

3) Blogroll / Manage Blogroll, Add Blogroll, and Import screens: Link titles and categories are not filtered (see ticket [3595 #3595], where patches will be added)

This is a MUCH reduced list, as compared to version 2.0.6, by the way! Thanks!

I will attach patches to add these filters.

Attachments (3)

wp-admin_index.php.diff (892 bytes) - added by jhodgdon 8 years ago.
Patch for index.php in wp-admin, to fix #1 above
categories.php.diff (1.2 KB) - added by jhodgdon 8 years ago.
Patch for wp-admin/categories.php to fix part 2 above
admin-functions.php.diff (1.2 KB) - added by jhodgdon 8 years ago.
Patch for wp-admin/admin-functions.php, to fix part 4 (in one of the comments below/above)

Download all attachments as: .zip

Change History (10)

@jhodgdon8 years ago

Patch for index.php in wp-admin, to fix #1 above

comment:1 @jhodgdon8 years ago

Note on part 2 above: Apparently there is a "cat_rows" filter that can be used in the category list, so no patch needed for that one; however, there is a patch for the note on deleting the categories (see categories.php, which I'm about to attach a patch for).

@jhodgdon8 years ago

Patch for wp-admin/categories.php to fix part 2 above

comment:2 @jhodgdon8 years ago

One more place:

4) On the Write Post screen, the check boxes for categories -- category names should be filtered there too.

(patch coming...)

@jhodgdon8 years ago

Patch for wp-admin/admin-functions.php, to fix part 4 (in one of the comments below/above)

comment:3 @jhodgdon8 years ago

  • Keywords has-patch added

comment:4 @jhodgdon8 years ago

  • Cc jhodgdon added

comment:5 @jhodgdon8 years ago

Just verified problems are still there in [5012]

comment:6 @jhodgdon8 years ago

Also I applied patches in [5012] and re-tested.

Patch for wp-admin/index.php fixes 1st item above.

Patch for wp-admin/categories.php fixes 2nd item above.

Patch for wp-admin/admin-functions.php fixes 4th item above.

Item 3 and part of item 2 have already been fixed by other patches.

comment:7 @ryan8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5015]) Add missing filters. Props jhodgdon. fixes #3599

Note: See TracTickets for help on using tickets.