equal
deleted
inserted
replaced
15 * @since 3.4.0 |
15 * @since 3.4.0 |
16 * |
16 * |
17 * @see WP_Customize_Manager |
17 * @see WP_Customize_Manager |
18 * @link https://developer.wordpress.org/themes/customize-api |
18 * @link https://developer.wordpress.org/themes/customize-api |
19 */ |
19 */ |
|
20 #[AllowDynamicProperties] |
20 class WP_Customize_Setting { |
21 class WP_Customize_Setting { |
21 /** |
22 /** |
22 * Customizer bootstrap instance. |
23 * Customizer bootstrap instance. |
23 * |
24 * |
24 * @since 3.4.0 |
25 * @since 3.4.0 |
833 final public function check_capabilities() { |
834 final public function check_capabilities() { |
834 if ( $this->capability && ! current_user_can( $this->capability ) ) { |
835 if ( $this->capability && ! current_user_can( $this->capability ) ) { |
835 return false; |
836 return false; |
836 } |
837 } |
837 |
838 |
838 if ( $this->theme_supports && ! current_theme_supports( ... (array) $this->theme_supports ) ) { |
839 if ( $this->theme_supports && ! current_theme_supports( ...(array) $this->theme_supports ) ) { |
839 return false; |
840 return false; |
840 } |
841 } |
841 |
842 |
842 return true; |
843 return true; |
843 } |
844 } |