Avoid a "method should not be called statically"

Declare `WC_Post_Data::transition_post_status()` as `static`. Avoids a
PHP notice.
Merge pull request #5706 from JDGrimes/static-method-notice

Avoid a "method should not be called statically" notice