mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 06:36:47 +01:00
b3d04247b7
- Remove the old DFW. - Add back-compat stub for wp-fullscreen.js. - Keep wp_ajax_wp_fullscreen_save_post() for now. See #30949. Built from https://develop.svn.wordpress.org/trunk@32677 git-svn-id: http://core.svn.wordpress.org/trunk@32647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
40 lines
685 B
JavaScript
40 lines
685 B
JavaScript
/**
|
|
* Distraction-Free Writing (wp-fullscreen) backwards compatibility stub.
|
|
* Todo: remove at the end of 2016.
|
|
*
|
|
* Original was deprecated in 4.1, removed in 4.3.
|
|
*/
|
|
( function() {
|
|
var noop = function(){};
|
|
|
|
window.wp = window.wp || {};
|
|
window.wp.editor = window.wp.editor || {};
|
|
window.wp.editor.fullscreen = {
|
|
bind_resize: noop,
|
|
dfwWidth: noop,
|
|
off: noop,
|
|
on: noop,
|
|
refreshButtons: noop,
|
|
resizeTextarea: noop,
|
|
save: noop,
|
|
switchmode: noop,
|
|
toggleUI: noop,
|
|
|
|
settings: {},
|
|
pubsub: {
|
|
publish: noop,
|
|
subscribe: noop,
|
|
unsubscribe: noop,
|
|
topics: {}
|
|
},
|
|
fade: {
|
|
In: noop,
|
|
Out: noop
|
|
},
|
|
ui: {
|
|
fade: noop,
|
|
init: noop
|
|
}
|
|
};
|
|
}());
|