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

@@ -53,6 +53,8 @@ class WPSEO_Admin_Init {
/**
* Enqueue our styling for dismissible yoast notifications.
*
* @return void
*/
public function enqueue_dismissible() {
$this->asset_manager->enqueue_style( 'dismissible' );
@@ -132,7 +134,7 @@ class WPSEO_Admin_Init {
* the WPSEO metaboxes are only registered on the typical pages (lean loading) or always
* registered when in admin.
*
* @api bool Whether to always register the metaboxes or not. Defaults to false.
* @param bool $register_metaboxes Whether to always register the metaboxes or not. Defaults to false.
*/
if ( apply_filters( 'wpseo_always_register_metaboxes_on_admin', false ) ) {
return true;
@@ -153,6 +155,8 @@ class WPSEO_Admin_Init {
/**
* Determine whether we should load the meta box class and if so, load it.
*
* @return void
*/
private function load_meta_boxes() {
if ( $this->should_load_meta_boxes() ) {
@@ -163,6 +167,8 @@ class WPSEO_Admin_Init {
/**
* Determine if we should load our taxonomy edit class and if so, load it.
*
* @return void
*/
private function load_taxonomy_class() {
if (
@@ -177,6 +183,8 @@ class WPSEO_Admin_Init {
* Determine if we should load our admin pages class and if so, load it.
*
* Loads admin page class for all admin pages starting with `wpseo_`.
*
* @return void
*/
private function load_admin_user_class() {
if ( in_array( $this->pagenow, [ 'user-edit.php', 'profile.php' ], true )
@@ -190,6 +198,8 @@ class WPSEO_Admin_Init {
* Determine if we should load our admin pages class and if so, load it.
*
* Loads admin page class for all admin pages starting with `wpseo_`.
*
* @return void
*/
private function load_admin_page_class() {
@@ -214,6 +224,8 @@ class WPSEO_Admin_Init {
/**
* Loads the plugin suggestions.
*
* @return void
*/
private function load_plugin_suggestions() {
$suggestions = new WPSEO_Suggested_Plugins( new WPSEO_Plugin_Availability(), Yoast_Notification_Center::get() );
@@ -234,6 +246,8 @@ class WPSEO_Admin_Init {
/**
* See if we should start our XML Sitemaps Admin class.
*
* @return void
*/
private function load_xml_sitemaps_admin() {
if ( WPSEO_Options::get( 'enable_xml_sitemap', false ) ) {
@@ -243,6 +257,8 @@ class WPSEO_Admin_Init {
/**
* Shows deprecation warnings to the user if a plugin has registered a filter we have deprecated.
*
* @return void
*/
public function show_hook_deprecation_warnings() {
global $wp_filter;
@@ -317,6 +333,8 @@ class WPSEO_Admin_Init {
/**
* Shows a notice on the permalink settings page.
*
* @return void
*/
public function permalink_settings_notice() {
global $pagenow;
@@ -341,7 +359,7 @@ class WPSEO_Admin_Init {
/**
* Adds a custom Yoast section within the Classic Editor publish box.
*
* @param \WP_Post $post The current post object.
* @param WP_Post $post The current post object.
*
* @return void
*/
@@ -353,7 +371,7 @@ class WPSEO_Admin_Init {
/**
* Fires after the post time/date setting in the Publish meta box.
*
* @api \WP_Post The current post object.
* @param WP_Post $post The current post object.
*/
do_action( 'wpseo_publishbox_misc_actions', $post );
}