Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter briannyc2009

    (@briannyc2009)

    I was able to get it working by editing function add_to_extracted_urls in class-ss-url-extractor.php.

    
    private function add_to_extracted_urls( $extracted_url ) {
    
    	$test = mb_convert_encoding($extracted_url, 'UTF-8', 'HTML-ENTITIES');
    
    	if ( substr( $test, 0, 6 ) === "mailto" ) return $extracted_url;
    	else {
    
    		$url = Util::relative_to_absolute_url( $extracted_url, $this->static_page->url );
    
    		if ( $url && Util::is_local_url( $url ) ) {
    			// add to extracted urls queue
    			$this->extracted_urls[] = Util::remove_params_and_fragment( $url );
    
    			$url = $this->convert_url( $url );
    		}
    
    		return $url;
    	}
    }
    
    • This reply was modified 8 years, 3 months ago by briannyc2009.
    • This reply was modified 8 years, 3 months ago by briannyc2009.
    Thread Starter briannyc2009

    (@briannyc2009)

    Scott,

    Thanks for the quick reply. I’d thought I’d check before I rolled my own.

    Given the new WordPress direction to make everything access the API, might be worth a look.

    However, your plugin and my use case for a static version is a glorified cache. I’ll probably through Varnish in front instead and call it a day. 😉

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)