Changeset 32032
- Timestamp:
- 04/05/2015 03:06:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r32031 r32032 571 571 * 572 572 * @since 4.2.0 573 * @access public 573 574 */ 574 575 public function customize_preview_loading_style() { … … 769 770 770 771 /** 771 * Filter response data for a successful customize_save A jaxrequest.772 * Filter response data for a successful customize_save AJAX request. 772 773 * 773 774 * This filter does not apply if there was a nonce or authentication failure. … … 802 803 803 804 /** 804 * Register any dynamically-created settings, such as those from $_POST['customized'] that have no corresponding setting created. 805 * Register any dynamically-created settings, such as those from $_POST['customized'] 806 * that have no corresponding setting created. 805 807 * 806 808 * This is a mechanism to "wake up" settings that have been dynamically created 807 * on the frontend and have been sent to WordPress in $_POST['customized']. When WP809 * on the frontend and have been sent to WordPress in `$_POST['customized']`. When WP 808 810 * loads, the dynamically-created settings then will get created and previewed 809 811 * even though they are not directly created statically with code. … … 811 813 * @since 4.2.0 812 814 * 813 * @param string []$setting_ids The setting IDs to add.814 * @return WP_Customize_Setting []The settings added.815 * @param string $setting_ids The setting IDs to add. 816 * @return WP_Customize_Setting The settings added. 815 817 */ 816 818 public function add_dynamic_settings( $setting_ids ) { … … 834 836 * @since 4.2.0 835 837 * 836 * @param false|array $setting_args 837 * @param string $setting_id ID for dynamic setting, usually coming from $_POST['customized'].838 * @param false|array $setting_args The arguments to the WP_Customize_Setting constructor. 839 * @param string $setting_id ID for dynamic setting, usually coming from `$_POST['customized']`. 838 840 */ 839 841 $setting_args = apply_filters( 'customize_dynamic_setting_args', $setting_args, $setting_id ); … … 847 849 * @since 4.2.0 848 850 * 849 * @param string $setting_class 850 * @param string $setting_id ID for dynamic setting, usually coming from $_POST['customized'].851 * @param string $setting_args 851 * @param string $setting_class WP_Customize_Setting or a subclass. 852 * @param string $setting_id ID for dynamic setting, usually coming from `$_POST['customized']`. 853 * @param string $setting_args WP_Customize_Setting or a subclass. 852 854 */ 853 855 $setting_class = apply_filters( 'customize_dynamic_setting_class', $setting_class, $setting_id, $setting_args ); 854 856 855 857 $setting = new $setting_class( $this, $setting_id, $setting_args ); 858 856 859 $this->add_setting( $setting ); 857 860 $new_settings[] = $setting; … … 1451 1454 * 1452 1455 * @since 4.2.0 1456 * @access public 1457 * 1458 * @see add_dynamic_settings() 1453 1459 */ 1454 1460 public function register_dynamic_settings() {
Note: See TracChangeset
for help on using the changeset viewer.