Changeset 11304
- Timestamp:
- 11/02/2021 07:15:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
r11299 r11304 131 131 */ 132 132 protected $version_status = 'new'; 133 134 /** 135 * Where the import is triggered from. 'svn' or 'upload'. 136 * 137 * @var string 138 */ 139 protected $importing_from = 'upload'; 133 140 134 141 /** … … 169 176 ); 170 177 $this->version_status = 'new'; 178 $this->importing_from = 'upload'; 171 179 172 180 // $this->tmp_dir = ''; // Temporary folder per each instance of this class. Doesn't need to be reset each time. … … 217 225 $this->reset_properties(); 218 226 219 $this->theme_slug = $slug; 227 $this->importing_from = 'svn'; 228 $this->theme_slug = $slug; 220 229 221 230 // Check out from SVN. … … 1743 1752 ( 1744 1753 $this->trac_changeset ? 1745 "<https://themes.trac.wordpress.org/changeset/{$this->trac_changeset}|[{$this->trac_changeset}]>" : 1754 "<https://themes.trac.wordpress.org/changeset/{$this->trac_changeset}|[{$this->trac_changeset}]> " : 1755 '' 1756 ) . 1757 ( 1758 // When importing from SVN, include a 'Compare' link as the Changeset likely won't show a Diff unless the author did a `svn cp`. 1759 'svn' === $this->importing_from && ! empty( $this->theme_post->max_version ) ? 1760 "<https://themes.trac.wordpress.org/changeset?old_path={$this->theme_slug}/{$this->theme_post->max_version}&new_path={$this->theme_slug}/{$this->theme->display( 'Version' )}|Compare>" : 1746 1761 '' 1747 1762 ),
Note: See TracChangeset
for help on using the changeset viewer.