Make WordPress Core

Changeset 13051


Ignore:
Timestamp:
02/10/2010 10:20:36 PM (15 years ago)
Author:
ryan
Message:

Pass the default post to default_content, default_title, and default_excerpt filters. Allows filtering by post_type and other attributes. see #9674

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r13025 r13051  
    375375    }
    376376
    377     $post->post_content = apply_filters( 'default_content', $post_content );
    378     $post->post_title   = apply_filters( 'default_title',   $post_title   );
    379     $post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt );
     377    $post->post_content = apply_filters( 'default_content', $post_content, $post );
     378    $post->post_title   = apply_filters( 'default_title',   $post_title, $post   );
     379    $post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt, $post );
    380380    $post->post_name = '';
    381381
Note: See TracChangeset for help on using the changeset viewer.