Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/herald/core/admin
File: plugins.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Include the TGM_Plugin_Activation class.
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
require_once get_parent_theme_file_path( '/inc/tgm/class-tgm-plugin-activation.php' );
[5] Fix | Delete
[6] Fix | Delete
add_action( 'tgmpa_register', 'herald_register_required_plugins' );
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Register the required plugins for this theme.
[10] Fix | Delete
*
[11] Fix | Delete
* In this example, we register two plugins - one included with the TGMPA library
[12] Fix | Delete
* and one from the .org repo.
[13] Fix | Delete
*
[14] Fix | Delete
* The variable passed to tgmpa_register_plugins() should be an array of plugin
[15] Fix | Delete
* arrays.
[16] Fix | Delete
*
[17] Fix | Delete
* This function is hooked into tgmpa_init, which is fired within the
[18] Fix | Delete
* TGM_Plugin_Activation class constructor.
[19] Fix | Delete
*/
[20] Fix | Delete
[21] Fix | Delete
function herald_register_required_plugins() {
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Array of plugin arrays. Required keys are name and slug.
[25] Fix | Delete
* If the source is NOT from the .org repo, then source is also required.
[26] Fix | Delete
*/
[27] Fix | Delete
$plugins = array(
[28] Fix | Delete
array(
[29] Fix | Delete
'name' => 'Redux Framework',
[30] Fix | Delete
'slug' => 'redux-framework',
[31] Fix | Delete
'required' => true,
[32] Fix | Delete
),
[33] Fix | Delete
array(
[34] Fix | Delete
'name' => 'Meks Flexible Shortcodes',
[35] Fix | Delete
'slug' => 'meks-flexible-shortcodes',
[36] Fix | Delete
),
[37] Fix | Delete
array(
[38] Fix | Delete
'name' => 'Meks Easy Ads Widget',
[39] Fix | Delete
'slug' => 'meks-easy-ads-widget',
[40] Fix | Delete
),
[41] Fix | Delete
array(
[42] Fix | Delete
'name' => 'Meks Smart Social Widget',
[43] Fix | Delete
'slug' => 'meks-smart-social-widget',
[44] Fix | Delete
),
[45] Fix | Delete
array(
[46] Fix | Delete
'name' => 'Meks Smart Author Widget',
[47] Fix | Delete
'slug' => 'meks-smart-author-widget',
[48] Fix | Delete
),
[49] Fix | Delete
array(
[50] Fix | Delete
'name' => 'Meks Simple Flickr Widget',
[51] Fix | Delete
'slug' => 'meks-simple-flickr-widget',
[52] Fix | Delete
),
[53] Fix | Delete
array(
[54] Fix | Delete
'name' => 'Meks Time Ago',
[55] Fix | Delete
'slug' => 'meks-time-ago',
[56] Fix | Delete
),
[57] Fix | Delete
array(
[58] Fix | Delete
'name' => 'Meks ThemeForest Smart Widget',
[59] Fix | Delete
'slug' => 'meks-themeforest-smart-widget',
[60] Fix | Delete
),
[61] Fix | Delete
array(
[62] Fix | Delete
'name' => 'Meks Easy Instagram Widget',
[63] Fix | Delete
'slug' => 'meks-easy-instagram-widget',
[64] Fix | Delete
),
[65] Fix | Delete
array(
[66] Fix | Delete
'name' => 'Meks Easy Social Share',
[67] Fix | Delete
'slug' => 'meks-easy-social-share',
[68] Fix | Delete
),
[69] Fix | Delete
array(
[70] Fix | Delete
'name' => 'WPForms Lite',
[71] Fix | Delete
'slug' => 'wpforms-lite',
[72] Fix | Delete
),
[73] Fix | Delete
array(
[74] Fix | Delete
'name' => 'Force Regenerate Thumbnails',
[75] Fix | Delete
'slug' => 'force-regenerate-thumbnails',
[76] Fix | Delete
),
[77] Fix | Delete
array(
[78] Fix | Delete
'name' => 'Entry Views',
[79] Fix | Delete
'slug' => 'entry-views',
[80] Fix | Delete
),
[81] Fix | Delete
array(
[82] Fix | Delete
'name' => 'WP Review',
[83] Fix | Delete
'slug' => 'wp-review',
[84] Fix | Delete
),
[85] Fix | Delete
array(
[86] Fix | Delete
'name' => 'Envato Market',
[87] Fix | Delete
'slug' => 'envato-market',
[88] Fix | Delete
'source' => 'https://envato.github.io/wp-envato-market/dist/envato-market.zip',
[89] Fix | Delete
'external_url' => 'https://envato.com/market-plugin/'
[90] Fix | Delete
),
[91] Fix | Delete
[92] Fix | Delete
array(
[93] Fix | Delete
'name' => 'Herald Buddy',
[94] Fix | Delete
'slug' => 'herald-buddy',
[95] Fix | Delete
'source' => 'https://mekshq.com/static/plugins/herald-buddy.zip',
[96] Fix | Delete
),
[97] Fix | Delete
[98] Fix | Delete
);
[99] Fix | Delete
[100] Fix | Delete
[101] Fix | Delete
/**
[102] Fix | Delete
* Array of configuration settings. Amend each line as needed.
[103] Fix | Delete
* If you want the default strings to be available under your own theme domain,
[104] Fix | Delete
* leave the strings uncommented.
[105] Fix | Delete
* Some of the strings are added into a sprintf, so see the comments at the
[106] Fix | Delete
* end of each line for what each argument will be.
[107] Fix | Delete
*/
[108] Fix | Delete
$config = array(
[109] Fix | Delete
'domain' => 'herald', // Text domain - likely want to be the same as your theme.
[110] Fix | Delete
'default_path' => '', // Default absolute path to pre-packaged plugins
[111] Fix | Delete
'menu' => 'install-required-plugins', // Menu slug
[112] Fix | Delete
'has_notices' => false, // Show admin notices or not
[113] Fix | Delete
'is_automatic' => true, // Automatically activate plugins after installation or not
[114] Fix | Delete
'message' => '', // Message to output right before the plugins table
[115] Fix | Delete
'strings' => array(
[116] Fix | Delete
'page_title' => esc_html__( 'Install Recommended Plugins', 'herald' ),
[117] Fix | Delete
'menu_title' => esc_html__( 'Herald Plugins', 'herald' ),
[118] Fix | Delete
'installing' => esc_html__( 'Installing Plugin: %s', 'herald' ), // %1$s = plugin name
[119] Fix | Delete
'oops' => esc_html__( 'Something went wrong with the plugin API.', 'herald' ),
[120] Fix | Delete
'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'herald' ), // %1$s = plugin name(s)
[121] Fix | Delete
'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'herald' ), // %1$s = plugin name(s)
[122] Fix | Delete
'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'herald' ), // %1$s = plugin name(s)
[123] Fix | Delete
'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'herald' ), // %1$s = plugin name(s)
[124] Fix | Delete
'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'herald' ), // %1$s = plugin name(s)
[125] Fix | Delete
'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'herald' ), // %1$s = plugin name(s)
[126] Fix | Delete
'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'herald' ), // %1$s = plugin name(s)
[127] Fix | Delete
'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'herald' ), // %1$s = plugin name(s)
[128] Fix | Delete
'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'herald' ),
[129] Fix | Delete
'activate_link' => _n_noop( 'Activate installed plugin', 'Activate installed plugins', 'herald' ),
[130] Fix | Delete
'return' => esc_html__( 'Return to Required Plugins Installer', 'herald' ),
[131] Fix | Delete
'plugin_activated' => esc_html__( 'Plugin activated successfully.', 'herald' ),
[132] Fix | Delete
'complete' => esc_html__( 'All plugins installed and activated successfully. %s', 'herald' ), // %1$s = dashboard link
[133] Fix | Delete
'nag_type' => 'updated' // Determines admin notice type - can only be 'updated' or 'error'
[134] Fix | Delete
)
[135] Fix | Delete
);
[136] Fix | Delete
[137] Fix | Delete
tgmpa( $plugins, $config );
[138] Fix | Delete
[139] Fix | Delete
}
[140] Fix | Delete
[141] Fix | Delete
?>
[142] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function