Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only works from WordPress.org, not from GitHub #1

Closed
Japh opened this issue Apr 6, 2013 · 10 comments
Closed

Only works from WordPress.org, not from GitHub #1

Japh opened this issue Apr 6, 2013 · 10 comments

Comments

@Japh
Copy link
Contributor

Japh commented Apr 6, 2013

I've had a brief look at the plugin, but for some reason, it only works when installed via the directory, not manually via GitHub. The files' contents are exactly the same, even the permissions, but the screens look different and the phpinfo doesn't work.

Anyone else seeing this?

@Japh
Copy link
Contributor Author

Japh commented Apr 6, 2013

(I may be doing something obvious and dumb. I hope I am, as that's easy to fix, and if so I apologise!)

@arcware
Copy link
Collaborator

arcware commented Apr 7, 2013

Hi Japh - How did you deploy the plugin folder/files that you pulled from GitHub?

@Japh
Copy link
Contributor Author

Japh commented Apr 7, 2013

I've found what went wrong. The plugin directory name when cloned from GitHub ends up being "WordPress-SysInfo", but the path is hardcoded into the plugin as "sysinfo". If I rename the directory after cloning, it works fine.

@Japh Japh closed this as completed Apr 7, 2013
@Japh
Copy link
Contributor Author

Japh commented Apr 7, 2013

Closed the ticket, but ideally the path wouldn't be hardcoded, surely?

@Japh
Copy link
Contributor Author

Japh commented Apr 8, 2013

I'm curious, why use this:

plugins_url( 'sysinfo/css/sysinfo.css' )

Rather than this:

plugins_url( '/css/sysinfo.css', __FILE__ )

@arcware
Copy link
Collaborator

arcware commented Apr 8, 2013

I'm not sure why I did it that way to be honest, especially since I've never done it that way in any other plugin I've written. Not sure what I was thinking. At any rate, thanks for pointing that out and I'll get the change made.

@Japh
Copy link
Contributor Author

Japh commented Apr 8, 2013

Haha! I've only seen it this way once before, myself. I believe in the WordPress Plugin Boilerplate, which I assume this is based on?

@arcware
Copy link
Collaborator

arcware commented Apr 8, 2013

Ah, yes, you're right, that's probably where it came from. Since Tom was involved I wanted to use the WP Plugin Boilerplate (or at least pieces from it). So we'll just blame him :-)

@Japh
Copy link
Contributor Author

Japh commented Apr 8, 2013

LOL ;)

Perhaps @tommcfarlin can tell us why he's done it that way in the boilerplate?

@tommcfarlin
Copy link
Contributor

It's done that way simply as a carry over from a couple of years of lack of experience. I've no shame in admitting that :).

It'll be something that's fixed in 2.0 of the Boilerplates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants