Ticket #17838: update-filter-count2.patch
File update-filter-count2.patch, 883 bytes (added by , 13 years ago) |
---|
-
wp-includes/update.php
308 308 $counts['wordpress'] = 1; 309 309 } 310 310 311 $counts['total'] = $counts['plugins'] + $counts['themes'] + $counts['wordpress'];311 $counts['total'] = apply_filters('update_count', $counts['plugins'] + $counts['themes'] + $counts['wordpress']); 312 312 $update_title = array(); 313 313 if ( $counts['wordpress'] ) 314 314 $update_title[] = sprintf(__('%d WordPress Update'), $counts['wordpress']); … … 318 318 $update_title[] = sprintf(_n('%d Theme Update', '%d Theme Updates', $counts['themes']), $counts['themes']); 319 319 320 320 $update_title = ! empty( $update_title ) ? esc_attr( implode( ', ', $update_title ) ) : ''; 321 321 322 322 return array( 'counts' => $counts, 'title' => $update_title ); 323 323 } 324 324