wp_print_media_templates function problem
-
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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_print_media_templates function problem’ is closed to new replies.