WordPress.org

Make WordPress Core

Ticket #46570: 46570.diff

File 46570.diff, 472 bytes (added by killerbishop, 8 months ago)

Patch for #46570

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index a2070c1ec7..b9320b2045 100644
    a b function is_serialized( $data, $strict = true ) { 
    528528                case 'i':
    529529                case 'd':
    530530                        $end = $strict ? '$' : '';
    531                         return (bool) preg_match( "/^{$token}:[0-9.E-]+;$end/", $data );
     531                        return (bool) preg_match( "/^{$token}:[0-9.+E-]+;$end/", $data );
    532532        }
    533533        return false;
    534534}