• Resolved Julie

    (@habannah)


    Hi Pascal, I just updated to the new WordPress version the other day, and since then, I’ve been seeing 404s for the Voice Search script in my Redirection logs.

    It looks likes the problem might be in voice-search/classes/plugin.php — I removed an extra space from ' .js':

    public function enqueue_scripts() {
    		// Use minified libraries if SCRIPT_DEBUG is turned off
    		$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
    
    		wp_enqueue_script(
    			'voice-search',
    			$this->get_url() . 'js/voice-search' . $suffix . '.js',
    			array(),
    			self::VERSION,
    			true
    		);

    It looks to me like this small change has solved the issue…

    https://www.ads-software.com/plugins/voice-search/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Script 404s since new WP version’ is closed to new replies.