WordPress.org

Make WordPress Core

Ticket #15058: 15058.diff

File 15058.diff, 484 bytes (added by nacin, 7 years ago)
  • wp-includes/functions.php

     
    779779function set_transient( $transient, $value, $expiration = 0 ) {
    780780        global $_wp_using_ext_object_cache;
    781781
     782        if ( strlen( $transient ) > 45 )
     783                return false;
     784
    782785        $value = apply_filters( 'pre_set_transient_' . $transient, $value );
    783786
    784787        if ( $_wp_using_ext_object_cache ) {