aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress/wp-includes/class-wp-dependency.php
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-07-27 10:05:23 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-07-27 10:05:23 +0200
commit5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch)
tree39a1a4629749056191c05dfd899f931701b7acf3 /srcs/wordpress/wp-includes/class-wp-dependency.php
parent5afd237bbd22028b85532b8c0b3fcead49a00764 (diff)
downloadft_server-master.tar.gz
ft_server-master.tar.bz2
ft_server-master.zip
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/wordpress/wp-includes/class-wp-dependency.php')
-rw-r--r--srcs/wordpress/wp-includes/class-wp-dependency.php137
1 files changed, 0 insertions, 137 deletions
diff --git a/srcs/wordpress/wp-includes/class-wp-dependency.php b/srcs/wordpress/wp-includes/class-wp-dependency.php
deleted file mode 100644
index 9648b2f..0000000
--- a/srcs/wordpress/wp-includes/class-wp-dependency.php
+++ /dev/null
@@ -1,137 +0,0 @@
-<?php
-/**
- * Dependencies API: _WP_Dependency class
- *
- * @since 4.7.0
- *
- * @package WordPress
- * @subpackage Dependencies
- */
-
-/**
- * Class _WP_Dependency
- *
- * Helper class to register a handle and associated data.
- *
- * @access private
- * @since 2.6.0
- */
-class _WP_Dependency {
- /**
- * The handle name.
- *
- * @since 2.6.0
- * @var null
- */
- public $handle;
-
- /**
- * The handle source.
- *
- * @since 2.6.0
- * @var null
- */
- public $src;
-
- /**
- * An array of handle dependencies.
- *
- * @since 2.6.0
- * @var array
- */
- public $deps = array();
-
- /**
- * The handle version.
- *
- * Used for cache-busting.
- *
- * @since 2.6.0
- * @var bool|string
- */
- public $ver = false;
-
- /**
- * Additional arguments for the handle.
- *
- * @since 2.6.0
- * @var null
- */
- public $args = null; // Custom property, such as $in_footer or $media.
-
- /**
- * Extra data to supply to the handle.
- *
- * @since 2.6.0
- * @var array
- */
- public $extra = array();
-
- /**
- * Translation textdomain set for this dependency.
- *
- * @since 5.0.0
- * @var string
- */
- public $textdomain;
-
- /**
- * Translation path set for this dependency.
- *
- * @since 5.0.0
- * @var string
- */
- public $translations_path;
-
- /**
- * Setup dependencies.
- *
- * @since 2.6.0
- * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
- * to the function signature.
- *
- * @param ...$args Dependency information.
- */
- public function __construct( ...$args ) {
- list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = $args;
- if ( ! is_array( $this->deps ) ) {
- $this->deps = array();
- }
- }
-
- /**
- * Add handle data.
- *
- * @since 2.6.0
- *
- * @param string $name The data key to add.
- * @param mixed $data The data value to add.
- * @return bool False if not scalar, true otherwise.
- */
- public function add_data( $name, $data ) {
- if ( ! is_scalar( $name ) ) {
- return false;
- }
- $this->extra[ $name ] = $data;
- return true;
- }
-
- /**
- * Sets the translation domain for this dependency.
- *
- * @since 5.0.0
- *
- * @param string $domain The translation textdomain.
- * @param string $path Optional. The full file path to the directory containing translation files.
- *
- * @return bool False if $domain is not a string, true otherwise.
- */
- public function set_translations( $domain, $path = null ) {
- if ( ! is_string( $domain ) ) {
- return false;
- }
- $this->textdomain = $domain;
- $this->translations_path = $path;
- return true;
- }
-}