WordPress.org

Make WordPress Core

Ticket #17838: update-filter-patch3.patch

File update-filter-patch3.patch, 790 bytes (added by usermrpapa, 7 years ago)
  • wp-includes/update.php

     
    309309        }
    310310
    311311        $counts['total'] = $counts['plugins'] + $counts['themes'] + $counts['wordpress'];
     312        $counts = apply_filters('update_count', $counts);
    312313        $update_title = array();
    313314        if ( $counts['wordpress'] )
    314315                $update_title[] = sprintf(__('%d WordPress Update'), $counts['wordpress']);
     
    318319                $update_title[] = sprintf(_n('%d Theme Update', '%d Theme Updates', $counts['themes']), $counts['themes']);
    319320
    320321        $update_title = ! empty( $update_title ) ? esc_attr( implode( ', ', $update_title ) ) : '';
    321        
     322
    322323        return array( 'counts' => $counts, 'title' => $update_title );
    323324}
    324325