WordPress.org

Make WordPress Core

Ticket #21944: 21944.diff

File 21944.diff, 420 bytes (added by scribu, 2 years ago)
  • wp-includes/post.php

    diff --git wp-includes/post.php wp-includes/post.php
    index ff54440..1cdfbbc 100644
    function register_post_type( $post_type, $args = array() ) { 
    11001100                'delete_with_user' => null, 
    11011101        ); 
    11021102        $args = wp_parse_args($args, $defaults); 
     1103 
     1104        $args = apply_filters( 'post_type_args', $args ); 
     1105 
    11031106        $args = (object) $args; 
    11041107 
    11051108        $post_type = sanitize_key($post_type);