Rob Gabaree
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Date and Time Shortcode] PHP Fatal errorIt only happens when I’m trying to run a command via wp-cli (e.g.,
/usr/local/bin/wp cron event run --due-now) – this plugin will throw a Fatal Error because $denra_plugins is empty. It works fine otherwise.Researching, it looks like this is because wp-cli commands are loaded through a function and you need to be explicit in your
globaldefinitions. See here:WP-CLI now loads WordPress inside of a function: #2089
Global variables need to be explicitly globalized in order to function as expected in WP-CLI.
So yeah, just adding the global $denra_plugins like in my Gist above should solve the wp-cli issue. I was trying to figure out why my cron jobs weren’t running!
Forum: Plugins
In reply to: [WP Date and Time Shortcode] PHP Fatal errorTo fix – you need to add
global $denra_pluginstowp-date-and-time-shortcode.php– see here:(Line #39.)
Forum: Plugins
In reply to: [Seriously Simple Stats] Total numbers?This seems like such a basic feature I can’t believe it’s not built in already given how long this plugin has been around for. We’re trying to get the totals over the last fiscal year and it’s such a hassle to do now.
Forum: Fixing WordPress
In reply to: WordPress adding mysterious “</a>” to “more” linksI guess it has to do with how WordPress formats the <!–more–> tag, because I moved the tag to it’s own line (instead of having a ‘p’ or ‘strong’ tag directly after it) and now the ‘a’ tag seems to be gone: http://www.iwaslazy.com/2008/01/the-thirtieth-day/
Forum: Fixing WordPress
In reply to: WordPress adding mysterious “</a>” to “more” linksSure, click any of the “Continue reading…” links on this page: http://tinyurl.com/yrmqym