]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-ajax-response.php
WordPress 4.2.4-scripts
[autoinstalls/wordpress.git] / wp-includes / class-wp-ajax-response.php
index 7bed81c7bc0628e8fe116680b0e68115983a4b88..1c6d8a834c66449ce424646e9a7101b75131429c 100644 (file)
@@ -11,9 +11,8 @@ class WP_Ajax_Response {
         *
         * @since 2.1.0
         * @var array
-        * @access private
         */
-       private $responses = array();
+       public $responses = array();
 
        /**
         * Constructor - Passes args to {@link WP_Ajax_Response::add()}.
@@ -22,65 +21,12 @@ class WP_Ajax_Response {
         * @see WP_Ajax_Response::add()
         *
         * @param string|array $args Optional. Will be passed to add() method.
-        * @return WP_Ajax_Response
         */
        public function __construct( $args = '' ) {
                if ( !empty($args) )
                        $this->add($args);
        }
 
-       /**
-        * Make private properties readable for backwards compatibility.
-        *
-        * @since 4.0.0
-        * @access public
-        *
-        * @param string $name Property to get.
-        * @return mixed Property.
-        */
-       public function __get( $name ) {
-               return $this->$name;
-       }
-
-       /**
-        * Make private properties settable for backwards compatibility.
-        *
-        * @since 4.0.0
-        * @access public
-        *
-        * @param string $name  Property to set.
-        * @param mixed  $value Property value.
-        * @return mixed Newly-set property.
-        */
-       public function __set( $name, $value ) {
-               return $this->$name = $value;
-       }
-
-       /**
-        * Make private properties checkable for backwards compatibility.
-        *
-        * @since 4.0.0
-        * @access public
-        *
-        * @param string $name Property to check if set.
-        * @return bool Whether the property is set.
-        */
-       public function __isset( $name ) {
-               return isset( $this->$name );
-       }
-
-       /**
-        * Make private properties un-settable for backwards compatibility.
-        *
-        * @since 4.0.0
-        * @access public
-        *
-        * @param string $name Property to unset.
-        */
-       public function __unset( $name ) {
-               unset( $this->$name );
-       }
-
        /**
         * Append to XML response based on given arguments.
         *