Domanda

I am having this weird problem. Everytime I save a draft, the sidebar's black area appears and overlaps the editor making the editor unusable. It also attempts to save the draft repetitively and the only way to get out of it is to refresh the page. Kindly refer to the following image. inspecting it revealed nothing odd though

Anyone knows how to fix this?

È stato utile?

Soluzione

author of WP Native Articles here. This is normally a problem with other plugins incorrectly messing around with tag incorrectly and preventing it from setting the correct URL. If you save this code below as a separate file, upload it as a plugin and activate it it should fix it.

<?php
/**
 * Plugin Name: WPNA Editor Fix
 * Description: Fix the base URL meta field that other plugins break.
 * Author: OzTheGreat (WPArtisan)
 * Author URI: https://wpartisan.me
 * Version: 1.0.1
 * Plugin URI: https://wp-native-articles.com
 *
 * @package wpna-editor-fix
 */

add_action( 'admin_footer-post.php', 'wpna_custom_fix_base_url' );
add_action( 'admin_footer-post-new.php', 'wpna_custom_fix_base_url' );

function wpna_custom_fix_base_url(){
    ?>
    <script>
        if ( window.history.replaceState ) {
            var bases = document.getElementsByTagName('base');
            if (bases.length > 0) {
                bases[0].href = document.getElementById( 'wp-admin-canonical' ).href + window.location.hash;
            }
        }
    </script>
    <?php
}

Altri suggerimenti

Okay, I found out! It was caused by WP Native Articles' Premium plug-in. I'm now talking to the developer and if there is anything concrete, I will update here.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange
scroll top