How to fix missed schedule in wordpress 3

First add follow code to wp_config.php in your root directory.

define(‘ALTERNATE_WP_CRON’, true);

This is wordpress alternative cron mode.

Second step is editing cron interval in includes/cron.php in line 245-246.

current is:

$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’;

wp_remote_post( $cron_url, array(‘timeout’ => 0.01, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) );

change it to:

$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’;

wp_remote_post( $cron_url, array(‘timeout’ => 5.00, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) );

That is all. Works for me.


Advertisements

JWPlayer video files prevent with .htaccess

It was hard to get where the player is connected to make exceptions. Here’s decision (put this .htaccess file in your video directory).

Deny from All
Allow from 127.0.0.1 plugins.longtailvideo.com

If image preview is not working. Add new .htaccess file in your images folder.

Allow from All