wp-prep icon indicating copy to clipboard operation
wp-prep copied to clipboard

Version 1.1.0

Open jaredatch opened this issue 12 years ago • 3 comments

For version 1.1.0 we are going to try and clean up a few things.

  • add ability to delete new WP themes ie TwentyTwelve/Thirteen
  • update CSS styles to match the current WP installer
  • refactor code into more functions, clean things up in general. @GaryJones was nice enough to whip up a gist which much of this will be based on. https://gist.github.com/GaryJones/5053004

I don't have a time line for this as I'm pretty busy so it will just be as I get time. Feel free to submit some pull requests if you want to get started on addressing any of this (or other features you think are helpful).

jaredatch avatar Feb 28 '13 00:02 jaredatch

My pull from a few months ago (#5) took care of the new theme. Code is probably shitty, though it works.

kraftbj avatar Feb 28 '13 00:02 kraftbj

From my gist - the final page rendering should be moved out of global scope and into a function, which can then be called after run(). I'd probably also split the page rendering down into logical pieces - pulling the CSS section into it's own function (even if it's just one returned string) just means that edits to match future WP installer changes are all contained in that one function; the content (options form, password form, success links) could also be pulled out into their own functions and a wrapping show_content() function.

New core theme preparations can be done by copying L80 to the next line and tweaking the theme name - no new functions necessary.

I stopped amending at line 233, so things like the form field names would need updating to match the $config keys etc. The gist code itself is completely untested, so it may well have syntax errors, let alone runtime logic errors.

GaryJones avatar Feb 28 '13 00:02 GaryJones

:beers: :thumbsup:

jaredatch avatar Feb 28 '13 00:02 jaredatch