[wp-trac] [WordPress Trac] #50199: Theme Editor: Remove unused $has_templates boolean

WordPress Trac noreply at wordpress.org
Mon May 18 04:59:32 UTC 2020


#50199: Theme Editor: Remove unused $has_templates boolean
----------------------------+----------------------------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  5.5
Component:  Themes          |    Version:
 Severity:  trivial         |   Keywords:  needs-patch good-first-bug
  Focuses:  administration  |
----------------------------+----------------------------------------
 In `wp-admin/theme-editor.php`, the `$has_templates` boolean is a remnant
 from when the Theme Editor still had the "Templates" heading and is unused
 in the current logic.

 Some history:
 * [20315]: `$has_templates` introduced.
 * [35180]: `$has_templates` moved around.
 * [41851]: "Templates" heading removed.
 * [42155]: `$has_templates` made redundant by `&& $theme->parent()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50199>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list