Created
September 28, 2015 17:21
-
-
Save Pross/76e392468641d8f5374a to your computer and use it in GitHub Desktop.
Fix for WPML site_url()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WPML_Site_Url_DMS { | |
function __construct() { | |
remove_shortcode( 'pl_site_url' ); | |
add_shortcode( 'pl_site_url', array( $this, 'fixed_site_url' ) ); | |
} | |
function fixed_site_url() { | |
return site_url(); | |
} | |
} | |
new WPML_Site_Url_DMS(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment