llback'], $value ); } } } } // Pass the variables through a filter ('kirki_variable') and return the array of variables. return apply_filters( 'kirki_variable', $variables ); } /** * HTTP Request injection. * * @access public * @since 3.0.0 * @param array $request The request params. * @param string $url The request URL. * @return array */ public function http_request( $request = [], $url = '' ) { // Early exit if installed as a plugin or not a request to wordpress.org, // or finally if we don't have everything we need. if ( self::is_plugin() || false === strpos( $url, 'wordpress.org' ) || ( ! isset( $request['body'] ) || ! isset( $request['body']['plugins'] ) || ! isset( $request['body']['translations'] ) || ! isset( $request['body']['locale'] ) || ! isset( $request['body']['all'] ) ) ) { return $request; } $plugins = json_decode( $request['body']['plugins'], true ); if ( ! isset( $plugins['plugins'] ) ) { return $request; } $exists = false; foreach ( $plugins['plugins'] as $plugin ) { if ( isset( $plugin['Name'] ) && 'Kirki Toolkit' === $plugin['Name'] ) { $exists = true; } } // Inject data. if ( ! $exists && defined( 'KIRKI_PLUGIN_FILE' ) ) { $plugins['plugins']['kirki/kirki.php'] = get_plugin_data( KIRKI_PLUGIN_FILE ); } $request['body']['plugins'] = wp_json_encode( $plugins ); return $request; } /** * Returns the $wp_version. * * @static * @access public * @since 3.0.12 * @param string $context Use 'minor' or 'major'. * @return int|string Returns integer when getting the 'major' version. * Returns string when getting the 'minor' version. */ public static function get_wp_version( $context = 'minor' ) { global $wp_version; // We only need the major version. if ( 'major' === $context ) { $version_parts = explode( '.', $wp_version ); return $version_parts[0]; } return $wp_version; } }
Fatal error: Uncaught Error: Class "MailPoet\DI\ContainerFactory" not found in /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php:74 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper::getInstance() #1 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #2 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #3 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #4 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #5 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #6 /htdocs/index.php(17): require('/htdocs/wp-blog...') #7 {main} thrown in /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php on line 74