Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#18591 closed enhancement (fixed)

mytheme-child does not work when installing a new blog

Reported by: minimarket's profile minimarket Owned by: ryan's profile ryan
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.3
Component: Themes Keywords: has-patch commit
Focuses: Cc:

Description

If I choose own theme when installing a blog

define ('WP_DEFAULT_THEME', 'mytheme');

then it works, but if I choose child theme

define ('WP_DEFAULT_THEME', 'mytheme-child');

then I must go to Appearance -> Themes to choose it manually. She was not taken up automatically.

Attachments (2)

18591.patch (841 bytes) - added by SergeyBiryukov 13 years ago.
18591.2.patch (849 bytes) - added by SergeyBiryukov 13 years ago.
Added cast to array

Download all attachments as: .zip

Change History (12)

#1 @minimarket
13 years ago

  • Keywords needs-patch added
  • Type changed from defect (bug) to enhancement

#2 @dd32
13 years ago

Source reference for those interested: populate_options()

Depending on the state of the loading at that point in time, we could query for the theme through get_themes() and extract the template from there, Alternatively, we could add a new define for the Template if we're unable to query at that point in time.

#3 follow-up: @SergeyBiryukov
13 years ago

  • Keywords has-patch added; needs-patch removed

get_themes() works fine there.

#4 in reply to: ↑ 3 @minimarket
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Replying to SergeyBiryukov:

get_themes() works fine there.

Thank you! The patch is really working fine.

#5 follow-up: @dd32
13 years ago

  • Component changed from General to Themes
  • Resolution fixed deleted
  • Status changed from closed to reopened

Tickets are marked as fixed when a change is made to the WordPress codebase, the patch here still needs to be committed before the ticket will be marked as such.

#6 in reply to: ↑ 5 @minimarket
13 years ago

Replying to dd32:

Tickets are marked as fixed when a change is made to the WordPress codebase, the patch here still needs to be committed before the ticket will be marked as such.

Oops.. Sorry, This is my first ticket...

@SergeyBiryukov
13 years ago

Added cast to array

#7 @SergeyBiryukov
13 years ago

  • Milestone changed from Awaiting Review to 3.3

Moving to 3.3 for consideration.

#8 @DrewAPicture
13 years ago

Tested 18591.2.patch on trunk, works as advertised.

Last edited 13 years ago by DrewAPicture (previous) (diff)

#9 @nacin
13 years ago

  • Keywords commit added

#10 @ryan
13 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from reopened to closed

In [19249]:

Properly handle child themes for WP_DEFAULT_THEME. Props SergeyBiryukov. fixes #18591

Note: See TracTickets for help on using tickets.