Changeset 8130
- Timestamp:
- 01/23/2019 09:21:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
r8049 r8130 12 12 } 13 13 14 /** 15 * Prevent errors resulting from change to Gutenberg plugin in 4.9 that adds call to 16 * `get_current_screen()`. 17 */ 18 if ( ! function_exists( 'get_current_screen' ) && ! is_admin() && ! wp_doing_cron() ) { 19 function get_current_screen() { 20 return null; 21 } 22 } 14 23 15 24 add_action( 'template_redirect', function() {
Note: See TracChangeset
for help on using the changeset viewer.