Skip to content

Commit ee7fe25

Browse files
committed
Merge branch 'master' into stdin
2 parents c286afe + f1acff3 commit ee7fe25

30 files changed

+173
-3534
lines changed

.github/move.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Configuration for move-issues - https://github.com/dessant/move-issues
2+
3+
# Repository to extend settings from
4+
_extends: wp-cli/wp-cli
5+
6+
# Delete the command comment when it contains no other content
7+
# deleteCommand: true
8+
9+
# Close the source issue after moving
10+
# closeSourceIssue: true
11+
12+
# Lock the source issue after moving
13+
# lockSourceIssue: false
14+
15+
# Mention issue and comment authors
16+
# mentionAuthors: true
17+
18+
# Preserve mentions in the issue content
19+
# keepContentMentions: true

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Used by Probot Settings: https://probot.github.io/apps/settings/
22
repository:
3-
description: Manage WordPress core entities.
3+
description: Manage WordPress comments, menus, options, posts, sites, terms, and users.
44
labels:
55
- name: bug
66
color: fc2929

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ vendor/
55
*.zip
66
*.tar.gz
77
composer.lock
8+
*.log

.travis.yml

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ sudo: false
22
dist: trusty
33

44
language: php
5+
php: 7.2
56

67
notifications:
78
email:
@@ -21,24 +22,6 @@ env:
2122
- PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
2223
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"
2324

24-
matrix:
25-
include:
26-
- php: 7.2
27-
env: WP_VERSION=latest
28-
- php: 7.1
29-
env: WP_VERSION=latest
30-
- php: 7.0
31-
env: WP_VERSION=latest
32-
- php: 5.6
33-
env: WP_VERSION=latest
34-
- php: 5.6
35-
env: WP_VERSION=3.7.11
36-
- php: 5.6
37-
env: WP_VERSION=trunk
38-
- php: 5.3
39-
dist: precise
40-
env: WP_VERSION=latest
41-
4225
before_install:
4326
- |
4427
# Remove Xdebug for a huge performance increase:
@@ -50,14 +33,42 @@ before_install:
5033
- |
5134
# Raise PHP memory limit to 2048MB
5235
echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
36+
- composer validate
5337

5438
install:
55-
- composer require wp-cli/wp-cli:dev-master
5639
- composer install
57-
- bash bin/install-package-tests.sh
58-
59-
before_script:
60-
- composer validate
40+
- composer prepare-tests
6141

6242
script:
63-
- bash bin/test.sh
43+
- composer phpunit
44+
- composer behat || composer behat-rerun
45+
46+
jobs:
47+
include:
48+
- stage: sniff
49+
script:
50+
- composer lint
51+
- composer phpcs
52+
env: BUILD=sniff
53+
- stage: test
54+
php: 7.2
55+
env: WP_VERSION=latest
56+
- stage: test
57+
php: 7.1
58+
env: WP_VERSION=latest
59+
- stage: test
60+
php: 7.0
61+
env: WP_VERSION=latest
62+
- stage: test
63+
php: 5.6
64+
env: WP_VERSION=latest
65+
- stage: test
66+
php: 5.6
67+
env: WP_VERSION=3.7.11
68+
- stage: test
69+
php: 5.6
70+
env: WP_VERSION=trunk
71+
- stage: test
72+
php: 5.4
73+
dist: precise
74+
env: WP_VERSION=latest

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
wp-cli/entity-command
22
=====================
33

4-
Manage WordPress core entities.
4+
Manage WordPress comments, menus, options, posts, sites, terms, and users.
55

