Changeset 59785
- Timestamp:
- 02/08/2025 11:58:35 AM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-control.php
r59784 r59785 248 248 249 249 /** 250 * Enqueue control related scripts/styles.250 * Enqueues control related scripts/styles. 251 251 * 252 252 * @since 3.4.0 … … 255 255 256 256 /** 257 * Check whether control is active to current Customizer preview.257 * Checks whether control is active to current Customizer preview. 258 258 * 259 259 * @since 4.0.0 … … 293 293 294 294 /** 295 * Fetch a setting's value.295 * Fetches a setting's value. 296 296 * Grabs the main setting by default. 297 297 * … … 308 308 309 309 /** 310 * Refresh the parameters passed to the JavaScript via JSON.310 * Refreshes the parameters passed to the JavaScript via JSON. 311 311 * 312 312 * @since 3.4.0 … … 333 333 334 334 /** 335 * Get the data to export to the client via JSON.335 * Gets the data to export to the client via JSON. 336 336 * 337 337 * @since 4.1.0 … … 376 376 377 377 /** 378 * Get the control's content for insertion into the Customizer pane.378 * Gets the control's content for insertion into the Customizer pane. 379 379 * 380 380 * @since 4.1.0 … … 389 389 390 390 /** 391 * Check capabilities and render the control.391 * Checks capabilities and render the control. 392 392 * 393 393 * @since 3.4.0 … … 438 438 439 439 /** 440 * Get the data link attribute for a setting.440 * Gets the data link attribute for a setting. 441 441 * 442 442 * @since 3.4.0 … … 444 444 * 445 445 * @param string $setting_key 446 * @return string Data link parameter, a `data-customize-setting-link` attribute if the `$setting_key` refers to a pre-registered setting, 447 * and a `data-customize-setting-key-link` attribute if the setting is not yet registered. 446 * @return string Data link parameter, a `data-customize-setting-link` attribute if the `$setting_key` refers 447 * to a pre-registered setting, and a `data-customize-setting-key-link` attribute if the setting 448 * is not yet registered. 448 449 */ 449 450 public function get_link( $setting_key = 'default' ) { … … 456 457 457 458 /** 458 * Render the data link attribute for the control's input element.459 * Renders the data link attribute for the control's input element. 459 460 * 460 461 * @since 3.4.0 461 462 * @uses WP_Customize_Control::get_link() 462 463 * 463 * @param string $setting_key 464 * @param string $setting_key Default 'default'. 464 465 */ 465 466 public function link( $setting_key = 'default' ) { … … 468 469 469 470 /** 470 * Render the custom attributes for the control's input element.471 * Renders the custom attributes for the control's input element. 471 472 * 472 473 * @since 4.0.0 … … 479 480 480 481 /** 481 * Render the control's content.482 * Renders the control's content. 482 483 * 483 484 * Allows the content to be overridden without having to rewrite the wrapper in `$this::render()`. … … 675 676 676 677 /** 677 * Render the control's JS template.678 * Renders the control's JS template. 678 679 * 679 680 * This function is only run for control types that have been registered with
Note: See TracChangeset
for help on using the changeset viewer.