Merge pull request #5706 from JDGrimes/static-method-notice

Avoid a "method should not be called statically" notice
This commit is contained in:
Mike Jolley 2014-06-19 16:48:01 +01:00
commit f7904d7e1c
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class WC_Post_Data {
/**
* When a post status changes
*/
public function transition_post_status( $new_status, $old_status, $post ) {
public static function transition_post_status( $new_status, $old_status, $post ) {
if ( ( 'publish' === $new_status || 'publish' === $old_status ) && in_array( $post->post_type, array( 'product', 'product_variation' ) ) ) {
self::delete_product_query_transients();
}