plugin updates

This commit is contained in:
Tony Volpe
2024-11-15 13:53:04 -05:00
parent 1293d604ca
commit 0238f0c4ca
2009 changed files with 163492 additions and 89543 deletions

View File

@@ -121,6 +121,13 @@ class WPSEO_Admin_Asset {
*/
protected $in_footer;
/**
* For JS Assets. The script's async/defer strategy.
*
* @var string
*/
protected $strategy;
/**
* For CSS Assets. Whether this stylesheet is a right-to-left stylesheet.
*
@@ -147,6 +154,7 @@ class WPSEO_Admin_Asset {
'media' => 'all',
'version' => '',
'suffix' => '',
'strategy' => '',
];
/**
@@ -173,6 +181,7 @@ class WPSEO_Admin_Asset {
$this->version = $args['version'];
$this->media = $args['media'];
$this->in_footer = $args['in_footer'];
$this->strategy = $args['strategy'];
$this->rtl = $args['rtl'];
$this->suffix = $args['suffix'];
}
@@ -235,6 +244,15 @@ class WPSEO_Admin_Asset {
return $this->in_footer;
}
/**
* Returns the script asset's async/defer loading strategy.
*
* @return string
*/
public function get_strategy() {
return $this->strategy;
}
/**
* Returns whether this CSS has a RTL counterpart.
*