Skip to content

Commit

Permalink
Updated package versions for automattic/jetpack-mu-wpcom-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ice9js authored and matticbot committed Jan 25, 2024
1 parent 8f7f31c commit 1160f9f
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 124 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.0.16-alpha - unreleased

This is an alpha version! The changes listed here are not final.
## 2.0.16 - 2024-01-25
### Changed
- Internal updates.

## 2.0.15 - 2024-01-23
### Changed
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-mu-wpcom": "^5.10.0-alpha"
"automattic/jetpack-mu-wpcom": "^5.10.0"
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
Expand All @@ -23,6 +23,7 @@
"@composer phpunit"
]
},
"repositories": [],
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
Expand All @@ -37,6 +38,6 @@
]
},
"config": {
"autoloader-suffix": "d9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16_alpha"
"autoloader-suffix": "d9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16"
}
}
95 changes: 34 additions & 61 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mu-wpcom-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Plugin Name: WordPress.com Features
* Description: Test plugin for the jetpack-mu-wpcom package
* Version: 2.0.16-alpha
* Version: 2.0.16
* Author: Automattic
* License: GPLv2 or later
* Text Domain: jetpack-mu-wpcom-plugin
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-mu-wpcom-plugin",
"version": "2.0.16-alpha",
"version": "2.0.16",
"description": "Test plugin for the jetpack-mu-wpcom package",
"homepage": "https://jetpack.com",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16_alpha::getLoader();
return ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16::getLoader();
9 changes: 3 additions & 6 deletions vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.10.0-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

## [5.10.0] - 2024-01-23
### Added
- Add Verbum Comments in jetpack-mu-wpcom plugin
- Add Verbum Comments in jetpack-mu-wpcom plugin [#34993]

## [5.9.0] - 2024-01-22
### Added
Expand Down Expand Up @@ -544,7 +541,7 @@ This is an alpha version! The changes listed here are not final.

- Testing initial package release.

[5.10.0-alpha]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.9.0...v5.10.0-alpha
[5.10.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.9.0...v5.10.0
[5.9.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.8.2...v5.9.0
[5.8.2]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.8.1...v5.8.2
[5.8.1]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.8.0...v5.8.1
Expand Down
18 changes: 5 additions & 13 deletions vendor/automattic/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Jetpack_Mu_Wpcom main class.
*/
class Jetpack_Mu_Wpcom {
const PACKAGE_VERSION = '5.10.0-alpha';
const PACKAGE_VERSION = '5.10.0';
const PKG_DIR = __DIR__ . '/../';
const BASE_DIR = __DIR__ . '/';
const BASE_FILE = __FILE__;
Expand Down Expand Up @@ -42,10 +42,7 @@ public static function init() {

add_action( 'plugins_loaded', array( __CLASS__, 'load_first_posts_stream_helpers' ) );

// This feature runs only on simple sites
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
add_action( 'plugins_loaded', array( __CLASS__, 'load_verbum_comments' ) );
}
add_action( 'plugins_loaded', array( __CLASS__, 'load_verbum_comments' ) );

// Unified navigation fix for changes in WordPress 6.2.
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'unbind_focusout_on_wp_admin_bar_menu_toggle' ) );
Expand Down Expand Up @@ -230,13 +227,8 @@ public static function load_first_posts_stream_helpers() {
* @param int $blog_id The blog ID.
* @return boolean
*/
private static function should_disable_comment_experience( $blog_id ) {
$path_wp_for_teams = WP_CONTENT_DIR . '/lib/wpforteams/functions.php';

if ( file_exists( $path_wp_for_teams ) ) {
require_once $path_wp_for_teams;
}

private function should_disable_comment_experience( $blog_id ) {
require_once WP_CONTENT_DIR . '/lib/wpforteams/functions.php';
// This covers both P2 and P2020 themes.
$is_p2 = str_contains( get_stylesheet(), 'pub/p2' ) || function_exists( '\WPForTeams\is_wpforteams_site' ) && is_wpforteams_site( $blog_id );
$is_forums = str_contains( get_stylesheet(), 'a8c/supportforums' ); // Not in /forums
Expand All @@ -259,7 +251,7 @@ public static function load_verbum_comments() {
if ( isset( $_GET['blogid'] ) ) {
$blog_id = intval( $_GET['blogid'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
}
if ( self::should_disable_comment_experience( $blog_id ) ) {
if ( should_disable_comment_experience( $blog_id ) ) {
return false;
}
require_once __DIR__ . '/build/verbum-comments/class-verbum-comments.php';
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16_alpha
class ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16
{
private static $loader;

Expand All @@ -24,12 +24,12 @@ public static function getLoader()

require __DIR__ . '/platform_check.php';

spl_autoload_register(array('ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16_alpha', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16_alpha', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16_alpha::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16_alpha
class ComposerStaticInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16
{
public static $classMap = array (
'Automattic\\Jetpack\\Jetpack_Mu_Wpcom' => __DIR__ . '/..' . '/automattic/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php',
Expand All @@ -24,7 +24,7 @@ class ComposerStaticInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_plugin
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->classMap = ComposerStaticInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16_alpha::$classMap;
$loader->classMap = ComposerStaticInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_0_16::$classMap;

}, null, ClassLoader::class);
}
Expand Down
42 changes: 15 additions & 27 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
"packages": [
{
"name": "automattic/jetpack-mu-wpcom",
"version": "5.10.0-alpha.1706104310",
"version_normalized": "5.10.0.0-alpha1706104310",
"version": "v5.10.0",
"version_normalized": "5.10.0.0",
"source": {
"type": "git",
"url": "https://github.com/Automattic/jetpack-mu-wpcom.git",
"reference": "fe200e568ac0de2ad143bd61a9bd9906bad14e81"
},
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom",
"reference": "e415f08d02b4b89b9d8e3a0d24de6a5d35d383e4"
"type": "zip",
"url": "https://api.github.com/repos/Automattic/jetpack-mu-wpcom/zipball/fe200e568ac0de2ad143bd61a9bd9906bad14e81",
"reference": "fe200e568ac0de2ad143bd61a9bd9906bad14e81",
"shasum": ""
},
"require": {
"php": ">=7.0"
Expand All @@ -20,6 +26,7 @@
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
},
"time": "2024-01-23T13:40:08+00:00",
"type": "jetpack-library",
"extra": {
"mirror-repo": "Automattic/jetpack-mu-wpcom",
Expand All @@ -41,32 +48,13 @@
"src/"
]
},
"scripts": {
"phpunit": [
"./vendor/phpunit/phpunit/phpunit --colors=always"
],
"test-php": [
"@composer phpunit"
],
"build-production": [
"pnpm run build-production-js"
],
"build-development": [
"pnpm run build-js"
],
"post-install-cmd": [
"WorDBless\\Composer\\InstallDropin::copy"
],
"post-update-cmd": [
"WorDBless\\Composer\\InstallDropin::copy"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0-or-later"
],
"description": "Enhances your site with features powered by WordPress.com",
"transport-options": {
"relative": false
"support": {
"source": "https://github.com/Automattic/jetpack-mu-wpcom/tree/v5.10.0"
},
"install-path": "../automattic/jetpack-mu-wpcom"
}
Expand Down
Loading

0 comments on commit 1160f9f

Please sign in to comment.