File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2002,7 +2002,7 @@ private function require_upgrade_file( $context = 'WordPress operation' ) {
20022002 $ error ['file ' ],
20032003 $ error ['line ' ]
20042004 );
2005-
2005+
20062006 // Output directly and exit to avoid WP-CLI's generic plugin/theme suggestion
20072007 fwrite ( STDERR , "Error: {$ message }\n" );
20082008 exit ( 1 );
@@ -2017,14 +2017,14 @@ private function require_upgrade_file( $context = 'WordPress operation' ) {
20172017
20182018 // Mark as completed to prevent the shutdown handler from executing on unrelated errors.
20192019 $ require_completed = true ;
2020- }
2021-
2022- /**
2023- * Checks if a WP_Error is related to the core_updater.lock.
2024- *
2025- * @param \WP_Error $error The error object to check.
2026- * @return bool True if the error is related to the lock, false otherwise.
2027- */
2020+ }
2021+
2022+ /**
2023+ * Checks if a WP_Error is related to the core_updater.lock.
2024+ *
2025+ * @param \WP_Error $error The error object to check.
2026+ * @return bool True if the error is related to the lock, false otherwise.
2027+ */
20282028 private static function is_lock_error ( $ error ) {
20292029 // Check for the 'locked' error code used by WordPress Core
20302030 if ( 'locked ' === $ error ->get_error_code () ) {
You can’t perform that action at this time.
0 commit comments