BUG Some variables not found because of missing global
-
sharify_catch_that_image() => If post has thumbnail the
global $post
statement is not present.On
sharify_cache.php
need to useglobal $sharify_cache_period;
. On my local environment this variable could not be found.You should not guess the absolute path using ‘wp-content’ because many applications do not use it… like mine. ??
$absolute_path = explode(‘wp-content’, $_SERVER[‘SCRIPT_FILENAME’]);
$wp_load = $absolute_path[0] . ‘wp-load.php’;Try to use WP constants like ABSPATH.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘BUG Some variables not found because of missing global’ is closed to new replies.