Changeset 2244268
- Timestamp:
- 02/14/2020 06:24:51 AM (6 years ago)
- Location:
- multisite-wp-rocket/trunk
- Files:
-
- 2 edited
-
multisite-wp-rocket.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multisite-wp-rocket/trunk/multisite-wp-rocket.php
r2075700 r2244268 4 4 * Plugin URI: https://github.com/pcfreak30/multisite-wp-rocket 5 5 * Description: Plugin to enable WP-Rocket to be managed in multisite 6 * Version: 0.1. 66 * Version: 0.1.7 7 7 * Author: Derrick Hammer 8 8 * Author URI: https://www.derrickhammer.com … … 10 10 * Network: true 11 11 */ 12 13 use WP_Rocket\Admin\Database\Optimization;14 use WP_Rocket\Admin\Database\Optimization_Process;15 use WP_Rocket\Admin\Options;16 use WP_Rocket\Admin\Options_Data;17 use WP_Rocket\Admin\Settings\Beacon;18 use WP_Rocket\Admin\Settings\Page as Settings_Page;19 use WP_Rocket\Admin\Settings\Render as Settings_Render;20 use WP_Rocket\Admin\Settings\Settings;21 12 22 13 /** … … 79 70 80 71 if ( class_exists( '\WP_Rocket\Plugin' ) ) { 81 $settings_page_args = [ 82 'slug' => WP_ROCKET_PLUGIN_SLUG, 83 'title' => WP_ROCKET_PLUGIN_NAME, 84 'capability' => apply_filters( 'rocket_capacity', 'manage_options' ), 85 ]; 86 $options = new Options( 'wp_rocket_' ); 87 $options_data = new Options_Data( $options->get( 'settings', array() ) ); 88 $settings = new Settings( $options_data ); 89 $settings_render = new Settings_Render( WP_ROCKET_PATH . 'views/settings' ); 90 $beancon = new Beacon( $options_data ); 91 $optimization_process = new Optimization_Process(); 92 $optimization = new Optimization( $optimization_process ); 93 $settings_page = new Settings_Page( $settings_page_args, $settings, $settings_render, $beancon, $optimization ); 72 /** @var \League\Container\Container $container */ 73 $container = apply_filters( 'rocket_container', '' ); 74 75 $settings_page = $container->get( 'settings_page' ); 94 76 95 77 add_action( 'wp_ajax_rocket_toggle_option', [ $settings_page, 'toggle_option' ] ); -
multisite-wp-rocket/trunk/readme.txt
r2075700 r2244268 5 5 Tags: wp-rocket, multisite 6 6 Requires at least: 4.2.0 7 Tested up to: 4.9.87 Tested up to: 5.3.2 8 8 Stable tag: trunk 9 9 License: GPLv2 or later … … 27 27 28 28 == Changelog == 29 30 ### 0.1.7 ### 31 32 * Enhancement: Use rocket_container filter to get service container and dom't build new instances ourselves 29 33 30 34 ### 0.1.6 ###
Note: See TracChangeset
for help on using the changeset viewer.