-
-
Save ericandrewlewis/3f3f39dc7ebdc4a56681 to your computer and use it in GitHub Desktop.
Revisions
-
ericandrewlewis revised this gist
Jun 25, 2014 . 1 changed file with 3 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,16 @@ <?php // ...<snip>... <span class="milestone"><# wp.hooks.applyFilters('milestonerevs.metadata', data) #></span> // ...<snip>... add_action( 'admin_footer-revision.php', 'wpse151630_test' ); function wpse151630_test() { ?> <script> (function($) { wp.hooks.addFilter('milestonerevs.metadata', function( data ) { return data.id; }, 100); }); })(jQuery); -
jjeaton renamed this gist
Jun 25, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jjeaton created this gist
Jun 25, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ <?php // ...<snip>... <span class="milestone"><# wp.hooks.doAction('milestonerevs.metadata', data) #></span> // ...<snip>... add_action( 'admin_footer-revision.php', 'wpse151630_test' ); function wpse151630_test() { ?> <script> (function($) { wp.hooks.addAction('milestonerevs.metadata', function( data ) { setTimeout(function(){ $('.diff-meta-to .milestone').text(data.id); }, 100); }); })(jQuery); </script> <?php }