Opened 18 years ago
Closed 16 years ago
#4331 closed enhancement (invalid)
Filtering admin head titles, allowing head injections in upload frame
Reported by: | oaoao | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.3 |
Component: | Administration | Keywords: | needs-patch |
Focuses: | Cc: |
Description
I've been trying to use Wordpress for a custom CMS and have been a little frustrated with the lack of control over the admin side. To that end, I've made one new filter and one new action.
New action:
admin_head-upload
Allows for insertion of css & js in the upload frame's <head>.
New filter:
admin_title
Everything within <title> is filtered in bookmarklet.php, upload.php and admin-header.php. This required a trivial change to bloginfo(), since it did not present the option of returning instead of a direct echo. I've added $display=false to the arg list, ala wp_title() and others.
Attachments (1)
Change History (12)
#3
in reply to:
↑ 1
@
18 years ago
Replying to rob1n:
Use get_bloginfo().
correct me if i'm wrong, but get_bloginfo() does not run the appropriate filters over the content. a user could potentially be doing something with 'name' prior to the title filter.
#7
@
17 years ago
- Milestone changed from 2.5 to 2.4
Still no way to filter admin head titles. How can you have a custom CMS when you cant even alter titles without touching core files?
patch