self::MAX_DIMENSION ); if ( $updated ) { $options['updated'] = $updated; } return self::get_or_cache( $emoji_url, $domain, $options ); } /** * Generate a hash for an emoji URL. * * Uses full URL path hash to prevent collisions between emoji with the same * filename but different paths (e.g., /set1/kappa.png vs /set2/kappa.png). * * @param string $url The URL to hash. * * @return string The hash string. */ protected static function generate_hash( $url ) { $url_path = \wp_parse_url( $url, PHP_URL_PATH ); if ( $url_path ) { return \md5( $url_path ); } // Fall back to full URL hash. return parent::generate_hash( $url ); } }