Make WordPress Core

Opened 17 years ago

Closed 15 years ago

#4331 closed enhancement (invalid)

Filtering admin head titles, allowing head injections in upload frame

Reported by: oaoao's profile oaoao Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3
Component: Administration Keywords: needs-patch
Focuses: Cc:


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:
Allows for insertion of css & js in the upload frame's <head>.

New filter:
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)

admin-title-filter-and-upload-header.patch (3.7 KB) - added by oaoao 17 years ago.

Download all attachments as: .zip

Change History (12)

#1 follow-up: @rob1n
17 years ago

Use get_bloginfo().

#2 @rob1n
17 years ago

  • Owner changed from anonymous to rob1n

#3 in reply to: ↑ 1 @oaoao
17 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.

#4 @oaoao
17 years ago

  • Cc oaoao added

#5 @rob1n
17 years ago

  • Owner rob1n deleted

#6 @foolswisdom
17 years ago

  • Milestone changed from 2.3 to 2.5 (future)

#7 @oaoao
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?

#8 @lloydbudd
17 years ago

  • Keywords has-patch added

#9 @ffemtcj
16 years ago

  • Milestone changed from 2.5 to 2.6

#10 @mrmist
15 years ago

  • Keywords needs-patch added; has-patch removed

I reckon this would need freshening to cope with new bits added to the admin functionality.

#11 @filosofo
15 years ago

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

The upload filter is not necessary with the current uploader, and the title name can be filtered using some combination of the option_blogname or bloginfo filters.

Note: See TracTickets for help on using tickets.