Remove links to non-existent locale variants.

Fixes #76
This commit is contained in:
Ian Dunn 2019-11-04 13:04:17 -06:00
parent c7e329ec32
commit dc8ef43ebd
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,8 @@
<?php
namespace WordPressDotOrg\FiveForTheFuture\Miscellaneous;
add_action( 'after_setup_theme', function() {
// These alternate versions don't exist for this subsite, so the links would just lead to 404 errors.
remove_action( 'wp_head', 'WordPressdotorg\Theme\hreflang_link_attributes' );
} );

View file

@ -30,6 +30,7 @@ function load() {
require_once get_includes_path() . 'pledge-form.php';
require_once get_includes_path() . 'xprofile.php';
require_once get_includes_path() . 'pledge-log.php';
require_once get_includes_path() . 'miscellaneous.php';
}
/**