File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2140,12 +2140,12 @@ function apbct_rc__install_plugin($_wp = null, $plugin = null)
21402140 ))
21412141 );
21422142 } else {
2143- die (
2144- 'FAIL ' . json_encode (array (
2145- 'error ' => 'FAIL_TO_GET_LATEST_VERSION ' ,
2146- 'details ' => 'Unknown error ' ,
2147- ))
2148- );
2143+ die (
2144+ 'FAIL ' . json_encode (array (
2145+ 'error ' => 'FAIL_TO_GET_LATEST_VERSION ' ,
2146+ 'details ' => 'Unknown error ' ,
2147+ ))
2148+ );
21492149 }
21502150 } else {
21512151 die ('FAIL ' . json_encode (array ('error ' => 'PLUGIN_SLUG_INCORRECT ' )));
@@ -2177,12 +2177,12 @@ function apbct_rc__activate_plugin($plugin)
21772177 $ result = activate_plugins ($ plugin );
21782178
21792179 $ result_array = array ('success ' => true );
2180- $ error_msg = '' ;
2180+ $ error_msg = '' ;
21812181
21822182 if ( ! $ result || is_wp_error ($ result ) ) {
2183- if ( $ result instanceof \WP_Error ) {
2184- $ error_msg = ' ' . $ result ->get_error_message ();
2185- }
2183+ if ( $ result instanceof \WP_Error ) {
2184+ $ error_msg = ' ' . $ result ->get_error_message ();
2185+ }
21862186 $ result_array = array (
21872187 'error ' => 'FAIL_TO_ACTIVATE ' ,
21882188 'details ' => $ error_msg
You can’t perform that action at this time.
0 commit comments