Skip to content

Commit

Permalink
Don't apply custom colors to wp-admin - CHANGED
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed Sep 3, 2024
1 parent 2f38efd commit 9e45638
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ayecode-ui-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
add_action('after_setup_theme', function () {
global $ayecode_ui_version,$ayecode_ui_file_key;
$this_version = "0.2.18";
$this_version = "0.2.25";
if(empty($ayecode_ui_version) || version_compare($this_version , $ayecode_ui_version, '>')){
$ayecode_ui_version = $this_version ;
$ayecode_ui_file_key = wp_hash( __FILE__ );
Expand Down
3 changes: 3 additions & 0 deletions change-log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
= 0.2.25 - 2024-TBD =
* Don't apply custom colors to wp-admin - CHANGED

= 0.2.24 - 2024-08-29 =
* Changes for search form conditional fields - CHANGED

Expand Down
8 changes: 6 additions & 2 deletions includes/ayecode-ui-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1138,8 +1138,12 @@ public static function custom_css($compatibility = true) {
$is_fse = true;
}

if(!empty($colors)){
$custom_admin = $is_fse ? true : apply_filters('ayecode_ui_custom_admin', false );


if(!empty($colors) && $custom_admin ){
$d_colors = self::get_colors(true);
//print_r($d_colors);exit;

// $is_fse = !empty($_REQUEST['postType']) && $_REQUEST['postType']=='wp_template';
foreach($colors as $key => $color ){
Expand All @@ -1159,7 +1163,7 @@ public static function custom_css($compatibility = true) {
echo ' body.modal-open #adminmenuwrap{z-index:999} body.modal-open #wpadminbar{z-index:1025}';
}

if( $aui_bs5 && defined( 'BLOCKSTRAP_VERSION' ) ){
if( $aui_bs5 && defined( 'BLOCKSTRAP_VERSION' ) && $custom_admin ){
$css = '';
$theme_settings = wp_get_global_styles();

Expand Down

0 comments on commit 9e45638

Please sign in to comment.