Skip to content

Commit 2350f61

Browse files
authored
Merge branch 'main' into copilot/add-data-export-erasure-commands
2 parents 93150c1 + fa8d791 commit 2350f61

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

features/site-empty.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: Empty a WordPress site of its data
66
And I run `wp option update uploads_use_yearmonth_folders 0`
77
And download:
88
| path | url |
9-
| {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg |
9+
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
1010
And a insert_link_data.sql file:
1111
"""
1212
INSERT INTO `wp_links` (`link_url`, `link_name`, `link_image`, `link_target`, `link_description`, `link_visible`, `link_owner`, `link_rating`, `link_rel`, `link_notes`, `link_rss`)
@@ -107,7 +107,7 @@ Feature: Empty a WordPress site of its data
107107
And I run `wp --url=example.com/foo option update uploads_use_yearmonth_folders 0`
108108
And download:
109109
| path | url |
110-
| {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg |
110+
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
111111

112112
When I run `wp --url=example.com/foo media import {CACHE_DIR}/large-image.jpg --post_id=1`
113113
Then the wp-content/uploads/sites/2/large-image.jpg file should exist

src/User_Meta_Command.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,6 @@ protected function delete_metadata( $object_id, $meta_key, $meta_value = '' ) {
341341
private function replace_login_with_user_id( $args ) {
342342
$user = $this->fetcher->get_check( $args[0] );
343343
$args[0] = $user->ID;
344-
// TODO: Improve method type eventually.
345-
// Related: https://github.com/phpstan/phpstan/issues/8438.
346-
// @phpstan-ignore return.type
347344
return $args;
348345
}
349346
}

0 commit comments

Comments
 (0)