Update WP and plugins
This commit is contained in:
parent
10a4713229
commit
1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions
|
@ -90,8 +90,9 @@ class _WP_Dependency {
|
|||
*/
|
||||
public function __construct() {
|
||||
@list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args();
|
||||
if ( ! is_array($this->deps) )
|
||||
if ( ! is_array( $this->deps ) ) {
|
||||
$this->deps = array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -104,15 +105,27 @@ class _WP_Dependency {
|
|||
* @return bool False if not scalar, true otherwise.
|
||||
*/
|
||||
public function add_data( $name, $data ) {
|
||||
if ( !is_scalar($name) )
|
||||
if ( ! is_scalar( $name ) ) {
|
||||
return false;
|
||||
$this->extra[$name] = $data;
|
||||
}
|
||||
$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) )
|
||||
if ( ! is_string( $domain ) ) {
|
||||
return false;
|
||||
}
|
||||
$this->textdomain = $domain;
|
||||
$this->translations_path = $path;
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue