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

@@ -10,7 +10,7 @@ class Default_Tagline_Runner implements Runner_Interface {
/**
* The default WordPress tagline.
*/
const DEFAULT_BLOG_DESCRIPTION = 'Just another WordPress site';
public const DEFAULT_BLOG_DESCRIPTION = 'Just another WordPress site';
/**
* Is set to true when the default tagline is set.

View File

@@ -10,7 +10,7 @@ abstract class Health_Check {
/**
* The prefix to add to the test identifier. Used to differentiate between Yoast's health checks, and other health checks.
*/
const TEST_IDENTIFIER_PREFIX = 'yoast-';
public const TEST_IDENTIFIER_PREFIX = 'yoast-';
/**
* The object that runs the actual health check.
@@ -35,7 +35,7 @@ abstract class Health_Check {
* @return string The identifier that WordPress requires.
*/
public function get_test_identifier() {
$full_class_name = \get_class( $this );
$full_class_name = static::class;
$class_name_backslash_index = \strrpos( $full_class_name, '\\' );
$class_name = $full_class_name;

View File

@@ -10,17 +10,17 @@ class Report_Builder {
/**
* Passed health check.
*/
const STATUS_GOOD = 'good';
public const STATUS_GOOD = 'good';
/**
* Changes are recommended but not necessary.
*/
const STATUS_RECOMMENDED = 'recommended';
public const STATUS_RECOMMENDED = 'recommended';
/**
* Significant issues that the user should consider fixing.
*/
const STATUS_CRITICAL = 'critical';
public const STATUS_CRITICAL = 'critical';
/**
* The user-facing label.

View File

@@ -25,6 +25,8 @@ class Conflicting_Plugins_Service {
* Deactivates the specified plugin(s) if any, or the entire list of known conflicting plugins.
*
* @param string|array|false $plugins Optional. The plugin filename, or array of plugin filenames, to deactivate.
*
* @return void
*/
public function deactivate_conflicting_plugins( $plugins = false ) {
// If no plugins are specified, deactivate any known conflicting plugins that are active.

View File

@@ -78,7 +78,7 @@ class Importable_Detector_Service {
public function filter_actions( $all_actions, $plugin = null, $type = null ) {
return \array_filter(
$all_actions,
static function( $action ) use ( $plugin, $type ) {
static function ( $action ) use ( $plugin, $type ) {
return $action->is_compatible_with( $plugin, $type );
}
);