66
[![Build Status](https://travis-ci.org/wp-cli/entity-command.svg?branch=master)](https://travis-ci.org/wp-cli/entity-command)
77

@@ -2182,7 +2182,7 @@ wp post edit <id>
21822182
Generates some posts.
21832183

21842184
~~~
2185-
wp post generate [--count=<number>] [--post_type=<type>] [--post_status=<status>] [--post_title=<post_title>] [--post_author=<login>] [--post_date=<yyyy-mm-dd-hh-ii-ss>] [--post_content] [--max_depth=<number>] [--format=<format>]
2185+
wp post generate [--count=<number>] [--post_type=<type>] [--post_status=<status>] [--post_title=<post_title>] [--post_author=<login>] [--post_date=<yyyy-mm-dd-hh-ii-ss>] [--post_date_gmt=<yyyy-mm-dd-hh-ii-ss>] [--post_content] [--max_depth=<number>] [--format=<format>]
21862186
~~~
21872187

21882188
Creates a specified number of new posts with dummy data.
@@ -2222,6 +2222,9 @@ Creates a specified number of new posts with dummy data.
22222222
[--post_date=<yyyy-mm-dd-hh-ii-ss>]
22232223
The date of the generated posts. Default: current date
22242224

2225+
[--post_date_gmt=<yyyy-mm-dd-hh-ii-ss>]
2226+
The GMT date of the generated posts. Default: value of post_date (or current date if it's not set)
2227+
22252228
[--post_content]
22262229
If set, the command reads the post_content from STDIN.
22272230

@@ -5469,7 +5472,7 @@ wp user unspam <id>...
54695472
Updates an existing user.
54705473

54715474
~~~
5472-
wp user update <user>... [--user_pass=<password>] [--user_nicename=<nice_name>] [--user_url=<url>] [--user_email=<email>] [--display_name=<display_name>] [--nickname=<nickname>] [--first_name=<first_name>] [--last_name=<last_name>] [--description=<description>] [--rich_editing=<rich_editing>] [--user_registered=<yyyy-mm-dd-hh-ii-ss>] [--role=<role>] --<field>=<value>
5475+
wp user update <user>... [--user_pass=<password>] [--user_nicename=<nice_name>] [--user_url=<url>] [--user_email=<email>] [--display_name=<display_name>] [--nickname=<nickname>] [--first_name=<first_name>] [--last_name=<last_name>] [--description=<description>] [--rich_editing=<rich_editing>] [--user_registered=<yyyy-mm-dd-hh-ii-ss>] [--role=<role>] --<field>=<value> [--skip-email]
54735476
~~~
54745477

54755478
**OPTIONS**
@@ -5516,6 +5519,9 @@ wp user update <user>... [--user_pass=<password>] [--user_nicename=<nice_name>]
55165519
--<field>=<value>
55175520
One or more fields to update. For accepted fields, see wp_update_user().
55185521

5522+
[--skip-email]
5523+
Don't send an email notification to the user.
5524+
55195525
**EXAMPLES**
55205526

55215527
# Update user

behat.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default:
2+
paths:
3+
features: features
4+
bootstrap: vendor/wp-cli/wp-cli-tests/features/bootstrap

bin/install-package-tests.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

bin/test.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

composer.json

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"name": "wp-cli/entity-command",
3-
"description": "Manage WordPress core entities.",
43
"type": "wp-cli-package",
4+
"description": "Manage WordPress comments, menus, options, posts, sites, terms, and users.",
55
"homepage": "https://github.com/wp-cli/entity-command",
6-
"support": {
7-
"issues": "https://github.com/wp-cli/entity-command/issues"
8-
},
96
"license": "MIT",
107
"authors": [
118
{
@@ -14,24 +11,23 @@
1411
"homepage": "https://runcommand.io"
1512
}
1613
],
17-
"minimum-stability": "dev",
18-
"prefer-stable": true,
19-
"autoload": {
20-
"psr-4": {
21-
"": "src/",
22-
"WP_CLI\\": "src/WP_CLI"
23-
},
24-
"files": [ "entity-command.php" ]
14+
"require": {
15+
"wp-cli/wp-cli": "^2"
2516
},
26-
"require": {},
2717
"require-dev": {
28-
"behat/behat": "~2.5",
29-
"wp-cli/wp-cli": "^1.5",
30-
"phpunit/phpunit": "^4.8"
18+
"wp-cli/cache-command": "^1 || ^2",
19+
"wp-cli/db-command": "^1.3 || ^2",
20+
"wp-cli/extension-command": "^1.2 || ^2",
21+
"wp-cli/media-command": "^1.1 || ^2",
22+
"wp-cli/wp-cli-tests": "^2.0.7"
23+
},
24+
"config": {
25+
"process-timeout": 7200,
26+
"sort-packages": true
3127
},
3228
"extra": {
3329
"branch-alias": {
34-
"dev-master": "1.x-dev"
30+
"dev-master": "2.x-dev"
3531
},
3632
"bundled": true,
3733
"commands": [
@@ -184,5 +180,33 @@
184180
"user unspam",
185181
"user update"
186182
]
183+
},
184+
"autoload": {
185+
"psr-4": {
186+
"": "src/",
187+
"WP_CLI\\": "src/WP_CLI"
188+
},
189+
"files": [
190+
"entity-command.php"
191+
]
192+
},
193+
"minimum-stability": "dev",
194+
"prefer-stable": true,
195+
"scripts": {
196+
"behat": "run-behat-tests",
197+
"behat-rerun": "rerun-behat-tests",
198+
"lint": "run-linter-tests",
199+
"phpcs": "run-phpcs-tests",
200+
"phpunit": "run-php-unit-tests",
201+
"prepare-tests": "install-package-tests",
202+
"test": [
203+
"@lint",
204+
"@phpcs",
205+
"@phpunit",
206+
"@behat"
207+
]
208+
},
209+
"support": {
210+
"issues": "https://github.com/wp-cli/entity-command/issues"
187211
}
188212
}

entity-command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
WP_CLI::add_command( 'network meta', 'Network_Meta_Command', array(
1818
'before_invoke' => function () {
1919
if ( !is_multisite() ) {
20-
WP_CLI::error( 'This is not a multisite install.' );
20+
WP_CLI::error( 'This is not a multisite installation.' );
2121
}
2222
}
2323
) );

0 commit comments

Comments
 (0)