- unified `UM()->fields()->editing` and `UM()->fields()->viewing` to bool variables use true|false in conditions to make `===` or `!==` comparing;
This commit is contained in:
Mykyta Synelnikov
2023-08-15 03:49:13 +03:00
parent 766653a360
commit bfef1f9dc7
11 changed files with 222 additions and 161 deletions
+2 -2
View File
@@ -75,11 +75,11 @@ if ( ! class_exists( 'um\core\Password' ) ) {
$classes .= ' um-in-admin';
}
if ( UM()->fields()->editing == true ) {
if ( true === UM()->fields()->editing ) {
$classes .= ' um-editing';
}
if ( UM()->fields()->viewing == true ) {
if ( true === UM()->fields()->viewing ) {
$classes .= ' um-viewing';
}