Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a more reliable check for WP at plugin runtime.

  • Loading branch information...
commit b724ad21b2307206ba588822e6f26497bbb784b8 1 parent a5440f1
@mvied authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 wordpress-https.php
View
4 wordpress-https.php
@@ -28,6 +28,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+if ( !defined('ABSPATH') ) exit;
+
load_plugin_textdomain( 'wordpress-https', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
function wphttps_autoloader($class) {
@@ -43,7 +45,7 @@ function wphttps_autoloader($class) {
*/
//define('WPHTTPS_RESET', true);
-if ( function_exists('get_bloginfo') && ! defined('WP_UNINSTALL_PLUGIN') ) {
+if ( ! defined('WP_UNINSTALL_PLUGIN') ) {
$wordpress_https = new WordPressHTTPS;
$wordpress_https->setSlug('wordpress-https');
$wordpress_https->setVersion('3.3.5');
Please sign in to comment.
Something went wrong with that request. Please try again.