X7ROOT File Manager
Current Path:
/home/bloomi9/realworks1.com/landsale-ebook/wp-includes
home
/
bloomi9
/
realworks1.com
/
landsale-ebook
/
wp-includes
/
📁
..
📄
.htaccess
(206 B)
📁
ID3
📁
IXR
📁
PHPMailer
📁
Requests
📁
SimplePie
📁
Text
📄
admin-bar.php
(30.96 KB)
📁
assets
📄
atomlib.php
(11.59 KB)
📄
author-template.php
(16.62 KB)
📁
block-patterns
📄
block-patterns.php
(1.42 KB)
📁
blocks
📄
blocks.php
(25.26 KB)
📄
bookmark-template.php
(12.22 KB)
📄
bookmark.php
(14.78 KB)
📄
cache-compat.php
(1.02 KB)
📄
cache.php
(9.28 KB)
📄
canonical.php
(30.65 KB)
📄
capabilities.php
(33.98 KB)
📄
category-template.php
(53.63 KB)
📄
category.php
(12.41 KB)
📁
certificates
📄
class-IXR.php
(2.48 KB)
📄
class-feed.php
(529 B)
📄
class-http.php
(38.79 KB)
📄
class-json.php
(42.43 KB)
📄
class-oembed.php
(407 B)
📄
class-phpass.php
(7.15 KB)
📄
class-phpmailer.php
(664 B)
📄
class-pop3.php
(20.35 KB)
📄
class-requests.php
(29.14 KB)
📄
class-simplepie.php
(94.01 KB)
📄
class-smtp.php
(452 B)
📄
class-snoopy.php
(36.83 KB)
📄
class-walker-category-dropdown.php
(2.08 KB)
📄
class-walker-category.php
(7.69 KB)
📄
class-walker-comment.php
(13.37 KB)
📄
class-walker-nav-menu.php
(8.45 KB)
📄
class-walker-page-dropdown.php
(2.25 KB)
📄
class-walker-page.php
(6.88 KB)
📄
class-wp-admin-bar.php
(16.46 KB)
📄
class-wp-ajax-response.php
(5.12 KB)
📄
class-wp-block-list.php
(4.37 KB)
📄
class-wp-block-parser.php
(14.86 KB)
📄
class-wp-block-pattern-categories-registry.php
(4.08 KB)
📄
class-wp-block-patterns-registry.php
(4.37 KB)
📄
class-wp-block-styles-registry.php
(4.62 KB)
📄
class-wp-block-type-registry.php
(4.69 KB)
📄
class-wp-block-type.php
(5.88 KB)
📄
class-wp-block.php
(5.97 KB)
📄
class-wp-comment-query.php
(43.58 KB)
📄
class-wp-comment.php
(8.83 KB)
📄
class-wp-customize-control.php
(24.91 KB)
📄
class-wp-customize-manager.php
(196.37 KB)
📄
class-wp-customize-nav-menus.php
(55.47 KB)
📄
class-wp-customize-panel.php
(10.16 KB)
📄
class-wp-customize-section.php
(10.72 KB)
📄
class-wp-customize-setting.php
(29.03 KB)
📄
class-wp-customize-widgets.php
(65.46 KB)
📄
class-wp-date-query.php
(34.07 KB)
📄
class-wp-dependency.php
(2.45 KB)
📄
class-wp-editor.php
(68.93 KB)
📄
class-wp-embed.php
(15.42 KB)
📄
class-wp-error.php
(4.84 KB)
📄
class-wp-fatal-error-handler.php
(7.37 KB)
📄
class-wp-feed-cache-transient.php
(2.5 KB)
📄
class-wp-feed-cache.php
(749 B)
📄
class-wp-hook.php
(13.72 KB)
📄
class-wp-http-cookie.php
(7.02 KB)
📄
class-wp-http-curl.php
(12.06 KB)
📄
class-wp-http-encoding.php
(6.4 KB)
📄
class-wp-http-ixr-client.php
(3.39 KB)
📄
class-wp-http-proxy.php
(5.73 KB)
📄
class-wp-http-requests-hooks.php
(1.92 KB)
📄
class-wp-http-requests-response.php
(4.24 KB)
📄
class-wp-http-response.php
(2.88 KB)
📄
class-wp-http-streams.php
(15.73 KB)
📄
class-wp-image-editor-gd.php
(13.81 KB)
📄
class-wp-image-editor-imagick.php
(23.32 KB)
📄
class-wp-image-editor.php
(13.77 KB)
📄
class-wp-list-util.php
(6.46 KB)
📄
class-wp-locale-switcher.php
(4.9 KB)
📄
class-wp-locale.php
(13.59 KB)
📄
class-wp-matchesmapregex.php
(1.76 KB)
📄
class-wp-meta-query.php
(27.19 KB)
📄
class-wp-metadata-lazyloader.php
(5.26 KB)
📄
class-wp-network-query.php
(17.94 KB)
📄
class-wp-network.php
(12.09 KB)
📄
class-wp-object-cache.php
(13.22 KB)
📄
class-wp-oembed-controller.php
(6.63 KB)
📄
class-wp-oembed.php
(28.31 KB)
📄
class-wp-paused-extensions-storage.php
(4.81 KB)
📄
class-wp-post-type.php
(19.08 KB)
📄
class-wp-post.php
(6.29 KB)
📄
class-wp-query.php
(130.67 KB)
📄
class-wp-recovery-mode-cookie-service.php
(6.31 KB)
📄
class-wp-recovery-mode-email-service.php
(9.89 KB)
📄
class-wp-recovery-mode-key-service.php
(4.17 KB)
📄
class-wp-recovery-mode-link-service.php
(3.29 KB)
📄
class-wp-recovery-mode.php
(11.11 KB)
📄
class-wp-rewrite.php
(59.42 KB)
📄
class-wp-role.php
(2.44 KB)
📄
class-wp-roles.php
(8.23 KB)
📄
class-wp-session-tokens.php
(7.26 KB)
📄
class-wp-simplepie-file.php
(2.27 KB)
📄
class-wp-simplepie-sanitize-kses.php
(1.73 KB)
📄
class-wp-site-query.php
(27.88 KB)
📄
class-wp-site.php
(7.19 KB)
📄
class-wp-tax-query.php
(18.81 KB)
📄
class-wp-taxonomy.php
(12.28 KB)
📄
class-wp-term-query.php
(35.32 KB)
📄
class-wp-term.php
(5.14 KB)
📄
class-wp-text-diff-renderer-inline.php
(716 B)
📄
class-wp-text-diff-renderer-table.php
(16.48 KB)
📄
class-wp-theme.php
(49.53 KB)
📄
class-wp-user-meta-session-tokens.php
(2.92 KB)
📄
class-wp-user-query.php
(30.62 KB)
📄
class-wp-user-request.php
(2.14 KB)
📄
class-wp-user.php
(21.63 KB)
📄
class-wp-walker.php
(12.42 KB)
📄
class-wp-widget-factory.php
(2.56 KB)
📄
class-wp-widget.php
(17.49 KB)
📄
class-wp-xmlrpc-server.php
(205.52 KB)
📄
class-wp.php
(24.45 KB)
📄
class.wp-dependencies.php
(12.57 KB)
📄
class.wp-scripts.php
(18.04 KB)
📄
class.wp-styles.php
(10.62 KB)
📄
comment-template.php
(91.85 KB)
📄
comment.php
(122.28 KB)
📄
compat.php
(11.46 KB)
📄
cron.php
(32.06 KB)
📁
css
📁
customize
📄
date.php
(406 B)
📄
default-constants.php
(10.02 KB)
📄
default-filters.php
(26.14 KB)
📄
default-widgets.php
(2.07 KB)
📄
deprecated.php
(118.08 KB)
📄
embed-template.php
(341 B)
📄
embed.php
(46.47 KB)
📄
error-protection.php
(3.3 KB)
📄
feed-atom-comments.php
(5.32 KB)
📄
feed-atom.php
(3.03 KB)
📄
feed-rdf.php
(2.61 KB)
📄
feed-rss.php
(1.16 KB)
📄
feed-rss2-comments.php
(3.97 KB)
📄
feed-rss2.php
(3.71 KB)
📄
feed.php
(22.12 KB)
📁
fonts
📄
formatting.php
(303.19 KB)
📄
functions.php
(228.08 KB)
📄
functions.wp-scripts.php
(13.07 KB)
📄
functions.wp-styles.php
(8.11 KB)
📄
general-template.php
(153.99 KB)
📄
http.php
(21.86 KB)
📁
images
📁
js
📄
kses.php
(61.88 KB)
📄
l10n.php
(55.25 KB)
📄
link-template.php
(141.46 KB)
📄
load.php
(43.82 KB)
📄
locale.php
(162 B)
📄
media-template.php
(57.27 KB)
📄
media.php
(158.53 KB)
📄
meta.php
(58.17 KB)
📄
ms-blogs.php
(24.58 KB)
📄
ms-default-constants.php
(4.6 KB)
📄
ms-default-filters.php
(6.34 KB)
📄
ms-deprecated.php
(20.63 KB)
📄
ms-files.php
(2.58 KB)
📄
ms-functions.php
(88.26 KB)
📄
ms-load.php
(19.36 KB)
📄
ms-network.php
(3.57 KB)
📄
ms-settings.php
(4.03 KB)
📄
ms-site.php
(42.51 KB)
📄
nav-menu-template.php
(22.75 KB)
📄
nav-menu.php
(40.78 KB)
📄
option.php
(72.65 KB)
📄
pluggable-deprecated.php
(6.12 KB)
📄
pluggable.php
(99.8 KB)
📄
plugin.php
(31.66 KB)
📁
pomo
📄
post-formats.php
(6.91 KB)
📄
post-template.php
(61.93 KB)
📄
post-thumbnail-template.php
(9 KB)
📄
post.php
(243.87 KB)
📄
query.php
(34.69 KB)
📁
random_compat
📄
registration-functions.php
(202 B)
📄
registration.php
(202 B)
📁
rest-api
📄
rest-api.php
(65.77 KB)
📄
revision.php
(21.46 KB)
📄
rewrite.php
(17.65 KB)
📄
rss-functions.php
(211 B)
📄
rss.php
(22.44 KB)
📄
script-loader.php
(89.87 KB)
📄
session.php
(258 B)
📄
shortcodes.php
(20.91 KB)
📁
sitemaps
📄
sitemaps.php
(3.16 KB)
📁
sodium_compat
📄
spl-autoload-compat.php
(443 B)
📄
taxonomy.php
(158.32 KB)
📄
template-loader.php
(2.94 KB)
📄
template.php
(21.02 KB)
📁
theme-compat
📄
theme.php
(120.92 KB)
📄
update.php
(25.57 KB)
📄
user.php
(129.65 KB)
📄
vars.php
(5.68 KB)
📄
version.php
(766 B)
📁
widgets
📄
widgets.php
(57.72 KB)
📄
wlwmanifest.xml
(1.02 KB)
📄
wp-db.php
(103.12 KB)
📄
wp-diff.php
(647 B)
Editing: class-wp-recovery-mode-cookie-service.php
<?php /** * Error Protection API: WP_Recovery_Mode_Cookie_Service class * * @package WordPress * @since 5.2.0 */ /** * Core class used to set, validate, and clear cookies that identify a Recovery Mode session. * * @since 5.2.0 */ final class WP_Recovery_Mode_Cookie_Service { /** * Checks whether the recovery mode cookie is set. * * @since 5.2.0 * * @return bool True if the cookie is set, false otherwise. */ public function is_cookie_set() { return ! empty( $_COOKIE[ RECOVERY_MODE_COOKIE ] ); } /** * Sets the recovery mode cookie. * * This must be immediately followed by exiting the request. * * @since 5.2.0 */ public function set_cookie() { $value = $this->generate_cookie(); /** * Filter the length of time a Recovery Mode cookie is valid for. * * @since 5.2.0 * * @param int $length Length in seconds. */ $length = apply_filters( 'recovery_mode_cookie_length', WEEK_IN_SECONDS ); $expire = time() + $length; setcookie( RECOVERY_MODE_COOKIE, $value, $expire, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), true ); if ( COOKIEPATH !== SITECOOKIEPATH ) { setcookie( RECOVERY_MODE_COOKIE, $value, $expire, SITECOOKIEPATH, COOKIE_DOMAIN, is_ssl(), true ); } } /** * Clears the recovery mode cookie. * * @since 5.2.0 */ public function clear_cookie() { setcookie( RECOVERY_MODE_COOKIE, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); setcookie( RECOVERY_MODE_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN ); } /** * Validates the recovery mode cookie. * * @since 5.2.0 * * @param string $cookie Optionally specify the cookie string. * If omitted, it will be retrieved from the super global. * @return true|WP_Error True on success, error object on failure. */ public function validate_cookie( $cookie = '' ) { if ( ! $cookie ) { if ( empty( $_COOKIE[ RECOVERY_MODE_COOKIE ] ) ) { return new WP_Error( 'no_cookie', __( 'No cookie present.' ) ); } $cookie = $_COOKIE[ RECOVERY_MODE_COOKIE ]; } $parts = $this->parse_cookie( $cookie ); if ( is_wp_error( $parts ) ) { return $parts; } list( , $created_at, $random, $signature ) = $parts; if ( ! ctype_digit( $created_at ) ) { return new WP_Error( 'invalid_created_at', __( 'Invalid cookie format.' ) ); } /** This filter is documented in wp-includes/class-wp-recovery-mode-cookie-service.php */ $length = apply_filters( 'recovery_mode_cookie_length', WEEK_IN_SECONDS ); if ( time() > $created_at + $length ) { return new WP_Error( 'expired', __( 'Cookie expired.' ) ); } $to_sign = sprintf( 'recovery_mode|%s|%s', $created_at, $random ); $hashed = $this->recovery_mode_hash( $to_sign ); if ( ! hash_equals( $signature, $hashed ) ) { return new WP_Error( 'signature_mismatch', __( 'Invalid cookie.' ) ); } return true; } /** * Gets the session identifier from the cookie. * * The cookie should be validated before calling this API. * * @since 5.2.0 * * @param string $cookie Optionally specify the cookie string. * If omitted, it will be retrieved from the super global. * @return string|WP_Error Session ID on success, or error object on failure. */ public function get_session_id_from_cookie( $cookie = '' ) { if ( ! $cookie ) { if ( empty( $_COOKIE[ RECOVERY_MODE_COOKIE ] ) ) { return new WP_Error( 'no_cookie', __( 'No cookie present.' ) ); } $cookie = $_COOKIE[ RECOVERY_MODE_COOKIE ]; } $parts = $this->parse_cookie( $cookie ); if ( is_wp_error( $parts ) ) { return $parts; } list( , , $random ) = $parts; return sha1( $random ); } /** * Parses the cookie into its four parts. * * @since 5.2.0 * * @param string $cookie Cookie content. * @return array|WP_Error Cookie parts array, or error object on failure. */ private function parse_cookie( $cookie ) { $cookie = base64_decode( $cookie ); $parts = explode( '|', $cookie ); if ( 4 !== count( $parts ) ) { return new WP_Error( 'invalid_format', __( 'Invalid cookie format.' ) ); } return $parts; } /** * Generates the recovery mode cookie value. * * The cookie is a base64 encoded string with the following format: * * recovery_mode|iat|rand|signature * * Where "recovery_mode" is a constant string, * iat is the time the cookie was generated at, * rand is a randomly generated password that is also used as a session identifier * and signature is an hmac of the preceding 3 parts. * * @since 5.2.0 * * @return string Generated cookie content. */ private function generate_cookie() { $to_sign = sprintf( 'recovery_mode|%s|%s', time(), wp_generate_password( 20, false ) ); $signed = $this->recovery_mode_hash( $to_sign ); return base64_encode( sprintf( '%s|%s', $to_sign, $signed ) ); } /** * Gets a form of `wp_hash()` specific to Recovery Mode. * * We cannot use `wp_hash()` because it is defined in `pluggable.php` which is not loaded until after plugins are loaded, * which is too late to verify the recovery mode cookie. * * This tries to use the `AUTH` salts first, but if they aren't valid specific salts will be generated and stored. * * @since 5.2.0 * * @param string $data Data to hash. * @return string|false The hashed $data, or false on failure. */ private function recovery_mode_hash( $data ) { if ( ! defined( 'AUTH_KEY' ) || AUTH_KEY === 'put your unique phrase here' ) { $auth_key = get_site_option( 'recovery_mode_auth_key' ); if ( ! $auth_key ) { if ( ! function_exists( 'wp_generate_password' ) ) { require_once ABSPATH . WPINC . '/pluggable.php'; } $auth_key = wp_generate_password( 64, true, true ); update_site_option( 'recovery_mode_auth_key', $auth_key ); } } else { $auth_key = AUTH_KEY; } if ( ! defined( 'AUTH_SALT' ) || AUTH_SALT === 'put your unique phrase here' || AUTH_SALT === $auth_key ) { $auth_salt = get_site_option( 'recovery_mode_auth_salt' ); if ( ! $auth_salt ) { if ( ! function_exists( 'wp_generate_password' ) ) { require_once ABSPATH . WPINC . '/pluggable.php'; } $auth_salt = wp_generate_password( 64, true, true ); update_site_option( 'recovery_mode_auth_salt', $auth_salt ); } } else { $auth_salt = AUTH_SALT; } $secret = $auth_key . $auth_salt; return hash_hmac( 'sha1', $data, $secret ); } }
Upload File
Create Folder