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