WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#3866 closed defect (bug) (fixed)

Theme URI not returned by get_theme_data

Reported by: TomK32 Owned by:
Milestone: 2.2 Priority: normal
Severity: minor Version: 2.1.1
Component: Template Keywords: has-patch commit
Focuses: Cc:

Description

It's getting grabbed from the style.css but it's not in the return array.

return array( 'Name' => $name, 'Title' => $theme, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1], 'Status' => $status );

should be:

return array( 'Name' => $name, 'URI' => trim($theme_uri[1]), 'Title' => $theme, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1], 'Status' => $status );

Attachments (1)

3866.diff (756 bytes) - added by Nazgul 9 years ago.

Download all attachments as: .zip

Change History (8)

@Nazgul9 years ago

comment:1 @Nazgul9 years ago

  • Keywords has-patch added
  • Milestone changed from 2.1.2 to 2.2

Patch based on given code attached.

comment:2 @ryan8 years ago

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

(In [5004]) get_archives query filters from westi. fixes #3866

comment:3 @ryan8 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Wrong bug num. Reopen.

comment:4 @ryan8 years ago

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

(In [5006]) Return theme uri in theme data. Props nazgul. fixes #3866

comment:5 @Nazgul8 years ago

  • Keywords commit added
  • Resolution fixed deleted
  • Status changed from closed to reopened

These changes where (accidentally?) reverted by [5026].

comment:6 @markjaquith8 years ago

Looks like an accident. Back it goes.

comment:7 @markjaquith8 years ago

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

(In [5028]) [5006] didn't take. props Nazgul for the spot. fixes #3866

Note: See TracTickets for help on using tickets.