Media Library GRID view not working after Flatbase 2.0 / Framework Update
This support request was posted in Flatbase by copelandc
- copelandc November 16, 2017 at 1:06 am
Hi Juan
Since updating the flatbase theme to 2.0 and the nice framework as well, now the GRID view of Media Library won’t load, and also we cannot search Plugins (as in add new ones) — we’ve disabled everything (all existing plugins etc.) and the only thing that works is changing theme to another … help!!
Juanfra Aldasoro November 16, 2017 at 1:25 amHi,
Thank you for writing, I hope you are doing well.
Your issue seems to be related to a bug we just found in the latest version of the theme. Can you try replacing all the code inside your functions.php file with the following? You can find the file inside your wp-content/flatbase folder, or edit directly in “Appearance > Editor”.
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 characters<?php add_action( 'after_setup_theme', 'nice_theme_demo_pack_bbpress_go_home_youre_drunk' ); /** * Prevent bbPress from printing out content during the importer's request. * * @since 2.0.0 */ function nice_theme_demo_pack_bbpress_go_home_youre_drunk() { if ( ! nice_doing_ajax() ) { return; } if ( empty( $_POST['action'] ) || 'nice_theme_import_demo_pack' !== wp_unslash( $_POST['action'] ) ) { return; } check_ajax_referer( 'play-nice', 'nice_demo_import_nonce' ); remove_action( 'admin_menu', 'bbp_admin_menu' ); remove_action( 'admin_init', 'bbp_admin_init' ); remove_action( 'admin_head', 'bbp_admin_head' ); remove_action( 'admin_notices', 'bbp_admin_notices' ); remove_action( 'custom_menu_order', 'bbp_admin_custom_menu_order' ); remove_action( 'menu_order', 'bbp_admin_menu_order' ); remove_action( 'wpmu_new_blog', 'bbp_new_site', 10, 6 ); } /** * Flatbase by NiceThemes. * * Init NiceFramework - PLEASE DO NOT EDIT THE LINES BENEATH. * * @package Flatbase * @author NiceThemes <hello@nicethemes.com> * @license GPL-2.0+ * @link http://nicethemes.com/theme/flatbase * @copyright 2016 NiceThemes * @since 1.0.0 */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } /** * Init NiceFramework - PLEASE DO NOT EDIT THE LINES BENEATH. */ require_once ( get_template_directory() . '/engine/bootstrap.php' ); /** * You can add your code below =) */ Please let us know if this helps.
We’re including these changes in the upcoming version which is already submitted to ThemeForest.
Best,
Juan.
You must be logged in to reply to this topic.