Changeset 6213 for trunk/wp-includes/classes.php
- Timestamp:
- 10/09/2007 10:49:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r6021 r6213 697 697 'what' => 'object', 'action' => false, 698 698 'id' => '0', 'old_id' => false, 699 'position' => 1, // -1 = top, 1 = bottom, html ID = after, -html ID = before 699 700 'data' => '', 'supplemental' => array() 700 701 ); … … 702 703 $r = wp_parse_args( $args, $defaults ); 703 704 extract( $r, EXTR_SKIP ); 705 $postition = preg_replace( '/[^a-z0-9:_-]/i', '', $position ); 704 706 705 707 if ( is_wp_error($id) ) { … … 725 727 $x = ''; 726 728 $x .= "<response action='{$action}_$id'>"; // The action attribute in the xml output is formatted like a nonce action 727 $x .= "<$what id='$id' " . ( false !== $old_id ? "old_id='$old_id'>" : '>' );729 $x .= "<$what id='$id' " . ( false === $old_id ? '' : "old_id='$old_id' " ) . "position='$position'>"; 728 730 $x .= $response; 729 731 $x .= $s;
Note: See TracChangeset
for help on using the changeset viewer.