ourlil.com

A web site for tutti noi (all of us!)

  • Home
  • About
  • About – sample
  • Healing Christofer – Fun’-Raiser
    • Gallery
  • JP’s Page

WordPressMU Bug Trac for fixing target=”_blank”

Author: webmaestro

W3C - World Wide Web ConsortiumOnce upon a time, we had a vexing problem where we couldn’t set the @target (OT: @target is tech-speak/jargon/euphemism for ‘target attribute’). Actually, you could set it, but when you ‘saved’ the post or story, TinyMCE (that nifty toolbar interface for formatting blog posts used by WordPress and a million other places). Here’s where I figured out what was wrong. I don’t know why they ‘broke’ the @target attribute, although I do know that the ‘target’ attribute was deprecated in HTML 4.01, as well as XHTML 1.0. However, there are ways around it, like via JavaScript and XHTML modules which are pretty darn cool.

Anyway, when we upgrade WordPressMU to the next version, we’ll likely need to ‘fix’ this again, so here’s $98 bucks worth of direction:

Changeset 1022 – WordPress MU Trac – Trac

Just change this:

$allowedposttags = array(
‘address’ => array(),
‘a’ => array(
‘href’ => array(), ‘title’ => array(),
‘rel’ => array(), ‘rev’ => array(),
‘name’ => array()
),

to this:

$allowedposttags = array(
‘address’ => array(),
‘a’ => array(
‘href’ => array(), ‘title’ => array(),
‘rel’ => array(), ‘rev’ => array(),
‘name’ => array(), ‘target’ => array()
),

NOTE: This change was downgraded to determine if it inexplicably affects bandwidth performance.

This entry was posted on Tuesday, October 9th, 2007 at 9:32 am and is filed under Blogs, HTML, Hacks, nifty, standards, xhtml. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

2 Responses to “WordPressMU Bug Trac for fixing target=”_blank””

October 10th, 2007 at 9:43 am

clay says:

Wow! Thanks for gracing us with your comments, O’ ‘kind’ or ‘gentle’ one ;-) . But I couldn’t find anything about the filter… Could you enlighten me?

October 10th, 2007 at 9:54 am

clay says:

Whoop! I see it at the bottom of that code…

add_filter( ‘edit_allowedposttags’, ‘addabitofclass’ );

I could insert that code into ‘wp-includes/kses.php’ but I don’t understand how it really works… (feed a man a fish, feed him for a day, teach him to fish, feed him for life…). Also, on that page you indicate putting it in mu-plugins/kses.php, but the file is ‘wp-includes/kses.php’… Does that somehow merely augment the kses.php functionality?

  •  

    February 2012
    S M T W T F S
    « Nov    
     1234
    567891011
    12131415161718
    19202122232425
    26272829  
  • Pages

    • About
    • About – sample
    • Healing Christofer – Fun’-Raiser
      • Gallery
    • JP’s Page
  • Archives

    • November 2011
    • July 2010
    • February 2010
    • November 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • December 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
  • Categories

  • Favorites

    Here're a few sites I like to visit:
    • WPMU.org
    • Holy Shmoly
    • AppleInsider.com
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

Copyright © 2012 - ourlil.com | Entries (RSS) | Comments (RSS)

WordPress theme designed by web design