Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Shmoo on "wp_print_media_templates function problem"

$
0
0

Since WordPress 4.1.0 the wp_print_media_templates() function doesn't work anymore if you first remove the action and later add the same function again, only with a different name. ( for testing )

remove_action( 'admin_footer', 'wp_print_media_templates' );
add_action( 'admin_footer', 'my_print_media_templates' );

function my_print_media_templates() {

...... 100% the same code as original for testing .....

}

Looks like it breaks the Javascripts or something because there is no drop down functionality inside the backend, also the screen options panel at the top doesn't work anymore.


Viewing all articles
Browse latest Browse all 8245

Trending Articles