Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 4adcb1d

Browse files
committed
Aha, PHPCS. You keep me always on the right path. :P
1 parent d6525f9 commit 4adcb1d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

redux-templates/classes/class-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ public function register_api_hooks() {
808808
'method' => 'GET',
809809
'callback' => 'plugin_install',
810810
),
811-
'welcome' => array(
811+
'welcome' => array(
812812
'method' => 'POST',
813813
'callback' => 'welcome_guide',
814814
),

redux-templates/classes/class-init.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,11 @@ public function editor_assets() {
140140
if ( ! $global_vars['mokama'] ) {
141141

142142
// phpcs:disable Squiz.PHP.CommentedOutCode
143-
// delete_user_meta( get_current_user_id(), '_redux_templates_counts'); // To test left.
143+
// delete_user_meta( get_current_user_id(), '_redux_templates_counts'); // To test left.
144144
if ( ! \Redux_Functions_Ex::activated() ) {
145145
$count = get_user_meta( get_current_user_id(), '_redux_templates_counts', true );
146146
if ( '' === $count ) {
147147
$count = self::$default_left;
148-
//update_user_meta( get_current_user_id(), '_redux_templates_counts', $count );
149148
}
150149
$global_vars['left'] = $count;
151150
} else {
@@ -161,7 +160,6 @@ public function editor_assets() {
161160
$global_vars['welcome'] = 1;
162161
}
163162
}
164-
165163
}
166164

167165
if ( ! $global_vars['mokama'] ) {

0 commit comments

Comments
 (0)