Page MenuHomePhabricator

Plugin skeleton
Closed, ResolvedPublic

Assigned To
Authored By
SBisson
Apr 7 2021, 10:38 AM
Referenced Files
F34407546: image.png
Apr 19 2021, 1:34 PM
F34400158: image.png
Apr 15 2021, 1:19 PM
F34400164: image.png
Apr 15 2021, 1:19 PM
F34400160: image.png
Apr 15 2021, 1:19 PM
F34400018: image.png
Apr 15 2021, 11:01 AM
F34400029: image.png
Apr 15 2021, 11:01 AM

Description

Acceptance Criteria

  1. Github repo: wikimedia/wikipediapreview-wordpress
    1. License: MIT
  2. Plugin name: "Wikipedia Preview"
  3. Plugin (initial) description: "tbd"
  4. When downloaded into wp-content/plugins, the plugin can be activated without errors

Related Objects

StatusSubtypeAssignedTask
ResolvedSBisson
ResolvedSBisson

Event Timeline

SBisson triaged this task as Medium priority.Apr 7 2021, 3:09 PM
SBisson moved this task from Backlog to Dev on the Inuka-Team (Kanban) board.
Jpita subscribed.

where can I find

wp-content/plugins

?

inside Local installation I don't see any of those folders

image.png (1,392×372 px, 126 KB)

I tried creating one folder with the repo contents but it doesn't show on Local
image.png (1,162×882 px, 50 KB)

Try ~/Local\ Sites/<name of your wordpress site>/wp-content/plugins

Try ~/Local\ Sites/<name of your wordpress site>/wp-content/plugins

didn't have any created.
created it and added the folder and content.

image.png (1,096×254 px, 45 KB)

this is what I see in the plugins
image.png (828×528 px, 25 KB)

still not appearing.
what am I missing?

UPDATE:
had to zip the repo and add new plugin using the admin panel, now I see it

image.png (658×560 px, 37 KB)

had to zip the repo and add new plugin using the admin panel, now I see it

We shouldn't have to do this. I think @hueitan and @eamedina were able to make it work by cloning the repo. Can you confirm?

Which versions of WordPress, php, mysql did you use for your local site?

I clone the repo, and zip the folder, then upload.

had to zip the repo and add new plugin using the admin panel, now I see it

We shouldn't have to do this. I think @hueitan and @eamedina were able to make it work by cloning the repo. Can you confirm?

my bad, please ignore my previous comment;
Yes, I can confirm it works by cloning the repo.

@Jpita , your directory is wrong, the correct one is /Local Sites/<Local Site Name>/app/public/wp-content/plugins`

Confirming I was also able to get plugin on admin dashboard by cloning it directly to /Local Sites/<Local Site Name>/app/public/wp-content/plugins

image.png (2,282×898 px, 174 KB)

same, I was also able to get plugin by cloning it.