Make WordPress Core

Ticket #40420: 40420.patch

File 40420.patch, 824 bytes (added by johnjamesjacoby, 9 years ago)
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index 966dcd8..eea755f 100644
     
    51135113 * @since 3.4.0
    51145114 * @access private
    51155115 *
    5116  * @param array  $object_ids ID list.
    5117  * @param string $cache_key  The cache bucket to check against.
     5116 * @param array  $object_ids  ID list.
     5117 * @param string $cache_group The cache group to check against.
    51185118 *
    51195119 * @return array List of ids not present in the cache.
    51205120 */
    5121 function _get_non_cached_ids( $object_ids, $cache_key ) {
     5121function _get_non_cached_ids( $object_ids, $cache_group ) {
    51225122        $clean = array();
    51235123        foreach ( $object_ids as $id ) {
    51245124                $id = (int) $id;
    5125                 if ( !wp_cache_get( $id, $cache_key ) ) {
     5125                if ( !wp_cache_get( $id, $cache_group ) ) {
    51265126                        $clean[] = $id;
    51275127                }
    51285128        }