WordPress.org

Make WordPress Core

Ticket #41234: fix-two-typos-in-switch-statements.patch

File fix-two-typos-in-switch-statements.patch, 1.1 KB (added by jrf, 3 years ago)
  • src/wp-includes/class-wp-network.php

    From 5527c63416bb1a3ff119c9172088adde186aec79 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 4 Jul 2017 00:13:53 +0200
    Subject: [PATCH] Fix two typos in switch statements.
    
    ---
     src/wp-includes/class-wp-network.php | 2 +-
     src/wp-includes/date.php             | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/wp-includes/class-wp-network.php b/src/wp-includes/class-wp-network.php
    index 0d23529..7ba03d8 100644
    a b class WP_Network { 
    154154         */
    155155        public function __get( $key ) {
    156156                switch ( $key ) {
    157                         case 'id';
     157                        case 'id':
    158158                                return (int) $this->id;
    159159                        case 'blog_id':
    160160                                return $this->blog_id;
  • src/wp-includes/date.php

    diff --git a/src/wp-includes/date.php b/src/wp-includes/date.php
    index 96a784e..f1d079a 100644
    a b class WP_Date_Query { 
    845845
    846846                                return $value[0] . ' AND ' . $value[1];
    847847
    848                         default;
     848                        default:
    849849                                if ( ! is_numeric( $value ) ) {
    850850                                        return false;
    851851                                }