Changeset 31083
- Timestamp:
- 01/08/2015 06:01:08 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-oembed.php
r30681 r31083 273 273 * @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed. 274 274 */ 275 function get_html( $url, $args = '' ) {275 public function get_html( $url, $args = '' ) { 276 276 $provider = $this->get_provider( $url, $args ); 277 277 -
trunk/src/wp-includes/class-wp-customize-control.php
r30991 r31083 184 184 * @return bool Whether the control is active to the current preview. 185 185 */ 186 public finalfunction active() {186 final public function active() { 187 187 $control = $this; 188 188 $active = call_user_func( $this->active_callback, $this ); … … 225 225 * @return mixed The requested setting's value, if the setting exists. 226 226 */ 227 public finalfunction value( $setting_key = 'default' ) {227 final public function value( $setting_key = 'default' ) { 228 228 if ( isset( $this->settings[ $setting_key ] ) ) { 229 229 return $this->settings[ $setting_key ]->value(); … … 271 271 * @return bool False if theme doesn't support the control or user doesn't have the required permissions, otherwise true. 272 272 */ 273 public finalfunction check_capabilities() {273 final public function check_capabilities() { 274 274 foreach ( $this->settings as $setting ) { 275 275 if ( ! $setting->check_capabilities() ) … … 291 291 * @return string Contents of the control. 292 292 */ 293 public finalfunction get_content() {293 final public function get_content() { 294 294 ob_start(); 295 295 $this->maybe_render(); … … 305 305 * @uses WP_Customize_Control::render() 306 306 */ 307 public finalfunction maybe_render() {307 final public function maybe_render() { 308 308 if ( ! $this->check_capabilities() ) 309 309 return; … … 976 976 } 977 977 978 function print_header_image_template() {978 public function print_header_image_template() { 979 979 ?> 980 980 <script type="text/template" id="tmpl-header-choice"> … … 1186 1186 * @return bool Whether the widget is rendered. 1187 1187 */ 1188 function active_callback() {1188 public function active_callback() { 1189 1189 return $this->manager->widgets->is_widget_rendered( $this->widget_id ); 1190 1190 } -
trunk/src/wp-includes/class-wp-customize-panel.php
r30714 r31083 167 167 * @return bool Whether the panel is active to the current preview. 168 168 */ 169 public finalfunction active() {169 final public function active() { 170 170 $panel = $this; 171 171 $active = call_user_func( $this->active_callback, $this ); … … 222 222 * @return bool False if theme doesn't support the panel or the user doesn't have the capability. 223 223 */ 224 public finalfunction check_capabilities() {224 final public function check_capabilities() { 225 225 if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) { 226 226 return false; … … 241 241 * @return string Content for the panel. 242 242 */ 243 public finalfunction get_content() {243 final public function get_content() { 244 244 ob_start(); 245 245 $this->maybe_render(); … … 254 254 * @since 4.0.0 255 255 */ 256 public finalfunction maybe_render() {256 final public function maybe_render() { 257 257 if ( ! $this->check_capabilities() ) { 258 258 return; -
trunk/src/wp-includes/class-wp-customize-section.php
r30714 r31083 176 176 * @return bool Whether the section is active to the current preview. 177 177 */ 178 public finalfunction active() {178 final public function active() { 179 179 $section = $this; 180 180 $active = call_user_func( $this->active_callback, $this ); … … 231 231 * @return bool False if theme doesn't support the section or user doesn't have the capability. 232 232 */ 233 public finalfunction check_capabilities() {233 final public function check_capabilities() { 234 234 if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) { 235 235 return false; … … 250 250 * @return string Contents of the section. 251 251 */ 252 public finalfunction get_content() {252 final public function get_content() { 253 253 ob_start(); 254 254 $this->maybe_render(); … … 263 263 * @since 3.4.0 264 264 */ 265 public finalfunction maybe_render() {265 final public function maybe_render() { 266 266 if ( ! $this->check_capabilities() ) { 267 267 return; -
trunk/src/wp-includes/class-wp-customize-setting.php
r30676 r31083 171 171 * @return false|null False if cap check fails or value isn't set. 172 172 */ 173 public finalfunction save() {173 final public function save() { 174 174 $value = $this->post_value(); 175 175 … … 200 200 * @return mixed The default value on failure, otherwise the sanitized value. 201 201 */ 202 public finalfunction post_value( $default = null ) {202 final public function post_value( $default = null ) { 203 203 // Check for a cached value 204 204 if ( isset( $this->_post_value ) ) … … 386 386 * @return bool False if theme doesn't support the setting or user can't change setting, otherwise true. 387 387 */ 388 public finalfunction check_capabilities() {388 final public function check_capabilities() { 389 389 if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) 390 390 return false;
Note: See TracChangeset
for help on using the changeset viewer.