mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Coding Standards: Fix several minor coding standards issues.
These are made by running `composer format`. Follow up to [50124], [50129], [50143]. See #49961, #52192, #34281. git-svn-id: https://develop.svn.wordpress.org/trunk@50152 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -544,7 +544,7 @@ function wp_clear_scheduled_hook( $hook, $args = array(), $wp_error = false ) {
|
||||
// Previously, this function took the arguments as discrete vars rather than an array like the rest of the API.
|
||||
if ( ! is_array( $args ) ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.0.0', __( 'This argument has changed to an array to match the behavior of the other cron functions.' ) );
|
||||
$args = array_slice( func_get_args(), 1 ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
|
||||
$args = array_slice( func_get_args(), 1 ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
|
||||
$wp_error = false;
|
||||
}
|
||||
|
||||
@@ -1182,7 +1182,7 @@ function _get_cron_array() {
|
||||
*/
|
||||
function _set_cron_array( $cron, $wp_error = false ) {
|
||||
$cron['version'] = 2;
|
||||
$result = update_option( 'cron', $cron );
|
||||
$result = update_option( 'cron', $cron );
|
||||
|
||||
if ( $wp_error && ! $result ) {
|
||||
return new WP_Error(
|
||||
|
||||
Reference in New Issue
Block a user