wp/wp-includes/js/media-editor.js
changeset 9 177826044cd9
parent 7 cf61fcea0001
child 16 a86126ab1dd4
equal deleted inserted replaced
8:c7c34916027a 9:177826044cd9
       
     1 /**
       
     2  * @output wp-includes/js/media-editor.js
       
     3  */
       
     4 
     1 /* global getUserSetting, tinymce, QTags */
     5 /* global getUserSetting, tinymce, QTags */
     2 
     6 
     3 // WordPress, TinyMCE, and Media
     7 // WordPress, TinyMCE, and Media
     4 // -----------------------------
     8 // -----------------------------
     5 (function($, _){
     9 (function($, _){
   603 		 */
   607 		 */
   604 		get: function() {
   608 		get: function() {
   605 			return wp.media.view.settings.post.featuredImageId;
   609 			return wp.media.view.settings.post.featuredImageId;
   606 		},
   610 		},
   607 		/**
   611 		/**
   608 		 * Set the featured image id, save the post thumbnail data and
   612 		 * Sets the featured image ID property and sets the HTML in the post meta box to the new featured image.
   609 		 * set the HTML in the post meta box to the new featured image.
       
   610 		 *
   613 		 *
   611 		 * @param {number} id The post ID of the featured image, or -1 to unset it.
   614 		 * @param {number} id The post ID of the featured image, or -1 to unset it.
   612 		 */
   615 		 */
   613 		set: function( id ) {
   616 		set: function( id ) {
   614 			var settings = wp.media.view.settings;
   617 			var settings = wp.media.view.settings;