[theme-reviewers] WPTRT best practice: PHP vs. JS

Otto otto at ottodestruct.com
Tue Aug 30 15:58:50 UTC 2011


I didn't know there was one in JS.

I'd say PHP is fine. However I'd also recommend using failsafe code,
such as if (!class_exists('Markdown')) and similar to load the
libraries, since there may be conflicts with plugins including the
same library.

-Otto



On Tue, Aug 30, 2011 at 10:47 AM, Doug Stewart <zamoose at gmail.com> wrote:
> Howdy all,
> Which of the following is more likely to pass WPTRT muster:
>
> 1) Markdown support implemented in PHP
> 2 Markdown support implemented in JS
>
> I'm looking to display my README.markdown internal to the options page
> and can either implement it in PHP or JS. Which would be the
> least-friction option?
>
> --
> -Doug
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>


More information about the theme-reviewers mailing list