Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Alex, it’s definitely efficient, but it could be a hair more efficient to completely JQuery when it’s not needed.

    Replace line 975 of 2.0rc1:
    if (is_admin() || $aktt->tweet_from_sidebar) {

    with the following line:

    if (is_admin() || ($aktt->tweet_from_sidebar && current_user_can('publish_posts'))) {

    This will keep JQuery completely out of the front-end if it’s not needed.

    Thanks for the plugin,
    Edward

    Hi Frank,

    Something like this written in a PHP hook in wp-crontrol would probably work. I haven’t tested it though.

    require_once(ABSPATH.WPINC.'/class-snoopy.php');
            $snoop = new Snoopy;
            $snoop->fetch('http://example.com/wp-content/plugins/wp-posterperiodic/post-cron.php');
            if( $snoop->status == '200' ) {
                do_something_with( $snoop->results );
            }

    Cheers,
    Edward

    plokmaster,

    Are you running the wp-crontrol plugin? If so, which version of WordPress are you running?

    Hi vscarpenter & schmitt,

    I updated the code which should fix the proble you experienced. However, as you noticed, the problem only presents yourself when you first activate the plugin, so you’re in the clear now.

    vscarpenter:
    You can’t do anything with the built-in cron schedules because WP hard-codes those. It’s probably for the best also, as other plugins might be relying on them.

    Cheers,
    Edward

Viewing 4 replies - 1 through 4 (of 4 total)