Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed error 'Missing argument 2/3 for WPVarnish::WPVarnishPurgeCommon…

…ObjectsStatus()'
  • Loading branch information...
commit 1361a2946aae240bfcbce2aed5dcb633ad2fc2a0 1 parent 96874ea
= authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 wp-varnish.php
View
4 wp-varnish.php
@@ -93,8 +93,8 @@ function WPVarnish() {
// When posts/pages are published, edited or deleted
add_action('edit_post', array($this, 'WPVarnishPurgePost'), 99);
add_action('edit_post', array($this, 'WPVarnishPurgeCommonObjects'), 99);
- add_action('transition_post_status', array($this, 'WPVarnishPurgePostStatus'), 99);
- add_action('transition_post_status', array($this, 'WPVarnishPurgeCommonObjectsStatus'), 99);
+ add_action('transition_post_status', array($this, 'WPVarnishPurgePostStatus'), 99, 3);
+ add_action('transition_post_status', array($this, 'WPVarnishPurgeCommonObjectsStatus'), 99, 3);
// When comments are made, edited or deleted
add_action('comment_post', array($this, 'WPVarnishPurgePostComments'),99);
Please sign in to comment.
Something went wrong with that request. Please try again.