[theme-reviewers] Child themes discussion

Philip M. Hofer (Frumph) philip at frumph.net
Sat Jan 22 18:12:03 UTC 2011


get_stylesheet_ - child check first, then parent

get_template_  - parent only


  ----- Original Message ----- 
  From: Edward Caissie 
  To: theme-reviewers at lists.wordpress.org 
  Sent: Saturday, January 22, 2011 10:01 AM
  Subject: Re: [theme-reviewers] Child themes discussion


  IIRC (just heading out the door) ... 

  _template_ calls the parent (first, or current) whereas _stylesheet_ calls current (first?) only


  Cais.


  On Sat, Jan 22, 2011 at 12:50 PM, Chip Bennett <chip at chipbennett.net> wrote:

    Again: it *may*, or *may not*, depending on context.


    (Or is it more cut-and-dry than I think it is?)


    Chip



    On Sat, Jan 22, 2011 at 11:46 AM, Simon Prosser <pross at pross.org.uk> wrote:

      On 01/22/11 17:44, Chip Bennett wrote:
      > No, that's all good. It would be difficult for Theme Check to determine the
      > appropriateness of get_template_ vs get_stylesheet_ within the Theme itself,
      > because appropriateness will depend on context: would a Child Theme need to
      > access its own files, or the Parent Theme's files?

      ok, so what about a check for get_template_(uri|directory) and if found
      tell the user his theme will not support child themes

      --

      My Blog: http://www.pross.org.uk/
      Plugins: http://www.pross.org.uk/plugins/
      Themes : http://wordpress.org/extend/themes/profile/pross
      _______________________________________________
      theme-reviewers mailing list
      theme-reviewers at lists.wordpress.org
      http://lists.wordpress.org/mailman/listinfo/theme-reviewers




    _______________________________________________
    theme-reviewers mailing list
    theme-reviewers at lists.wordpress.org
    http://lists.wordpress.org/mailman/listinfo/theme-reviewers






------------------------------------------------------------------------------


  _______________________________________________
  theme-reviewers mailing list
  theme-reviewers at lists.wordpress.org
  http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110122/c0821ea6/attachment.htm>


More information about the theme-reviewers mailing list