WordPress.org

Make WordPress Core

Changeset 8958


Ignore:
Timestamp:
09/22/08 21:21:05 (6 years ago)
Author:
westi
Message:

Add a filter on $excerpt_length. Fixes #7778 props dougal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r8786 r8958  
    13251325        $text = str_replace(']]>', ']]>', $text); 
    13261326        $text = strip_tags($text); 
    1327         $excerpt_length = 55; 
     1327        $excerpt_length = apply_filters('excerpt_length', 55); 
    13281328        $words = explode(' ', $text, $excerpt_length + 1); 
    13291329        if (count($words) > $excerpt_length) { 
Note: See TracChangeset for help on using the changeset viewer.