Ticket #3599 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Admin screens could use filtering in various places

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

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

wp-admin_index.php.diff (0.9 kB) - added by jhodgdon on 01/16/07 22:27:26.
Patch for index.php in wp-admin, to fix #1 above
categories.php.diff (1.2 kB) - added by jhodgdon on 01/16/07 22:40:57.
Patch for wp-admin/categories.php to fix part 2 above
admin-functions.php.diff (1.2 kB) - added by jhodgdon on 01/16/07 22:54:11.
Patch for wp-admin/admin-functions.php, to fix part 4 (in one of the comments below/above)

Change History

01/16/07 22:27:26 changed by jhodgdon

  • attachment wp-admin_index.php.diff added.

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

01/16/07 22:39:24 changed by jhodgdon

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).

01/16/07 22:40:57 changed by jhodgdon

  • attachment categories.php.diff added.

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

01/16/07 22:53:28 changed by jhodgdon

One more place:

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

(patch coming...)

01/16/07 22:54:11 changed by jhodgdon

  • attachment admin-functions.php.diff added.

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

02/23/07 00:53:35 changed by jhodgdon

  • keywords changed from admin, filter to admin, filter, has-patch.

03/09/07 20:23:08 changed by jhodgdon

  • cc set to jhodgdon.

03/10/07 04:07:57 changed by jhodgdon

Just verified problems are still there in [5012]

03/10/07 04:19:38 changed by jhodgdon

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.

03/10/07 05:25:36 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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