Changeset 10570
- Timestamp:
- 01/12/2021 01:45:56 AM (5 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory
- Files:
-
- 2 edited
-
class-wporg-themes-upload.php (modified) (1 diff)
-
theme-directory.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
r10569 r10570 855 855 ) ); 856 856 857 $theme_is_older_than_two_years = strtotime( $this->theme_post->post_modified ) < strtotime( '-2 years');857 $theme_is_older_than_two_years = $this->theme_post && ( strtotime( $this->theme_post->post_modified ) < strtotime( '-2 years' ) ); 858 858 859 859 // Theme review team auto-approves theme-updates, so mark the theme as live immediately, if last updated within two years. -
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r10410 r10570 1002 1002 */ 1003 1003 function wporg_themes_glotpress_import_on_update( $theme, $theme_post ) { 1004 // Newly loaded themes don't have a theme post. 1005 if ( ! $theme_post ) { 1006 return; 1007 } 1008 1004 1009 $status = (array) get_post_meta( $theme_post->ID, '_status', true ); 1005 1010 if ( array_search( 'live', $status ) ) {
Note: See TracChangeset
for help on using the changeset viewer.