Merged in feature/314-dev-dev01 (pull request #24)

auto-patch  314-dev-dev01-2024-01-25T04_09_02

* auto-patch  314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
Tony Volpe
2024-01-25 04:11:47 +00:00
parent 6b67473553
commit 68dbe860e9
540 changed files with 3445 additions and 2131 deletions

View File

@@ -22,7 +22,8 @@ class Language_Helper {
/**
* Filter: 'wpseo_schema_piece_language' - Allow changing the Schema piece language.
*
* @api string $type The Schema piece language.
* @param string $type The Schema piece language.
* @param array $data The Schema piece data.
*/
$data['inLanguage'] = \apply_filters( 'wpseo_schema_piece_language', \get_bloginfo( 'language' ), $data );

View File

@@ -110,6 +110,8 @@ class Replace_Vars_Helper {
*
* @param string $variable The replace variable.
* @param string $value The value that the variable should be replaced with.
*
* @return void
*/
protected function register_replacement( $variable, $value ) {
$this->replace_vars->safe_register_replacement(
@@ -126,7 +128,7 @@ class Replace_Vars_Helper {
* @return Closure A function that returns the given value.
*/
protected function get_identity_function( $value ) {
return static function() use ( $value ) {
return static function () use ( $value ) {
return $value;
};
}