Changeset 31133
- Timestamp:
- 01/10/2015 09:58:19 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/custom-background.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-background.php
r31129 r31133 21 21 * @var callback 22 22 * @since 3.0.0 23 * @access private 24 */ 25 private $admin_header_callback; 23 */ 24 public $admin_header_callback; 26 25 27 26 /** … … 30 29 * @var callback 31 30 * @since 3.0.0 32 * @access private 33 */ 34 private $admin_image_div_callback; 35 36 /** 37 * Holds the page menu hook. 38 * 39 * @var string 40 * @since 3.0.0 41 * @access private 42 */ 43 private $page = ''; 31 */ 32 public $admin_image_div_callback; 44 33 45 34 /** … … 65 54 // Unused since 3.5.0. 66 55 add_action( 'wp_ajax_set-background-image', array( $this, 'wp_set_background_image' ) ); 67 }68 69 /**70 * Make private properties readable for backwards compatibility.71 *72 * @since 4.0.073 * @access public74 *75 * @param string $name Property name.76 * @return mixed Property.77 */78 public function __get( $name ) {79 return $this->$name;80 }81 82 /**83 * Make private properties settable for backwards compatibility.84 *85 * @since 4.0.086 * @access public87 *88 * @param string $name Property to set.89 * @param mixed $value Property value.90 * @return mixed Newly-set property.91 */92 public function __set( $name, $value ) {93 return $this->$name = $value;94 }95 96 /**97 * Make private properties checkable for backwards compatibility.98 *99 * @since 4.0.0100 * @access public101 *102 * @param string $name Property to check if set.103 * @return bool Whether the property is set.104 */105 public function __isset( $name ) {106 return isset( $this->$name );107 }108 109 /**110 * Make private properties un-settable for backwards compatibility.111 *112 * @since 4.0.0113 * @access public114 *115 * @param string $name Property to unset.116 */117 public function __unset( $name ) {118 unset( $this->$name );119 56 } 120 57 … … 129 66 return; 130 67 } 131 132 $this->page = $page;133 68 134 69 add_action( "load-$page", array( $this, 'admin_load' ) );
Note: See TracChangeset
for help on using the changeset viewer.