Changeset 51657 for trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
- Timestamp:
- 08/26/2021 12:57:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
r51294 r51657 154 154 'section' => 'colors', 155 155 'priority' => 100, 156 'active_callback' => function() {156 'active_callback' => static function() { 157 157 return 127 >= Twenty_Twenty_One_Custom_Colors::get_relative_luminance_from_hex( get_theme_mod( 'background_color', 'D1E4DD' ) ); 158 158 }, … … 166 166 'capability' => 'edit_theme_options', 167 167 'default' => false, 168 'sanitize_callback' => function( $value ) {168 'sanitize_callback' => static function( $value ) { 169 169 return (bool) $value; 170 170 }, … … 189 189 'priority' => 110, 190 190 'description' => $description, 191 'active_callback' => function( $value ) {191 'active_callback' => static function( $value ) { 192 192 return 127 < Twenty_Twenty_One_Custom_Colors::get_relative_luminance_from_hex( get_theme_mod( 'background_color', 'D1E4DD' ) ); 193 193 },
Note: See TracChangeset
for help on using the changeset viewer.