Make WordPress Core


Ignore:
Timestamp:
06/10/2004 10:01:45 AM (22 years ago)
Author:
saxmatt
Message:

Gzip cleanup, debugged wacky options problem, some cleanup and reorg. We need to split up functions.php more logically, and kill some of the useless functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r1372 r1404  
    446446}
    447447
     448function popuplinks($text) {
     449        // Comment text in popup windows should be filtered through this.
     450        // Right now it's a moderately dumb function, ideally it would detect whether
     451        // a target or rel attribute was already there and adjust its actions accordingly.
     452        $text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);
     453        return $text;
     454}
     455
    448456?>
Note: See TracChangeset for help on using the changeset viewer.