Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#3866 closed defect (bug) (fixed)

Theme URI not returned by get_theme_data

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

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 20 years ago.

Download all attachments as: .zip

Change History (8)

#1 @Nazgul
20 years ago

  • Keywords has-patch added
  • Milestone 2.1.2 → 2.2

Patch based on given code attached.

#2 @ryan
20 years ago

  • Resolution → fixed
  • Status new → closed

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

#3 @ryan
20 years ago

  • Resolution fixed
  • Status closed → reopened

Wrong bug num. Reopen.

#4 @ryan
20 years ago

  • Resolution → fixed
  • Status reopened → closed

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

#5 @Nazgul
20 years ago

  • Keywords commit added
  • Resolution fixed
  • Status closed → reopened

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

#6 @markjaquith
20 years ago

Looks like an accident. Back it goes.

#7 @markjaquith
20 years ago

  • Resolution → fixed
  • Status reopened → closed

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

Note: See TracTickets for help on using tickets.