Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack DNA: Move Sync Menus Module from Legacy to PSR-4 #12743

Merged
merged 5 commits into from Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/sync/legacy/class.jetpack-sync-modules.php
Expand Up @@ -14,7 +14,7 @@ class Jetpack_Sync_Modules {
'Jetpack_Sync_Module_Network_Options',
'Automattic\\Jetpack\\Sync\\Modules\\Terms',
'Jetpack_Sync_Module_Themes',
'Jetpack_Sync_Module_Menus',
'Automattic\\Jetpack\\Sync\\Modules\\Menus',
'Jetpack_Sync_Module_Users',
'Jetpack_Sync_Module_Posts',
'Jetpack_Sync_Module_Import',
Expand Down
@@ -1,6 +1,8 @@
<?php

class Jetpack_Sync_Module_Menus extends Jetpack_Sync_Module {
namespace Automattic\Jetpack\Sync\Modules;

class Menus extends \Jetpack_Sync_Module {
private $nav_items_just_added = array();

function name() {
Expand Down
1 change: 1 addition & 0 deletions tests/php/sync/test_class.jetpack-sync-plugins-updates.php
@@ -1,6 +1,7 @@
<?php

use Automattic\Jetpack\Constants;
use Automattic\Jetpack\Sync\Modules\Menus;
gititon marked this conversation as resolved.
Show resolved Hide resolved

if ( ! class_exists( 'WP_Test_Jetpack_Sync_Plugins' ) ) {
$sync_dir = dirname( __FILE__ );
Expand Down