From 592261ef3bd346d11a40e3fe8a9097d363a28ad0 Mon Sep 17 00:00:00 2001 From: Chris Wilcoxson Date: Tue, 23 Aug 2016 15:23:48 -0500 Subject: [PATCH] Changes from wp_get_sites() to get_sites() since the former was deprecated in WP v4.6. --- views/options-page.php | 50 +++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/views/options-page.php b/views/options-page.php index 7efe9bc..a14dde5 100755 --- a/views/options-page.php +++ b/views/options-page.php @@ -1,63 +1,63 @@
- +

Multisite Shared Menu Settings

Select the source site that will be used for the selected menu location(s).

Please Note: Use the same theme on each site to ensure menu location compatibility.

- -
+ + '; - + echo ''; - + // Output available theme menu locations... echo ''; ?>
'; - - + + $locations = get_registered_nav_menus(); $locationKeys = array_keys( $locations ); $menuLocation = get_option('mfs_override_menu_location'); - + if( !is_array( $menuLocation ) ) { $menuLocation = array( $menuLocation ); // backwards-compatibility from previous version } if( count($locations) ) { - + $option_count = 1; - + foreach ($locationKeys as $curLocation ) { if ( in_array ( $curLocation, $menuLocation ) ) { $checked = true; @@ -65,7 +65,7 @@ else { $checked = false; } - + echo '
'; $option_count++; } @@ -74,16 +74,16 @@ // No menu locations echo '
Error: No navigation menus have been registered for this theme. Please view WordPress\' documentation to learn how to register navigation menus.
'; } - + echo '
'; - + submit_button(); echo '
- -
\ No newline at end of file + +