Plugin Directory

Changeset 2244268


Ignore:
Timestamp:
02/14/2020 06:24:51 AM (6 years ago)
Author:
pcfreak30
Message:

*Version bump to 0.1.7

Location:
multisite-wp-rocket/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • multisite-wp-rocket/trunk/multisite-wp-rocket.php

    r2075700 r2244268  
    44 * Plugin URI: https://github.com/pcfreak30/multisite-wp-rocket
    55 * Description: Plugin to enable WP-Rocket to be managed in multisite
    6  * Version: 0.1.6
     6 * Version: 0.1.7
    77 * Author: Derrick Hammer
    88 * Author URI: https://www.derrickhammer.com
     
    1010 * Network: true
    1111*/
    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;
    2112
    2213/**
     
    7970
    8071    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' );
    9476
    9577        add_action( 'wp_ajax_rocket_toggle_option', [ $settings_page, 'toggle_option' ] );
  • multisite-wp-rocket/trunk/readme.txt

    r2075700 r2244268  
    55Tags: wp-rocket, multisite
    66Requires at least: 4.2.0
    7 Tested up to: 4.9.8
     7Tested up to: 5.3.2
    88Stable tag: trunk
    99License: GPLv2 or later
     
    2727
    2828== Changelog ==
     29
     30### 0.1.7 ###
     31
     32* Enhancement: Use rocket_container filter to get service container and dom't build new instances ourselves
    2933
    3034### 0.1.6 ###
Note: See TracChangeset for help on using the changeset viewer.