Changeset 29156
- Timestamp:
- 07/14/2014 12:31:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-control.php
r29051 r29156 87 87 88 88 /** 89 * Callback 89 * Callback. 90 90 * 91 91 * @since 4.0.0 92 * 93 * @access public92 * @access public 93 * 94 94 * @see WP_Customize_Control::active() 95 * @var callable Callback is called with one argument, the instance of 96 * WP_Customize_Control, and returns bool to indicate whether 97 * the control is active (such as it relates to the URL 98 * currently being previewed). 95 * 96 * @var callable Callback is called with one argument, the instance of 97 * WP_Customize_Control, and returns bool to indicate whether 98 * the control is active (such as it relates to the URL 99 * currently being previewed). 99 100 */ 100 101 public $active_callback = ''; … … 155 156 * 156 157 * @since 4.0.0 157 * 158 * @return bool 158 * @access public 159 * 160 * @return bool Whether the control is active to the current preview. 159 161 */ 160 162 public final function active() { … … 167 169 * @since 4.0.0 168 170 * 169 * @param bool $active170 * @param WP_Customize_Control $control 171 * @param bool $active Whether the Customizer control is active. 172 * @param WP_Customize_Control $control WP_Customize_Control instance. 171 173 */ 172 174 $active = apply_filters( 'customize_control_active', $active, $control ); … … 181 183 * provide an 'active_callback' argument to the constructor. 182 184 * 183 * @return bool 185 * @since 4.0.0 186 * @access public 187 * 188 * @return bool Always true. 184 189 */ 185 190 public function active_callback() { … … 316 321 * 317 322 * @since 4.0.0 323 * @access public 318 324 */ 319 325 public function input_attrs() { … … 1053 1059 1054 1060 /** 1055 * @return bool 1056 */ 1057 function active_callback() { 1061 * Whether the current sidebar is rendered on the page. 1062 * 1063 * @since 4.0.0 1064 * @access public 1065 * 1066 * @return bool Whether sidebar is rendered. 1067 */ 1068 public function active_callback() { 1058 1069 return $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id ); 1059 1070 } … … 1100 1111 1101 1112 /** 1102 * @return bool 1113 * Whether the current widget is rendered on the page. 1114 * 1115 * @since 4.0.0 1116 * @access public 1117 * 1118 * @return bool Whether the widget is rendered. 1103 1119 */ 1104 1120 function active_callback() {
Note: See TracChangeset
for help on using the changeset viewer.