WordPress.org

Making WordPress.org

Opened 6 months ago

Closed 5 months ago

#4377 closed defect (fixed)

Meta Environment: bin/import-plugin.php should be able to create Plugin Posts

Reported by: dd32 Owned by: dd32
Milestone: Priority: normal
Component: Plugin Directory Keywords: has-patch
Cc:

Description

It's been pointed out that bin/import-plugin.php in the Meta Environment can only import plugins which already exist in it's Database, this isn't terribly useful for testing development environments.

The attached patch adds a --create flag which allows the script to create a post in the event it doesn't already exist.
This flag should never be set/used in production, as the posts should already exist there (from the upload process).

Attachments (1)

4377.diff (3.5 KB) - added by dd32 6 months ago.

Download all attachments as: .zip

Change History (2)

@dd32
6 months ago

#1 @dd32
5 months ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 8728:

Plugin Directory: Bin: Add an optional --create argument to the import script to aid debugging in the Meta Environment.

In production, the posts are created automatically upon upload, and this argument should never be needed (Unless someone manually creates the SVNs and then needs to import it to the directory).

Fixes #4377.

Note: See TracTickets for help on using tickets.