[wp-hackers] Theme framework proposal

Tong Zou xitongzou at gmail.com
Thu Apr 2 03:09:32 GMT 2009


My first draft is finished, so feel free to add feedback or critique!

http://www.blue-kaos.com/wp-content/uploads/2009/04/gsoc.pdf

Tong

On Mon, Mar 30, 2009 at 3:15 PM, scribu <scribu at gmail.com> wrote:

> On Mon, Mar 30, 2009 at 9:42 PM, Tong Zou <xitongzou at gmail.com> wrote:
>
> > Sure, dependencies would be nice. Do you have a good idea on how I could
> > implement or get started with a proposal like this? Help is appreciated.
>
>
> You could implement one or two functions, similar to
> register_activation_hook(), which would be called like this:
>
> register_theme_dependencies(array(
>     'foo-plugin' => '1.0'
>     'another_plugin' => '3.3'
> );
>
> register_plugin_dependencies(array(
>     'foo-plugin' => '1.0'
>     'another_plugin' => '3.3'
> );
>
> Basically, what those functions do is check all deps and add the plugins
> that are not already installed to a donwload queue. After that, the user is
> asked if he wants to install them.
>
> This shouldn't be too hard because WP already has automatic plugin
> installation.
>
> Of course, the devil is in the details.
>
> --
> http://scribu.net
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list