Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules/widgets
File: gallery.php
add_action( 'widgets_init', 'jetpack_gallery_widget_init' );
[500] Fix | Delete
[501] Fix | Delete
/**
[502] Fix | Delete
* Jetpack Gallery widget init; the widget is conditionally registered.
[503] Fix | Delete
*/
[504] Fix | Delete
function jetpack_gallery_widget_init() {
[505] Fix | Delete
/**
[506] Fix | Delete
* Allow the Gallery Widget to be enabled even when Core supports the Media Gallery Widget
[507] Fix | Delete
*
[508] Fix | Delete
* @module widgets
[509] Fix | Delete
*
[510] Fix | Delete
* @since 5.5.0
[511] Fix | Delete
*
[512] Fix | Delete
* @param bool false Whether to force-enable the gallery widget
[513] Fix | Delete
*/
[514] Fix | Delete
if (
[515] Fix | Delete
! apply_filters( 'jetpack_force_enable_gallery_widget', false )
[516] Fix | Delete
&& class_exists( 'WP_Widget_Media_Gallery' )
[517] Fix | Delete
&& Jetpack_Options::get_option( 'gallery_widget_migration' )
[518] Fix | Delete
) {
[519] Fix | Delete
return;
[520] Fix | Delete
}
[521] Fix | Delete
if ( ! method_exists( 'Jetpack', 'is_module_active' ) || Jetpack::is_module_active( 'tiled-gallery' ) ) {
[522] Fix | Delete
register_widget( 'Jetpack_Gallery_Widget' );
[523] Fix | Delete
}
[524] Fix | Delete
}
[525] Fix | Delete
[526] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function