diff --git a/src/wp-admin/includes/class-plugin-upgrader.php b/src/wp-admin/includes/class-plugin-upgrader.php index 67d04ccc75..5d50ce61f4 100644 --- a/src/wp-admin/includes/class-plugin-upgrader.php +++ b/src/wp-admin/includes/class-plugin-upgrader.php @@ -238,7 +238,7 @@ class Plugin_Upgrader extends WP_Upgrader { ) ); - // Cleanup our hooks, in case something else does a upgrade on this connection. + // Cleanup our hooks, in case something else does an upgrade on this connection. remove_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9 ); remove_filter( 'upgrader_pre_install', array( $this, 'deactivate_plugin_before_upgrade' ) ); remove_filter( 'upgrader_pre_install', array( $this, 'active_before' ) ); @@ -386,7 +386,7 @@ class Plugin_Upgrader extends WP_Upgrader { $this->skin->footer(); - // Cleanup our hooks, in case something else does a upgrade on this connection. + // Cleanup our hooks, in case something else does an upgrade on this connection. remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) ); // Ensure any future auto-update failures trigger a failure email by removing diff --git a/src/wp-admin/includes/class-theme-upgrader.php b/src/wp-admin/includes/class-theme-upgrader.php index 418888b262..02a150483f 100644 --- a/src/wp-admin/includes/class-theme-upgrader.php +++ b/src/wp-admin/includes/class-theme-upgrader.php @@ -487,7 +487,7 @@ class Theme_Upgrader extends WP_Upgrader { $this->skin->footer(); - // Cleanup our hooks, in case something else does a upgrade on this connection. + // Cleanup our hooks, in case something else does an upgrade on this connection. remove_filter( 'upgrader_pre_install', array( $this, 'current_before' ) ); remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) ); remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ) ); diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php index fbe8b3cc60..a7e49f2fbd 100644 --- a/src/wp-admin/includes/class-wp-filesystem-base.php +++ b/src/wp-admin/includes/class-wp-filesystem-base.php @@ -398,7 +398,7 @@ class WP_Filesystem_Base { } /** - * Converts *nix-style file permissions to a octal number. + * Converts *nix-style file permissions to an octal number. * * Converts '-rw-r--r--' to 0644 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod() diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 14a0362c84..3c3510c6d6 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -1496,7 +1496,10 @@ function update_core( $from, $to ) { $wp_filesystem->mkdir( $dest . $filename, FS_CHMOD_DIR ); $_result = copy_dir( $from . $distro . 'wp-content/' . $file, $dest . $filename ); - // If a error occurs partway through this final step, keep the error flowing through, but keep process going. + /* + * If an error occurs partway through this final step, + * keep the error flowing through, but keep the process going. + */ if ( is_wp_error( $_result ) ) { if ( ! is_wp_error( $result ) ) { $result = new WP_Error(); diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 53d3d73b60..138dfec756 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -1019,7 +1019,7 @@ get_current_screen()->set_help_sidebar( ); if ( 'upgrade-core' === $action ) { - // Force a update check when requested. + // Force an update check when requested. $force_check = ! empty( $_GET['force-check'] ); wp_version_check( array(), $force_check );