Make WordPress Core

Ticket #48572: 48572.patch

File 48572.patch, 766 bytes (added by diddledani, 5 years ago)

Patch to set the return type to string

  • wp-includes/pomo/po.php

    From 9c9ddf4d1f508008edae337a4c0797cb3c31066d Mon Sep 17 00:00:00 2001
    From: Daniel Llewellyn <daniel@bowlhat.net>
    Date: Tue, 12 Nov 2019 17:21:41 +0000
    Subject: [PATCH] Fix return type of PO::trim_quotes to string
    
    Signed-off-by: Daniel Llewellyn <daniel@bowlhat.net>
    ---
     wp-includes/pomo/po.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/wp-includes/pomo/po.php b/wp-includes/pomo/po.php
    index f5ddf5f4eb..69a486061f 100644
    a b if ( ! class_exists( 'PO', false ) ) : 
    493493
    494494                /**
    495495                 * @param string $s
    496                  * @return sring
     496                 * @return string
    497497                 */
    498498                public static function trim_quotes( $s ) {
    499499                        if ( substr( $s, 0, 1 ) == '"' ) {