From b28732aa4dfe03e98d277f6180156e5566a32b3c Mon Sep 17 00:00:00 2001 From: RuhaniRabin Date: Sat, 26 Apr 2014 16:09:22 +0800 Subject: [PATCH] Updated readme with GitHub proper link, added header data on the main plugin file so it can be updated via git-updater, minor code fixes --- readme.txt | 3 ++- wp-optimize.php | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/readme.txt b/readme.txt index 0243aa4..0a3d828 100644 --- a/readme.txt +++ b/readme.txt @@ -16,7 +16,7 @@ WP-Optimize is an extensive WordPress database cleanup and optimization tool. It Please show your support for this plugin by giving it [a rating](http://wordpress.org/support/view/plugin-reviews/fields-framework?rate=5#postform)! -Now hosted at [Github](http://ruhanirabin.github.io/WP-Optimize) - More updated releases can be found there. +Now hosted at [GitHub](https://github.com/ruhanirabin/WP-Optimize). More updated releases and collaboration can be found over there. **MAJOR FEATURES:** @@ -150,6 +150,7 @@ Of course there is. This is a very primary version of the plugin. So I would rec = 1.7.6 = * Now hosted at https://github.com/ruhanirabin/WP-Optimize * Fix some code problems +* git-updater compatible header = 1.7.4 = * More Translation compatibility. diff --git a/wp-optimize.php b/wp-optimize.php index 6751d46..b625f35 100644 --- a/wp-optimize.php +++ b/wp-optimize.php @@ -8,7 +8,8 @@ Author URI: https://github.com/ruhanirabin/WP-Optimize Text Domain: wp-optimize Domain Path: /languages - +GitHub Plugin URI: https://github.com/ruhanirabin/wp-optimize +GitHub Branch: master Copyright 2009-2014 Ruhani Rabin (email : get@ruhanirabin.com) This program is free software; you can redistribute it and/or modify @@ -26,6 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + # ---------------------------------------- # # Find and replace version info in all files # ---------------------------------------- # @@ -33,9 +35,10 @@ # ---------------------------------- # # prevent file from being accessed directly # ---------------------------------- # -if ('wp-optimize.php' == basename($_SERVER['SCRIPT_FILENAME'])) - die ('Please do not access this file directly. Thanks!'); - +if ( ! defined( 'WPINC' ) ) { + die; +} + global $current_user; if (! defined('WPO_VERSION'))