Add a single responsibility function for outputting Revisions JS templates: `wp_print_revision_templates()`.

Use it in `wp-admin/revision.php`.

Props ericlewis.
Fixes #30220.


git-svn-id: https://develop.svn.wordpress.org/trunk@30129 602fd350-edb4-49c9-b593-d223f7449a82