Changeset 28508
- Timestamp:
- 05/19/2014 05:40:11 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-ajax-response.php
r28430 r28508 14 14 * @access private 15 15 */ 16 var$responses = array();16 private $responses = array(); 17 17 18 18 /** … … 25 25 * @return WP_Ajax_Response 26 26 */ 27 function __construct( $args = '' ) {27 public function __construct( $args = '' ) { 28 28 if ( !empty($args) ) 29 29 $this->add($args); 30 } 31 32 /** 33 * Make private properties readable for backwards compatibility 34 * 35 * @since 4.0.0 36 * @param string $name 37 * @return mixed 38 */ 39 public function __get( $name ) { 40 return $this->$name; 30 41 } 31 42 … … 53 64 * @return string XML response. 54 65 */ 55 function add( $args = '' ) {66 public function add( $args = '' ) { 56 67 $defaults = array( 57 68 'what' => 'object', 'action' => false, … … 134 145 * @since 2.1.0 135 146 */ 136 function send() {147 public function send() { 137 148 header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) ); 138 149 echo "<?xml version='1.0' encoding='" . get_option( 'blog_charset' ) . "' standalone='yes'?><wp_ajax>";
Note: See TracChangeset
for help on using the changeset viewer.