Merge pull request #3198 from toddlahman/master

Fix for Issue #3197
This commit is contained in:
Coen Jacobs 2013-05-21 03:32:14 -07:00
commit 387fcf130b
1 changed files with 2 additions and 2 deletions

View File

@ -1353,7 +1353,7 @@ class Woocommerce {
* @return string
*/
public function plugin_url() {
if ( $this->plugin_url ) return $this->plugin_url;
if ( isset( $this->plugin_url ) ) return $this->plugin_url;
return $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
}
@ -1365,7 +1365,7 @@ class Woocommerce {
* @return string
*/
public function plugin_path() {
if ( $this->plugin_path ) return $this->plugin_path;
if ( isset( $this->plugin_path ) ) return $this->plugin_path;
return $this->plugin_path = untrailingslashit( plugin_dir_path( __FILE__ ) );
}