WordPress.org

Make WordPress Core

Ticket #20205: post.php.patch

File post.php.patch, 614 bytes (added by helgatheviking, 3 years ago)

add argument to icon_dir filter

  • post.php

     
    40374037                $icon_files = wp_cache_get('icon_files'); 
    40384038 
    40394039                if ( !is_array($icon_files) ) { 
    4040                         $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/crystal' ); 
     4040                        $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/crystal', $post_id ); 
    40414041                        $icon_dir_uri = apply_filters( 'icon_dir_uri', includes_url('images/crystal') ); 
    40424042                        $dirs = apply_filters( 'icon_dirs', array($icon_dir => $icon_dir_uri) ); 
    40434043                        $icon_files = array();