Making WordPress.org


Ignore:
Timestamp:
02/17/2015 11:18:19 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Use main query instead of Themes API for server output.

  • Can now deal properly with /browse/*/ URL structure.
  • Adds single theme navigation.
  • Adds Photon support for server output.
  • Brings single theme view closer to melchoyce's mockups.

See #745.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r1225 r1274  
    302302        usort( $screen_shots, array( $this, 'sort_by_string_length' ) );
    303303
    304         $screen_shot                  = array_pop( $screen_shots );
    305         $this->theme->screen_shot_ext = pathinfo( $screen_shot, PATHINFO_EXTENSION );
    306 
    307         return (bool) $screen_shot;
     304        $this->theme->screen_shot = array_pop( $screen_shots );
     305
     306        return (bool) $this->theme->screen_shot;
    308307    }
    309308
     
    449448[[TicketQuery(format=table, keywords=~theme-{$this->theme->get_stylesheet()}, col=id|summary|status|resolution|owner)]]
    450449
    451 [[Image(https://themes.svn.wordpress.org/{$this->theme->get_stylesheet()}/{$this->theme->display( 'Version' )}/screenshot.{$this->theme->screen_shot_ext}, width=640)]]
     450[[Image(https://themes.svn.wordpress.org/{$this->theme->get_stylesheet()}/{$this->theme->display( 'Version' )}/{$this->theme->screen_shot}, width=640)]]
    452451TICKET;
    453452    }
     
    532531            '_upload_date' => $upload_date,
    533532            '_ticket_id'   => $ticket_id,
     533            '_screen_shot' => $this->theme->screen_shot,
    534534        );
    535535
Note: See TracChangeset for help on using the changeset viewer.