Changeset 31134
- Timestamp:
- 01/10/2015 10:10:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-header.php
r31130 r31134 21 21 * @var callback 22 22 * @since 2.1.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; 31 */ 32 public $admin_image_div_callback; 35 33 36 34 /** … … 41 39 * @access private 42 40 */ 43 private $default_headers = array(); 44 45 /** 46 * Holds custom headers uploaded by the user. 47 * 48 * @var array 49 * @since 3.2.0 50 * @access private 51 */ 52 private $uploaded_headers = array(); 53 54 /** 55 * Holds the page menu hook. 56 * 57 * @var string 58 * @since 3.0.0 59 * @access private 60 */ 61 private $page = ''; 41 public $default_headers = array(); 62 42 63 43 /** … … 86 66 87 67 /** 88 * Make private properties readable for backwards compatibility.89 *90 * @since 4.0.091 * @access public92 *93 * @param string $name Property to get.94 * @return mixed Property.95 */96 public function __get( $name ) {97 return $this->$name;98 }99 100 /**101 * Make private properties settable for backwards compatibility.102 *103 * @since 4.0.0104 * @access public105 *106 * @param string $name Property to set.107 * @param mixed $value Property value.108 * @return mixed Newly-set property.109 */110 public function __set( $name, $value ) {111 return $this->$name = $value;112 }113 114 /**115 * Make private properties checkable for backwards compatibility.116 *117 * @since 4.0.0118 * @access public119 *120 * @param string $name Property to check if set.121 * @return bool Whether the property is set.122 */123 public function __isset( $name ) {124 return isset( $this->$name );125 }126 127 /**128 * Make private properties un-settable for backwards compatibility.129 *130 * @since 4.0.0131 * @access public132 *133 * @param string $name Property to unset.134 */135 public function __unset( $name ) {136 unset( $this->$name );137 }138 139 /**140 68 * Set up the hooks for the Custom Header admin page. 141 69 * … … 147 75 return; 148 76 } 149 150 $this->page = $page;151 77 152 78 add_action( "admin_print_scripts-$page", array( $this, 'js_includes' ) );
Note: See TracChangeset
for help on using the changeset viewer.