• Since updating to WP 5.8.1, I can’t see any of the text in the edit post visual editor. IN the text editor, I can see the text, but the toolbar is invisible.

    Also, the add link dialog box isn’t working again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try to disable all other plugins, i have the same version and everything is working properly

    Thread Starter mesmer7

    (@mesmer7)

    I found the problem. It was this function, which I added to the theme at roughly the same time as the update.

    add_filter('script_loader_tag', 'async_the_scripts', 10, 3);
    	function async_the_scripts($tag, $handle, $src) {
    	
    		if ($handle !== 'jquery-core') {
    			if (false === stripos($tag, 'async') &&  false === stripos($tag, 'defer') ) {
    				$tag = str_replace(' src', ' async src', $tag);
    			}	
    		}	
    		return $tag;
    	}
    

    I guess you can’t add async to the backend scripts.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘not working with WP 5.8.1’ is closed to new replies.