Changeset 27398 for trunk/src/wp-includes/class-wp-customize-section.php
- Timestamp:
- 03/04/2014 08:20:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-section.php
r26892 r27398 2 2 /** 3 3 * Customize Section Class. 4 * 5 * A UI container for controls, managed by the WP_Customize_Manager. 4 6 * 5 7 * @package WordPress … … 8 10 */ 9 11 class WP_Customize_Section { 12 /** 13 * @access public 14 * 15 * @var WP_Customize_Manager 16 */ 10 17 public $manager; 18 19 /** 20 * Unique identifier. 21 * 22 * @var string 23 */ 11 24 public $id; 25 26 /** 27 * Priority of the section which informs load order of sections. 28 * 29 * @var integer 30 */ 12 31 public $priority = 10; 32 33 /** 34 * Capability required for the section. 35 * 36 * @var string 37 */ 13 38 public $capability = 'edit_theme_options'; 14 39 public $theme_supports = ''; 40 41 /** 42 * Title of the section to show in UI. 43 * 44 * @var string 45 */ 15 46 public $title = ''; 47 48 /** 49 * Description to show in the UI. 50 * 51 * @var string 52 */ 16 53 public $description = ''; 17 54 public $controls; … … 20 57 * Constructor. 21 58 * 59 * Any supplied $args override class property defaults. 60 * 22 61 * @since 3.4.0 23 62 * 24 63 * @param WP_Customize_Manager $manager 25 * @param string $idAn specific ID of the section.26 * @param array $argsSection arguments.64 * @param string $id An specific ID of the section. 65 * @param array $args Section arguments. 27 66 */ 28 67 function __construct( $manager, $id, $args = array() ) { … … 42 81 43 82 /** 44 * Check if the theme supports the section and check user capabilities. 83 * Checks required user capabilities and whether the theme has the 84 * feature support required by the section. 45 85 * 46 86 * @since 3.4.0 … … 72 112 * @since 3.4.0 73 113 * 74 * @param WP_Customize_Section $this TheWP_Customize_Section instance.114 * @param WP_Customize_Section $this WP_Customize_Section instance. 75 115 */ 76 116 do_action( 'customize_render_section', $this ); … … 89 129 90 130 /** 91 * Render the section .131 * Render the section, and the controls that have been added to it. 92 132 * 93 133 * @since 3.4.0
Note: See TracChangeset
for help on using the changeset viewer.