Changeset 35848 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 12/10/2015 03:05:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r35847 r35848 2690 2690 return preg_replace('#([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(Z|[\+|\-][0-9]{2,4}){0,1}#', '$1-$2-$3 $4:$5:$6', $date_string); 2691 2691 } 2692 }2693 2694 /**2695 * Adds a element attributes to open links in new windows.2696 *2697 * Comment text in popup windows should be filtered through this. Right now it's2698 * a moderately dumb function, ideally it would detect whether a target or rel2699 * attribute was already there and adjust its actions accordingly.2700 *2701 * @since 0.712702 *2703 * @param string $text Content to replace links to open in a new window.2704 * @return string Content that has filtered links.2705 */2706 function popuplinks( $text ) {2707 $text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);2708 return $text;2709 2692 } 2710 2693
Note: See TracChangeset
for help on using the changeset viewer.