Changeset 14261
- Timestamp:
- 12/11/2024 04:26:43 AM (18 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory
- Files:
-
- 3 edited
-
class-wporg-themes-upload.php (modified) (2 diffs)
-
theme-directory.php (modified) (2 diffs)
-
upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
r14053 r14261 282 282 $this->version_status = 'live'; 283 283 284 if ( 'themedropbox' !== $author && function_exists( 'bump_stats_extra s' ) ) {285 bump_stats_extra s( 'themes', 'upload_from_svn' );284 if ( 'themedropbox' !== $author && function_exists( 'bump_stats_extra' ) ) { 285 bump_stats_extra( 'themes', 'upload_from_svn' ); 286 286 } 287 287 … … 769 769 770 770 // Record stats. 771 if ( function_exists( 'bump_stats_extra s' ) ) {772 bump_stats_extra s( 'themes', $is_new_upload ? 'new' : 'update' );771 if ( function_exists( 'bump_stats_extra' ) ) { 772 bump_stats_extra( 'themes', $is_new_upload ? 'new' : 'update' ); 773 773 } 774 774 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r13908 r14261 1562 1562 'repopackage' !== $post->post_type || 1563 1563 in_array( $new_status, [ 'draft', 'auto-draft' ] ) || 1564 ! function_exists( 'bump_stats_extra s' )1564 ! function_exists( 'bump_stats_extra' ) 1565 1565 ) { 1566 1566 return; … … 1575 1575 } 1576 1576 1577 bump_stats_extra s( 'themes', 'status-' . $stat );1577 bump_stats_extra( 'themes', 'status-' . $stat ); 1578 1578 } 1579 1579 add_action( 'transition_post_status', 'wporg_themes_status_change_stats', 10, 3 ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php
r14259 r14261 158 158 $message = $upload->process_upload( $_FILES['zip_file'] ); 159 159 160 if ( ! is_wp_error( $message ) && function_exists( 'bump_stats_extra s' ) ) {161 bump_stats_extra s( 'themes', 'upload_by_zip' );160 if ( ! is_wp_error( $message ) && function_exists( 'bump_stats_extra' ) ) { 161 bump_stats_extra( 'themes', 'upload_by_zip' ); 162 162 } 163 163
Note: See TracChangeset
for help on using the changeset viewer.