Skip to content

Commit f61da51

Browse files
committed
Omit --meta_input test with old WordPress versions
The `meta_input` argument to `wp_insert_post()` was introduced with WordPress 4.4.0.
1 parent bbc4c83 commit f61da51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/post.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ Feature: Manage WordPress posts
233233
var isEmailValid = /^\S+@\S+.\S+$/.test(email);
234234
"""
235235

236+
@require-wp-4.4
236237
Scenario: Creating/updating posts with meta keys
237238
When I run `wp post create --post_title='Test Post' --post_content='Test post content' --meta_input='{"key1":"value1","key2":"value2"}' --porcelain`
238239
Then STDOUT should be a number

0 commit comments

Comments
 (0)