X7ROOT File Manager
Current Path:
/home/notabjze/starbudzca.com/wp-content/plugins/jetpack
home
/
notabjze
/
starbudzca.com
/
wp-content
/
plugins
/
jetpack
/
ðŸ“
..
ðŸ“
3rd-party
📄
CHANGELOG.md
(596.89 KB)
📄
LICENSE.txt
(17.98 KB)
📄
SECURITY.md
(2.45 KB)
ðŸ“
_inc
📄
class-jetpack-connection-status.php
(728 B)
📄
class-jetpack-connection-widget.php
(3.29 KB)
📄
class-jetpack-gallery-settings.php
(3.38 KB)
📄
class-jetpack-pre-connection-jitms.php
(5.77 KB)
📄
class-jetpack-recommendations-banner.php
(9.1 KB)
📄
class-jetpack-stats-dashboard-widget.php
(7.77 KB)
📄
class-jetpack-wizard-banner.php
(214 B)
📄
class-jetpack-xmlrpc-methods.php
(8.33 KB)
📄
class.frame-nonce-preview.php
(3.22 KB)
📄
class.jetpack-admin.php
(19.86 KB)
📄
class.jetpack-affiliate.php
(205 B)
📄
class.jetpack-autoupdate.php
(9.74 KB)
📄
class.jetpack-bbpress-json-api.compat.php
(220 B)
📄
class.jetpack-boost-modules.php
(1.23 KB)
📄
class.jetpack-cli.php
(71.41 KB)
📄
class.jetpack-client-server.php
(2.79 KB)
📄
class.jetpack-connection-banner.php
(13.88 KB)
📄
class.jetpack-data.php
(275 B)
📄
class.jetpack-gutenberg.php
(42.69 KB)
📄
class.jetpack-heartbeat.php
(4.55 KB)
📄
class.jetpack-idc.php
(351 B)
📄
class.jetpack-modules-list-table.php
(14.79 KB)
📄
class.jetpack-network-sites-list-table.php
(5.98 KB)
📄
class.jetpack-network.php
(21.03 KB)
📄
class.jetpack-plan.php
(4.09 KB)
📄
class.jetpack-post-images.php
(33.72 KB)
📄
class.jetpack-twitter-cards.php
(12.92 KB)
📄
class.jetpack-user-agent.php
(25.84 KB)
📄
class.jetpack.php
(224.1 KB)
📄
class.json-api-endpoints.php
(82.58 KB)
📄
class.json-api.php
(33.86 KB)
📄
class.photon.php
(1.74 KB)
📄
composer.json
(3.77 KB)
ðŸ“
css
📄
enhanced-open-graph.php
(4.35 KB)
ðŸ“
extensions
📄
functions.compat.php
(4.28 KB)
📄
functions.cookies.php
(2.04 KB)
📄
functions.global.php
(15.08 KB)
📄
functions.is-mobile.php
(2.47 KB)
📄
functions.opengraph.php
(17.72 KB)
📄
functions.photon.php
(3.04 KB)
ðŸ“
images
📄
jetpack.php
(8.23 KB)
ðŸ“
jetpack_vendor
📄
json-api-config.php
(338 B)
ðŸ“
json-endpoints
📄
json-endpoints.php
(6.92 KB)
📄
load-jetpack.php
(3.1 KB)
📄
locales.php
(324 B)
ðŸ“
modules
📄
readme.txt
(32.24 KB)
ðŸ“
sal
ðŸ“
src
📄
uninstall.php
(1.6 KB)
ðŸ“
vendor
ðŸ“
views
📄
wpml-config.xml
(1.26 KB)
Editing: functions.compat.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Compatibility functions for YouTube URLs and WP.com helper functions. * * @package automattic/jetpack */ use Automattic\Jetpack\Connection\Manager as Connection_Manager; /** * Required for class.media-extractor.php to match expected function naming convention. * * @param $url Can be just the $url or the whole $atts array. * @return bool|mixed The Youtube video ID via jetpack_get_youtube_id */ function jetpack_shortcode_get_youtube_id( $url ) { return jetpack_get_youtube_id( $url ); } /** * Extract video ID from a YouTube url. * * @param string|array $url YouTube URL. * @return bool|mixed The Youtube video ID */ function jetpack_get_youtube_id( $url ) { // Do we have an $atts array? Get first att if ( is_array( $url ) ) { $url = reset( $url ); } $url = youtube_sanitize_url( $url ); $url = wp_parse_url( $url ); $id = false; if ( ! isset( $url['query'] ) ) { return false; } parse_str( $url['query'], $qargs ); if ( ! isset( $qargs['v'] ) && ! isset( $qargs['list'] ) ) { return false; } if ( isset( $qargs['list'] ) ) { $id = preg_replace( '|[^_a-z0-9-]|i', '', $qargs['list'] ); } if ( empty( $id ) ) { $id = preg_replace( '|[^_a-z0-9-]|i', '', $qargs['v'] ); } return $id; } if ( ! function_exists( 'youtube_sanitize_url' ) ) : /** * Normalizes a YouTube URL to include a v= parameter and a query string free of encoded ampersands. * * @param string|array $url YouTube URL. * @return string|array The normalized URL or false if input is invalid. */ function youtube_sanitize_url( $url ) { if ( is_array( $url ) && isset( $url['url'] ) ) { $url = $url['url']; } if ( ! is_string( $url ) ) { return false; } $url = trim( $url, ' "' ); $url = trim( $url ); $url = str_replace( array( 'youtu.be/', '/v/', '#!v=', '&', '&', 'playlist' ), array( 'youtu.be/?v=', '/?v=', '?v=', '&', '&', 'videoseries' ), $url ); // Replace any extra question marks with ampersands - the result of a URL like "https://www.youtube.com/v/9FhMMmqzbD8?fs=1&hl=en_US" being passed in. $query_string_start = strpos( $url, '?' ); if ( false !== $query_string_start ) { $url = substr( $url, 0, $query_string_start + 1 ) . str_replace( '?', '&', substr( $url, $query_string_start + 1 ) ); } return $url; } endif; /** * Merge in three string helper functions from WPCOM to make working with strings easier. * * @see WPCOM/wp-content/mu-plugins/string-helpers.php */ if ( ! function_exists( 'wp_startswith' ) ) : /** * Check whether a string starts with a specific substring. * * @param string $haystack String we are filtering. * @param string $needle The substring we are looking for. * @return bool */ function wp_startswith( $haystack, $needle ) { if ( ! $haystack || ! $needle || ! is_scalar( $haystack ) || ! is_scalar( $needle ) ) { return false; } $haystack = (string) $haystack; $needle = (string) $needle; return str_starts_with( $haystack, $needle ); } endif; if ( ! function_exists( 'wp_endswith' ) ) : /** * Check whether a string ends with a specific substring. * * @param string $haystack String we are filtering. * @param string $needle The substring we are looking for. * @return bool */ function wp_endswith( $haystack, $needle ) { if ( ! $haystack || ! $needle || ! is_scalar( $haystack ) || ! is_scalar( $needle ) ) { return false; } $haystack = (string) $haystack; $needle = (string) $needle; return str_ends_with( $haystack, $needle ); } endif; if ( ! function_exists( 'wp_in' ) ) : /** * Checks whether a string contains a specific substring. * * @param string $needle The substring we are looking for. * @param string $haystack String we are filtering. * @return bool */ function wp_in( $needle, $haystack ) { if ( ! $haystack || ! $needle || ! is_scalar( $haystack ) || ! is_scalar( $needle ) ) { return false; } $haystack = (string) $haystack; $needle = (string) $needle; return str_contains( $haystack, $needle ); } endif; /** * Deprecated connection function. * * @param string $text Deprecated. * @deprecated 7.5 Use Connection_Manager instead. */ function jetpack_sha1_base64( $text ) { $connection = new Connection_Manager(); return $connection->sha1_base64( $text ); }
Upload File
Create Folder