Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119948

railszilla on "[Plugin: Quick Cache ( Speed Without Compromise )] BugFix for PHP notice"

$
0
0

for developers with debugging enable, the PHP notice is annoying ...

please fix this by using !isset

this is the code to replace in admin-css-js.inc.php

<?php
/*
Copyright: © 2009 WebSharks, Inc. ( coded in the USA )
<mailto:support@websharks-inc.com> <http://www.websharks-inc.com/>

Released under the terms of the GNU General Public License.
You should have received a copy of the GNU General Public License,
along with this software. In the main directory, see: /licensing/
If not, see: <http://www.gnu.org/licenses/>.
*/
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
	exit ("Do not access this file directly.");
/**/
if (!class_exists ("c_ws_plugin__qcache_admin_css_js"))
	{
		class c_ws_plugin__qcache_admin_css_js
			{
				public static function menu_pages_css ()
					{
						if (isset($_GET["ws_plugin__qcache_menu_pages_css"])) /* Call inner function? */
							{
								return c_ws_plugin__qcache_admin_css_js_in::menu_pages_css ();
							}
					}
				/**/
				public static function menu_pages_js ()
					{
						if (isset($_GET["ws_plugin__qcache_menu_pages_js"])) /* Call inner function? */
							{
								return c_ws_plugin__qcache_admin_css_js_in::menu_pages_js ();
							}
					}
			}
	}
?>

http://wordpress.org/extend/plugins/quick-cache/


Viewing all articles
Browse latest Browse all 119948

Trending Articles