Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/3rd-part...
File: beaverbuilder.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Beaverbuilder Compatibility.
[2] Fix | Delete
*
[3] Fix | Delete
* @package automattic/jetpack
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
namespace Automattic\Jetpack\Third_Party;
[7] Fix | Delete
[8] Fix | Delete
use Automattic\Jetpack\Status\Host;
[9] Fix | Delete
[10] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[11] Fix | Delete
exit( 0 );
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
add_action( 'init', __NAMESPACE__ . '\beaverbuilder_refresh' );
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* If masterbar module is active force BeaverBuilder to refresh when publishing a layout.
[18] Fix | Delete
*/
[19] Fix | Delete
function beaverbuilder_refresh() {
[20] Fix | Delete
if ( ( new Host() )->is_woa_site() ) {
[21] Fix | Delete
add_filter( 'fl_builder_should_refresh_on_publish', '__return_true' );
[22] Fix | Delete
}
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function