<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[1315] sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory: Theme Directory: Set svn:eol-style=native on all files.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/1315">1315</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/1315","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>dd32</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-02-25 03:09:57 +0000 (Wed, 25 Feb 2015)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Theme Directory: Set svn:eol-style=native on all files.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryclassrepopackagephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-repo-package.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryclasswporgthemesrepopackagephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectorythemedirectoryphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php</a></li>
</ul>
<h3>Property Changed</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryclassrepopackagephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-repo-package.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryclasswporgthemesrepopackagephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryclasswporgthemesuploadphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectorythemedirectoryphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryuploadphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryclassrepopackagephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-repo-package.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-repo-package.php 2015-02-25 00:40:01 UTC (rev 1314)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-repo-package.php 2015-02-25 03:09:57 UTC (rev 1315)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,36 +1,36 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-
-/**
- * Class Repo_Package
- *
- * Base class for interacting with posts of the repo package type.
- */
-class Repo_Package {
-
- /**
- * Holds a WP_Post object representing this post.
- *
- * @var WP_Post
- */
- public $wp_post;
-
- /**
- * Construct a new Package for the given post ID or object.
- *
- * @param WP_Post|int $post
- */
- public function __construct( $post = 0 ) {
- $this->init( $post );
- }
-
- /**
- * Set up the post the for the given ID or object.
- *
- * @param WP_Post|int $post
- */
- public function init( $post = 0 ) {
- if ( $post ) {
- $this->wp_post = get_post( $post );
- }
- }
-}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+
+/**
+ * Class Repo_Package
+ *
+ * Base class for interacting with posts of the repo package type.
+ */
+class Repo_Package {
+
+ /**
+ * Holds a WP_Post object representing this post.
+ *
+ * @var WP_Post
+ */
+ public $wp_post;
+
+ /**
+ * Construct a new Package for the given post ID or object.
+ *
+ * @param WP_Post|int $post
+ */
+ public function __construct( $post = 0 ) {
+ $this->init( $post );
+ }
+
+ /**
+ * Set up the post the for the given ID or object.
+ *
+ * @param WP_Post|int $post
+ */
+ public function init( $post = 0 ) {
+ if ( $post ) {
+ $this->wp_post = get_post( $post );
+ }
+ }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-repo-package.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryclasswporgthemesrepopackagephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php 2015-02-25 00:40:01 UTC (rev 1314)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php 2015-02-25 03:09:57 UTC (rev 1315)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,75 +1,75 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-
-/**
- * Class WPORG_Themes_Repo_Package
- *
- * The WPORG_Themes_Repo_Package class extends the base package class for theme-specific info.
- * You can create one with new and pass it either a post or post id.
- */
-class WPORG_Themes_Repo_Package extends Repo_Package {
-
- /**
- * Returns the screen shot URL for a theme.
- *
- * @return string
- */
- public function screen_shot_url() {
- $screen = 'screenshot.png';
- $version = $this->latest_version();
-
- if ( ! empty( $this->wp_post->_screen_shot[ $version ] ) ) {
- $screen = $this->wp_post->_screen_shot[ $version ];
- }
-
- return sprintf( 'https://i0.wp.com/themes.svn.wordpress.org/%1$s/%2$s/%3$s',
- $this->wp_post->post_name,
- $version,
- $screen
- );
- }
-
- /**
- * Returns the latest version number for a theme.
- *
- * The latest published version, or the latest version for unpublished themes.
- *
- * @return int|string
- */
- public function latest_version() {
- $status = get_post_meta( $this->wp_post->ID, '_status', true );
- uksort( $status, 'version_compare' );
-
- // Find if there is a live version, and use that one.
- $latest = array_search( 'live', $status );
-
- // If none, just get the latest version.
- if ( ! $latest ) {
- $versions = array_keys( $status );
- $latest = array_pop( $versions );
- }
-
- return $latest;
- }
-
- /**
- * Magic getter for a few handy variables.
- *
- * @param string $name
- * @return int|string
- */
- public function __get( $name ) {
- $version = $this->latest_version();
- switch ( $name ) {
- case 'version' :
- return $version;
- case 'theme-url' :
- return $this->wp_post->_theme_url[ $version ];
- case 'author-url' :
- return $this->wp_post->_author_url[ $version ];
- case 'ticket' :
- return $this->wp_post->_ticket_id[ $version ];
- default:
- return $this->wp_post->$name;
- }
- }
-}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+
+/**
+ * Class WPORG_Themes_Repo_Package
+ *
+ * The WPORG_Themes_Repo_Package class extends the base package class for theme-specific info.
+ * You can create one with new and pass it either a post or post id.
+ */
+class WPORG_Themes_Repo_Package extends Repo_Package {
+
+ /**
+ * Returns the screen shot URL for a theme.
+ *
+ * @return string
+ */
+ public function screen_shot_url() {
+ $screen = 'screenshot.png';
+ $version = $this->latest_version();
+
+ if ( ! empty( $this->wp_post->_screen_shot[ $version ] ) ) {
+ $screen = $this->wp_post->_screen_shot[ $version ];
+ }
+
+ return sprintf( 'https://i0.wp.com/themes.svn.wordpress.org/%1$s/%2$s/%3$s',
+ $this->wp_post->post_name,
+ $version,
+ $screen
+ );
+ }
+
+ /**
+ * Returns the latest version number for a theme.
+ *
+ * The latest published version, or the latest version for unpublished themes.
+ *
+ * @return int|string
+ */
+ public function latest_version() {
+ $status = get_post_meta( $this->wp_post->ID, '_status', true );
+ uksort( $status, 'version_compare' );
+
+ // Find if there is a live version, and use that one.
+ $latest = array_search( 'live', $status );
+
+ // If none, just get the latest version.
+ if ( ! $latest ) {
+ $versions = array_keys( $status );
+ $latest = array_pop( $versions );
+ }
+
+ return $latest;
+ }
+
+ /**
+ * Magic getter for a few handy variables.
+ *
+ * @param string $name
+ * @return int|string
+ */
+ public function __get( $name ) {
+ $version = $this->latest_version();
+ switch ( $name ) {
+ case 'version' :
+ return $version;
+ case 'theme-url' :
+ return $this->wp_post->_theme_url[ $version ];
+ case 'author-url' :
+ return $this->wp_post->_author_url[ $version ];
+ case 'ticket' :
+ return $this->wp_post->_ticket_id[ $version ];
+ default:
+ return $this->wp_post->$name;
+ }
+ }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><span class="cx" style="display: block; padding: 0 10px">Index: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
</span><span class="cx" style="display: block; padding: 0 10px">===================================================================
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php 2015-02-25 00:40:01 UTC (rev 1314)
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php 2015-02-25 03:09:57 UTC (rev 1315)
</ins><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryclasswporgthemesuploadphp"></a>
<div class="propset"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Property changes: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectorythemedirectoryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php 2015-02-25 00:40:01 UTC (rev 1314)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php 2015-02-25 03:09:57 UTC (rev 1315)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,407 +1,407 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/*
-Plugin Name: Theme Repository
-Plugin URI:
-Description: Transforms a WordPress site in The Official Theme Directory.
-Version: 0.1
-Author: wordpressdotorg
-Author URI: http://wordpress.org/
-Text Domain: wporg-themes
-License: GPLv2
-License URI: http://opensource.org/licenses/gpl-2.0.php
-*/
-
-// Load base repo package.
-include_once plugin_dir_path( __FILE__ ) . 'class-repo-package.php';
-
-// Load theme repo package.
-include_once plugin_dir_path( __FILE__ ) . 'class-wporg-themes-repo-package.php';
-
-// Load uploader.
-include_once plugin_dir_path( __FILE__ ) . 'upload.php';
-
-register_activation_hook( __FILE__, 'flush_rewrite_rules' );
-register_deactivation_hook( __FILE__, 'flush_rewrite_rules' );
-
-/**
- * Initialize.
- */
-function wporg_themes_init() {
- load_plugin_textdomain( 'wporg-themes' );
-
- $labels = array(
- 'name' => __( 'Packages', 'wporg-themes' ),
- 'singular_name' => __( 'Package', 'wporg-themes' ),
- 'add_new' => __( 'Add New', 'wporg-themes' ),
- 'add_new_item' => __( 'Add New Package', 'wporg-themes' ),
- 'edit_item' => __( 'Edit Package', 'wporg-themes' ),
- 'new_item' => __( 'New Package', 'wporg-themes' ),
- 'view_item' => __( 'View Package', 'wporg-themes' ),
- 'search_items' => __( 'Search Packages', 'wporg-themes' ),
- 'not_found' => __( 'No packages found', 'wporg-themes' ),
- 'not_found_in_trash' => __( 'No packages found in Trash', 'wporg-themes' ),
- 'parent_item_colon' => __( 'Parent Package:', 'wporg-themes' ),
- 'menu_name' => __( 'Packages', 'wporg-themes' ),
- );
-
- $args = array(
- 'labels' => $labels,
- 'hierarchical' => false,
- 'description' => __( 'A package', 'wporg-themes' ),
- 'supports' => array( 'title', 'editor', 'author', 'custom-fields', 'page-attributes' ),
- 'taxonomies' => array( 'category', 'post_tag', 'type' ),
- 'public' => true,
- 'show_ui' => true,
- 'show_in_menu' => true,
- 'show_in_nav_menus' => false,
- 'publicly_queryable' => true,
- 'exclude_from_search' => false,
- 'has_archive' => true,
- 'query_var' => true,
- 'can_export' => true,
- 'rewrite' => array( 'slug' => '/' ),
- 'capability_type' => 'post',
- );
-
- // This is the base generic type for repo plugins.
- if ( ! post_type_exists( 'repopackage' ) ) {
- register_post_type( 'repopackage', $args );
- }
-
- add_rewrite_tag( '%browse%', '(featured|popular|new)' );
-
- // Single themes.
- add_rewrite_rule( '(.?.+?)(/[0-9]+)?/?$', 'index.php?post_type=repopackage&name=$matches[1]', 'top' );
-
- // Browse views.
- add_rewrite_rule( 'browse/(featured|popular|new)/?$', 'index.php?post_type=repopackage&browse=$matches[1]', 'top' );
-
- // Paginated browse views.
- add_rewrite_rule( 'browse/(featured|popular|new)/page/?([0-9]{1,})/?$', 'index.php?post_type=repopackage&browse=$matches[1]&paged=$matches[2]', 'top' );
-}
-add_action( 'init', 'wporg_themes_init' );
-
-/**
- * Adjusts query to account for custom views.
- *
- * @param WP_Query $wp_query
- * @return WP_Query
- */
-function wporg_themes_set_up_query( $wp_query ) {
- if ( is_admin() || in_array( $wp_query->get( 'pagename' ), array( 'upload', 'commercial', 'getting-started' ) ) || 'nav_menu_item' == $wp_query->get( 'post_type' ) ) {
- return $wp_query;
- }
-
- $wp_query->set( 'post_type', 'repopackage' );
-
- if ( $wp_query->is_home() ) {
- $wp_query->set( 'browse', 'featured' );
- }
-
- if ( $wp_query->get( 'browse' ) ) {
- switch ( $wp_query->get( 'browse' ) ) {
- case 'featured':
- $wp_query->set( 'paged', 1 );
- $wp_query->set( 'posts_per_page', 15 );
- $wp_query->set( 'post__in', (array) wp_cache_get( 'browse-popular', 'theme-info' ) );
- break;
-
- case 'popular':
- add_filter( 'posts_clauses', 'wporg_themes_popular_posts_clauses' );
- break;
-
- case 'new':
- // Nothing to do here.
- break;
- }
- }
-
- return $wp_query;
-}
-add_filter( 'pre_get_posts', 'wporg_themes_set_up_query' );
-
-/**
- * Adjusts the amount of found posts when browsing featured themes.
- *
- * @param string $found_posts
- * @param WP_Query $wp_query
- * @return string
- */
-function wporg_themes_found_posts( $found_posts, $wp_query ) {
- if ( $wp_query->is_main_query() && 'featured' === $wp_query->get( 'browse' ) ) {
- $found_posts = $wp_query->get( 'posts_per_page' );
- }
-
- return $found_posts;
-}
-add_filter( 'found_posts', 'wporg_themes_found_posts', 10, 2 );
-
-/**
- * Filters SQL clauses, to set up a query for the most popular themes based on downloads.
- *
- * @param array $clauses
- * @return array
- */
-function wporg_themes_popular_posts_clauses( $clauses ) {
- global $wpdb;
-
- $week = gmdate( 'Y-m-d', strtotime( 'last week' ) );
- $clauses['where'] .= " AND s.stamp >= '{$week}'";
- $clauses['groupby'] = "{$wpdb->posts}.ID";
- $clauses['join'] = "JOIN bb_themes_stats AS s ON ( {$wpdb->posts}.post_name = s.slug )";
- $clauses['orderby'] = 'week_downloads DESC';
- $clauses['fields'] .= ', SUM(s.downloads) AS week_downloads';
-
- return $clauses;
-}
-
-/**
- * Capability mapping for custom caps.
- *
- * @param array $caps Returns the user's actual capabilities.
- * @param string $cap Capability name.
- * @param int $user_id The user ID.
- * @param array $args Adds the context to the cap. Typically the object ID.
- * @return array
- */
-function wporg_themes_map_meta_cap( $caps, $cap, $user_id, $args ) {
- switch ( $cap ) {
- case 'delete_categories':
- case 'edit_categories':
- case 'manage_categories':
-
- if ( ! is_super_admin() ) {
- $caps[] = 'do_not_allow';
- }
- break;
- }
-
- return $caps;
-}
-add_filter( 'map_meta_cap', 'wporg_themes_map_meta_cap', 10, 4 );
-
-/**
- * Checks if ther current users is a super admin before allowing terms to be added.
- *
- * @param string $term The term to add or update.
- * @return string|WP_Error The term to add or update or WP_Error on failure.
- */
-function wporg_themes_pre_insert_term( $term ) {
- if ( ! is_super_admin() ) {
- $term = new WP_Error( 'not-allowed', __( 'You are not allowed to add terms.', 'wporg-themes' ) );
- }
-
- return $term;
-}
-add_filter( 'pre_insert_term', 'wporg_themes_pre_insert_term' );
-
-/**
- * Returns the status of a theme's version.
- *
- * @param int $post_id Post ID.
- * @param string $version The theme version to get the status for.
- * @return bool|string The version-specific meta value or False on failure.
- */
-function wporg_themes_get_version_status( $post_id, $version ) {
- $status = false;
- $meta = (array) get_post_meta( $post_id, '_status', true );
-
- if ( ! empty( $meta[ $version ] ) ) {
- $status = $meta[ $version ];
- }
-
- return $status;
-}
-
-/**
- * Handles updating the status of theme versions.
- *
- * @param int $post_id Post ID.
- * @param string $current_version The theme version to update.
- * @param string $new_status The status to update the current version to.
- * @return int|bool Meta ID if the key didn't exist, true on successful update,
- * false on failure.
- */
-function wporg_themes_update_version_status( $post_id, $current_version, $new_status ) {
- $meta = get_post_meta( $post_id, '_status', true );
-
- switch ( $new_status ) {
- // There can only be one version with these statuses:
- case 'new':
- case 'live':
- // Discard all previous versions with that status.
- foreach ( array_keys( $meta, $new_status ) as $version ) {
- if ( version_compare( $version, $current_version, '<' ) ) {
- $meta[ $version ] = 'old';
- }
- }
-
- // Mark the current version appropriately.
- $meta[ $current_version ] = $new_status;
- break;
-
- // Marking a version as Old, does not have repercussions on other versions.
- case 'old':
- $meta[ $current_version ] = $new_status;
- break;
- }
-
- return update_post_meta( $post_id, '_status', $meta );
-}
-
-/**
- * Use theme screen shot for post thumbnails.
- *
- * @param string $html
- * @param int $post_id
- * @return string
- */
-function wporg_themes_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size ) {
- $post = get_post( $post_id );
- if ( 'repopackage' == $post->post_type ) {
- $theme = new WPORG_Themes_Repo_Package( $post );
- $src = add_query_arg( array( 'w' => $size, 'strip' => 'all' ), $theme->screen_shot_url() );
-
- $html = '<img src="' . esc_url( $src ) . '"/>';
- }
-
- return $html;
-}
-add_filter( 'post_thumbnail_html', 'wporg_themes_post_thumbnail_html', 10, 5 );
-
-
-/**
- * Prevents repopackages from being deleted.
- *
- * @param int $post_id
- */
-function wporg_theme_no_delete_repopackage( $post_id ) {
- if ( 'repopackage' == get_post( $post_id )->post_type ) {
- wp_die( __( 'Repopackages can not be deleted.', 'wporg-themes' ), '', array(
- 'back_link' => true,
- ) );
- }
-}
-add_filter( 'before_delete_post', 'wporg_theme_no_delete_repopackage' );
-
-/**
- * Better view in the Packages screen.
- *
- * @param array $columns
- * @return array
- */
-function wporg_themes_repopackage_columns( $columns ) {
- $columns = array_merge( $columns, array(
- 'version' => __( 'Version', 'wporg-themes' ),
- 'theme-url' => __( 'Theme URL', 'wporg-themes' ),
- 'author-url' => __( 'Author URL', 'wporg-themes' ),
- 'ticket' => __( 'Ticket ID', 'wporg-themes' ),
- ) );
- unset( $columns['categories'] );
-
- return $columns;
-}
-add_filter( 'manage_repopackage_posts_columns', 'wporg_themes_repopackage_columns' );
-
-/**
- * Custom columns for the admin screen.
- *
- * @param string $column
- * @param int $post_id
- */
-function wporg_themes_repopackage_custom_columns( $column, $post_id ) {
- $theme = new WPORG_Themes_Repo_Package( $post_id );
-
- switch ( $column ) {
- case 'ticket':
- if ( $theme->ticket ) {
- printf( '<a href="%1$s">%2$s</a>', esc_url( 'https://themes.trac.wordpress.org/ticket/' . $theme->ticket ), '#' . $theme->ticket );
- }
- break;
- case 'theme-url':
- case 'author-url':
- echo make_clickable( $theme->$column );
- break;
- default:
- echo $theme->$column;
- }
-}
-add_action( 'manage_repopackage_posts_custom_column', 'wporg_themes_repopackage_custom_columns', 10, 2 );
-
-/**
- * Meta box to choose which version is live.
- */
-function wporg_themes_add_meta_box() {
- add_meta_box(
- 'wporg_themes_versions',
- __( 'Theme Versions', 'wporg-themes' ),
- 'wporg_themes_meta_box_callback',
- 'repopackage',
- 'side',
- 'high'
- );
-}
-add_action( 'add_meta_boxes', 'wporg_themes_add_meta_box' );
-
-/**
- * Displays the content of the `_status` meta box.
- *
- * @param WP_Post $post
- */
-function wporg_themes_meta_box_callback( $post ) {
- $versions = get_post_meta( $post->ID, '_status', true );
-
- if ( empty( $versions ) ) {
- return;
- }
-
- // Add an nonce field so we can check for it later.
- wp_nonce_field( 'wporg_themes_meta_box', 'wporg_themes_meta_box_nonce' );
-
- foreach ( $versions as $version => $status ) :
- ?>
- <p><?php echo $version; ?> -
- <select name="wporg_themes_status[<?php echo base64_encode( $version ); // base64 because version numbers don't work so well as parts of keys ?>]">
- <option value="new" <?php selected( $status, 'new' ); ?>><?php esc_html_e( 'New', 'wporg-themes' ); ?></option>
- <option value="live" <?php selected( $status, 'live' ); ?>><?php esc_html_e( 'Live', 'wporg-themes' ); ?></option>
- <option value="old" <?php selected( $status, 'old' ); ?>><?php esc_html_e( 'Old', 'wporg-themes' ); ?></option>
- </select>
- </p>
- <?php
- endforeach;
-}
-
-/**
- * Sanitizes and saves meta box settings.
- *
- * @param int $post_id
- */
-function wporg_themes_save_meta_box_data( $post_id ) {
- // All the safety checks.
- if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
- return;
- }
- if ( ! isset( $_POST['wporg_themes_meta_box_nonce'] ) ) {
- return;
- }
- if ( ! wp_verify_nonce( $_POST['wporg_themes_meta_box_nonce'], 'wporg_themes_meta_box' ) ) {
- return;
- }
- // TODO should this be a post type specific capability?
- if ( ! current_user_can( 'edit_post', $post_id ) ) {
- return;
- }
-
- $new_status = array();
- foreach ( $_POST['wporg_themes_status'] as $version => $status ) {
- // We could check of the passed status is valid, but wporg_themes_update_version_status() handles that beautifully.
- $new_status[ base64_decode( $version ) ] = $status;
- }
- uksort( $new_status, 'version_compare' );
-
- // Update the statuses.
- foreach ( $new_status as $version => $status ) {
- wporg_themes_update_version_status( $post_id, $version, $status );
- }
-}
-add_action( 'save_post', 'wporg_themes_save_meta_box_data' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/*
+Plugin Name: Theme Repository
+Plugin URI:
+Description: Transforms a WordPress site in The Official Theme Directory.
+Version: 0.1
+Author: wordpressdotorg
+Author URI: http://wordpress.org/
+Text Domain: wporg-themes
+License: GPLv2
+License URI: http://opensource.org/licenses/gpl-2.0.php
+*/
+
+// Load base repo package.
+include_once plugin_dir_path( __FILE__ ) . 'class-repo-package.php';
+
+// Load theme repo package.
+include_once plugin_dir_path( __FILE__ ) . 'class-wporg-themes-repo-package.php';
+
+// Load uploader.
+include_once plugin_dir_path( __FILE__ ) . 'upload.php';
+
+register_activation_hook( __FILE__, 'flush_rewrite_rules' );
+register_deactivation_hook( __FILE__, 'flush_rewrite_rules' );
+
+/**
+ * Initialize.
+ */
+function wporg_themes_init() {
+ load_plugin_textdomain( 'wporg-themes' );
+
+ $labels = array(
+ 'name' => __( 'Packages', 'wporg-themes' ),
+ 'singular_name' => __( 'Package', 'wporg-themes' ),
+ 'add_new' => __( 'Add New', 'wporg-themes' ),
+ 'add_new_item' => __( 'Add New Package', 'wporg-themes' ),
+ 'edit_item' => __( 'Edit Package', 'wporg-themes' ),
+ 'new_item' => __( 'New Package', 'wporg-themes' ),
+ 'view_item' => __( 'View Package', 'wporg-themes' ),
+ 'search_items' => __( 'Search Packages', 'wporg-themes' ),
+ 'not_found' => __( 'No packages found', 'wporg-themes' ),
+ 'not_found_in_trash' => __( 'No packages found in Trash', 'wporg-themes' ),
+ 'parent_item_colon' => __( 'Parent Package:', 'wporg-themes' ),
+ 'menu_name' => __( 'Packages', 'wporg-themes' ),
+ );
+
+ $args = array(
+ 'labels' => $labels,
+ 'hierarchical' => false,
+ 'description' => __( 'A package', 'wporg-themes' ),
+ 'supports' => array( 'title', 'editor', 'author', 'custom-fields', 'page-attributes' ),
+ 'taxonomies' => array( 'category', 'post_tag', 'type' ),
+ 'public' => true,
+ 'show_ui' => true,
+ 'show_in_menu' => true,
+ 'show_in_nav_menus' => false,
+ 'publicly_queryable' => true,
+ 'exclude_from_search' => false,
+ 'has_archive' => true,
+ 'query_var' => true,
+ 'can_export' => true,
+ 'rewrite' => array( 'slug' => '/' ),
+ 'capability_type' => 'post',
+ );
+
+ // This is the base generic type for repo plugins.
+ if ( ! post_type_exists( 'repopackage' ) ) {
+ register_post_type( 'repopackage', $args );
+ }
+
+ add_rewrite_tag( '%browse%', '(featured|popular|new)' );
+
+ // Single themes.
+ add_rewrite_rule( '(.?.+?)(/[0-9]+)?/?$', 'index.php?post_type=repopackage&name=$matches[1]', 'top' );
+
+ // Browse views.
+ add_rewrite_rule( 'browse/(featured|popular|new)/?$', 'index.php?post_type=repopackage&browse=$matches[1]', 'top' );
+
+ // Paginated browse views.
+ add_rewrite_rule( 'browse/(featured|popular|new)/page/?([0-9]{1,})/?$', 'index.php?post_type=repopackage&browse=$matches[1]&paged=$matches[2]', 'top' );
+}
+add_action( 'init', 'wporg_themes_init' );
+
+/**
+ * Adjusts query to account for custom views.
+ *
+ * @param WP_Query $wp_query
+ * @return WP_Query
+ */
+function wporg_themes_set_up_query( $wp_query ) {
+ if ( is_admin() || in_array( $wp_query->get( 'pagename' ), array( 'upload', 'commercial', 'getting-started' ) ) || 'nav_menu_item' == $wp_query->get( 'post_type' ) ) {
+ return $wp_query;
+ }
+
+ $wp_query->set( 'post_type', 'repopackage' );
+
+ if ( $wp_query->is_home() ) {
+ $wp_query->set( 'browse', 'featured' );
+ }
+
+ if ( $wp_query->get( 'browse' ) ) {
+ switch ( $wp_query->get( 'browse' ) ) {
+ case 'featured':
+ $wp_query->set( 'paged', 1 );
+ $wp_query->set( 'posts_per_page', 15 );
+ $wp_query->set( 'post__in', (array) wp_cache_get( 'browse-popular', 'theme-info' ) );
+ break;
+
+ case 'popular':
+ add_filter( 'posts_clauses', 'wporg_themes_popular_posts_clauses' );
+ break;
+
+ case 'new':
+ // Nothing to do here.
+ break;
+ }
+ }
+
+ return $wp_query;
+}
+add_filter( 'pre_get_posts', 'wporg_themes_set_up_query' );
+
+/**
+ * Adjusts the amount of found posts when browsing featured themes.
+ *
+ * @param string $found_posts
+ * @param WP_Query $wp_query
+ * @return string
+ */
+function wporg_themes_found_posts( $found_posts, $wp_query ) {
+ if ( $wp_query->is_main_query() && 'featured' === $wp_query->get( 'browse' ) ) {
+ $found_posts = $wp_query->get( 'posts_per_page' );
+ }
+
+ return $found_posts;
+}
+add_filter( 'found_posts', 'wporg_themes_found_posts', 10, 2 );
+
+/**
+ * Filters SQL clauses, to set up a query for the most popular themes based on downloads.
+ *
+ * @param array $clauses
+ * @return array
+ */
+function wporg_themes_popular_posts_clauses( $clauses ) {
+ global $wpdb;
+
+ $week = gmdate( 'Y-m-d', strtotime( 'last week' ) );
+ $clauses['where'] .= " AND s.stamp >= '{$week}'";
+ $clauses['groupby'] = "{$wpdb->posts}.ID";
+ $clauses['join'] = "JOIN bb_themes_stats AS s ON ( {$wpdb->posts}.post_name = s.slug )";
+ $clauses['orderby'] = 'week_downloads DESC';
+ $clauses['fields'] .= ', SUM(s.downloads) AS week_downloads';
+
+ return $clauses;
+}
+
+/**
+ * Capability mapping for custom caps.
+ *
+ * @param array $caps Returns the user's actual capabilities.
+ * @param string $cap Capability name.
+ * @param int $user_id The user ID.
+ * @param array $args Adds the context to the cap. Typically the object ID.
+ * @return array
+ */
+function wporg_themes_map_meta_cap( $caps, $cap, $user_id, $args ) {
+ switch ( $cap ) {
+ case 'delete_categories':
+ case 'edit_categories':
+ case 'manage_categories':
+
+ if ( ! is_super_admin() ) {
+ $caps[] = 'do_not_allow';
+ }
+ break;
+ }
+
+ return $caps;
+}
+add_filter( 'map_meta_cap', 'wporg_themes_map_meta_cap', 10, 4 );
+
+/**
+ * Checks if ther current users is a super admin before allowing terms to be added.
+ *
+ * @param string $term The term to add or update.
+ * @return string|WP_Error The term to add or update or WP_Error on failure.
+ */
+function wporg_themes_pre_insert_term( $term ) {
+ if ( ! is_super_admin() ) {
+ $term = new WP_Error( 'not-allowed', __( 'You are not allowed to add terms.', 'wporg-themes' ) );
+ }
+
+ return $term;
+}
+add_filter( 'pre_insert_term', 'wporg_themes_pre_insert_term' );
+
+/**
+ * Returns the status of a theme's version.
+ *
+ * @param int $post_id Post ID.
+ * @param string $version The theme version to get the status for.
+ * @return bool|string The version-specific meta value or False on failure.
+ */
+function wporg_themes_get_version_status( $post_id, $version ) {
+ $status = false;
+ $meta = (array) get_post_meta( $post_id, '_status', true );
+
+ if ( ! empty( $meta[ $version ] ) ) {
+ $status = $meta[ $version ];
+ }
+
+ return $status;
+}
+
+/**
+ * Handles updating the status of theme versions.
+ *
+ * @param int $post_id Post ID.
+ * @param string $current_version The theme version to update.
+ * @param string $new_status The status to update the current version to.
+ * @return int|bool Meta ID if the key didn't exist, true on successful update,
+ * false on failure.
+ */
+function wporg_themes_update_version_status( $post_id, $current_version, $new_status ) {
+ $meta = get_post_meta( $post_id, '_status', true );
+
+ switch ( $new_status ) {
+ // There can only be one version with these statuses:
+ case 'new':
+ case 'live':
+ // Discard all previous versions with that status.
+ foreach ( array_keys( $meta, $new_status ) as $version ) {
+ if ( version_compare( $version, $current_version, '<' ) ) {
+ $meta[ $version ] = 'old';
+ }
+ }
+
+ // Mark the current version appropriately.
+ $meta[ $current_version ] = $new_status;
+ break;
+
+ // Marking a version as Old, does not have repercussions on other versions.
+ case 'old':
+ $meta[ $current_version ] = $new_status;
+ break;
+ }
+
+ return update_post_meta( $post_id, '_status', $meta );
+}
+
+/**
+ * Use theme screen shot for post thumbnails.
+ *
+ * @param string $html
+ * @param int $post_id
+ * @return string
+ */
+function wporg_themes_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size ) {
+ $post = get_post( $post_id );
+ if ( 'repopackage' == $post->post_type ) {
+ $theme = new WPORG_Themes_Repo_Package( $post );
+ $src = add_query_arg( array( 'w' => $size, 'strip' => 'all' ), $theme->screen_shot_url() );
+
+ $html = '<img src="' . esc_url( $src ) . '"/>';
+ }
+
+ return $html;
+}
+add_filter( 'post_thumbnail_html', 'wporg_themes_post_thumbnail_html', 10, 5 );
+
+
+/**
+ * Prevents repopackages from being deleted.
+ *
+ * @param int $post_id
+ */
+function wporg_theme_no_delete_repopackage( $post_id ) {
+ if ( 'repopackage' == get_post( $post_id )->post_type ) {
+ wp_die( __( 'Repopackages can not be deleted.', 'wporg-themes' ), '', array(
+ 'back_link' => true,
+ ) );
+ }
+}
+add_filter( 'before_delete_post', 'wporg_theme_no_delete_repopackage' );
+
+/**
+ * Better view in the Packages screen.
+ *
+ * @param array $columns
+ * @return array
+ */
+function wporg_themes_repopackage_columns( $columns ) {
+ $columns = array_merge( $columns, array(
+ 'version' => __( 'Version', 'wporg-themes' ),
+ 'theme-url' => __( 'Theme URL', 'wporg-themes' ),
+ 'author-url' => __( 'Author URL', 'wporg-themes' ),
+ 'ticket' => __( 'Ticket ID', 'wporg-themes' ),
+ ) );
+ unset( $columns['categories'] );
+
+ return $columns;
+}
+add_filter( 'manage_repopackage_posts_columns', 'wporg_themes_repopackage_columns' );
+
+/**
+ * Custom columns for the admin screen.
+ *
+ * @param string $column
+ * @param int $post_id
+ */
+function wporg_themes_repopackage_custom_columns( $column, $post_id ) {
+ $theme = new WPORG_Themes_Repo_Package( $post_id );
+
+ switch ( $column ) {
+ case 'ticket':
+ if ( $theme->ticket ) {
+ printf( '<a href="%1$s">%2$s</a>', esc_url( 'https://themes.trac.wordpress.org/ticket/' . $theme->ticket ), '#' . $theme->ticket );
+ }
+ break;
+ case 'theme-url':
+ case 'author-url':
+ echo make_clickable( $theme->$column );
+ break;
+ default:
+ echo $theme->$column;
+ }
+}
+add_action( 'manage_repopackage_posts_custom_column', 'wporg_themes_repopackage_custom_columns', 10, 2 );
+
+/**
+ * Meta box to choose which version is live.
+ */
+function wporg_themes_add_meta_box() {
+ add_meta_box(
+ 'wporg_themes_versions',
+ __( 'Theme Versions', 'wporg-themes' ),
+ 'wporg_themes_meta_box_callback',
+ 'repopackage',
+ 'side',
+ 'high'
+ );
+}
+add_action( 'add_meta_boxes', 'wporg_themes_add_meta_box' );
+
+/**
+ * Displays the content of the `_status` meta box.
+ *
+ * @param WP_Post $post
+ */
+function wporg_themes_meta_box_callback( $post ) {
+ $versions = get_post_meta( $post->ID, '_status', true );
+
+ if ( empty( $versions ) ) {
+ return;
+ }
+
+ // Add an nonce field so we can check for it later.
+ wp_nonce_field( 'wporg_themes_meta_box', 'wporg_themes_meta_box_nonce' );
+
+ foreach ( $versions as $version => $status ) :
+ ?>
+ <p><?php echo $version; ?> -
+ <select name="wporg_themes_status[<?php echo base64_encode( $version ); // base64 because version numbers don't work so well as parts of keys ?>]">
+ <option value="new" <?php selected( $status, 'new' ); ?>><?php esc_html_e( 'New', 'wporg-themes' ); ?></option>
+ <option value="live" <?php selected( $status, 'live' ); ?>><?php esc_html_e( 'Live', 'wporg-themes' ); ?></option>
+ <option value="old" <?php selected( $status, 'old' ); ?>><?php esc_html_e( 'Old', 'wporg-themes' ); ?></option>
+ </select>
+ </p>
+ <?php
+ endforeach;
+}
+
+/**
+ * Sanitizes and saves meta box settings.
+ *
+ * @param int $post_id
+ */
+function wporg_themes_save_meta_box_data( $post_id ) {
+ // All the safety checks.
+ if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
+ return;
+ }
+ if ( ! isset( $_POST['wporg_themes_meta_box_nonce'] ) ) {
+ return;
+ }
+ if ( ! wp_verify_nonce( $_POST['wporg_themes_meta_box_nonce'], 'wporg_themes_meta_box' ) ) {
+ return;
+ }
+ // TODO should this be a post type specific capability?
+ if ( ! current_user_can( 'edit_post', $post_id ) ) {
+ return;
+ }
+
+ $new_status = array();
+ foreach ( $_POST['wporg_themes_status'] as $version => $status ) {
+ // We could check of the passed status is valid, but wporg_themes_update_version_status() handles that beautifully.
+ $new_status[ base64_decode( $version ) ] = $status;
+ }
+ uksort( $new_status, 'version_compare' );
+
+ // Update the statuses.
+ foreach ( $new_status as $version => $status ) {
+ wporg_themes_update_version_status( $post_id, $version, $status );
+ }
+}
+add_action( 'save_post', 'wporg_themes_save_meta_box_data' );
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><span class="cx" style="display: block; padding: 0 10px">Index: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php
</span><span class="cx" style="display: block; padding: 0 10px">===================================================================
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php 2015-02-25 00:40:01 UTC (rev 1314)
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php 2015-02-25 03:09:57 UTC (rev 1315)
</ins><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsthemedirectoryuploadphp"></a>
<div class="propset"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Property changes: sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span></div>
</body>
</html>