Make WordPress Core

Ticket #17838: update-filter-count2.patch

File update-filter-count2.patch, 883 bytes (added by usermrpapa, 13 years ago)

patch refresh for [18468]

  • wp-includes/update.php

     
    308308                        $counts['wordpress'] = 1;
    309309        }
    310310
    311         $counts['total'] = $counts['plugins'] + $counts['themes'] + $counts['wordpress'];
     311        $counts['total'] = apply_filters('update_count', $counts['plugins'] + $counts['themes'] + $counts['wordpress']);
    312312        $update_title = array();
    313313        if ( $counts['wordpress'] )
    314314                $update_title[] = sprintf(__('%d WordPress Update'), $counts['wordpress']);
     
    318318                $update_title[] = sprintf(_n('%d Theme Update', '%d Theme Updates', $counts['themes']), $counts['themes']);
    319319
    320320        $update_title = ! empty( $update_title ) ? esc_attr( implode( ', ', $update_title ) ) : '';
    321        
     321
    322322        return array( 'counts' => $counts, 'title' => $update_title );
    323323}
    324324