summaryrefslogtreecommitdiffstats
path: root/wp-admin/user
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/user')
-rw-r--r--wp-admin/user/about.php13
-rw-r--r--wp-admin/user/admin.php35
-rw-r--r--wp-admin/user/credits.php13
-rw-r--r--wp-admin/user/freedoms.php13
-rw-r--r--wp-admin/user/index.php13
-rw-r--r--wp-admin/user/menu.php22
-rw-r--r--wp-admin/user/privacy.php13
-rw-r--r--wp-admin/user/profile.php13
-rw-r--r--wp-admin/user/user-edit.php13
9 files changed, 148 insertions, 0 deletions
diff --git a/wp-admin/user/about.php b/wp-admin/user/about.php
new file mode 100644
index 0000000..af06c62
--- /dev/null
+++ b/wp-admin/user/about.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * User Dashboard About administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 3.4.0
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once __DIR__ . '/admin.php';
+
+require ABSPATH . 'wp-admin/about.php';
diff --git a/wp-admin/user/admin.php b/wp-admin/user/admin.php
new file mode 100644
index 0000000..aee63ae
--- /dev/null
+++ b/wp-admin/user/admin.php
@@ -0,0 +1,35 @@
+<?php
+/**
+ * WordPress User Administration Bootstrap
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 3.1.0
+ */
+
+define( 'WP_USER_ADMIN', true );
+
+require_once dirname( __DIR__ ) . '/admin.php';
+
+if ( ! is_multisite() ) {
+ wp_redirect( admin_url() );
+ exit;
+}
+
+$redirect_user_admin_request = ( 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ) );
+
+/**
+ * Filters whether to redirect the request to the User Admin in Multisite.
+ *
+ * @since 3.2.0
+ *
+ * @param bool $redirect_user_admin_request Whether the request should be redirected.
+ */
+$redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );
+
+if ( $redirect_user_admin_request ) {
+ wp_redirect( user_admin_url() );
+ exit;
+}
+
+unset( $redirect_user_admin_request );
diff --git a/wp-admin/user/credits.php b/wp-admin/user/credits.php
new file mode 100644
index 0000000..b28461c
--- /dev/null
+++ b/wp-admin/user/credits.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * User Dashboard Credits administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 3.4.0
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once __DIR__ . '/admin.php';
+
+require ABSPATH . 'wp-admin/credits.php';
diff --git a/wp-admin/user/freedoms.php b/wp-admin/user/freedoms.php
new file mode 100644
index 0000000..9e2ebb0
--- /dev/null
+++ b/wp-admin/user/freedoms.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * User Dashboard Freedoms administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 3.4.0
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once __DIR__ . '/admin.php';
+
+require ABSPATH . 'wp-admin/freedoms.php';
diff --git a/wp-admin/user/index.php b/wp-admin/user/index.php
new file mode 100644
index 0000000..58906ce
--- /dev/null
+++ b/wp-admin/user/index.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * User Dashboard Administration Screen
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 3.1.0
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once __DIR__ . '/admin.php';
+
+require ABSPATH . 'wp-admin/index.php';
diff --git a/wp-admin/user/menu.php b/wp-admin/user/menu.php
new file mode 100644
index 0000000..23e81a8
--- /dev/null
+++ b/wp-admin/user/menu.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Build User Administration Menu.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 3.1.0
+ */
+
+$menu[2] = array( __( 'Dashboard' ), 'exist', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' );
+
+$menu[4] = array( '', 'exist', 'separator1', '', 'wp-menu-separator' );
+
+$menu[70] = array( __( 'Profile' ), 'exist', 'profile.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
+
+$menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' );
+
+$_wp_real_parent_file['users.php'] = 'profile.php';
+$compat = array();
+$submenu = array();
+
+require_once ABSPATH . 'wp-admin/includes/menu.php';
diff --git a/wp-admin/user/privacy.php b/wp-admin/user/privacy.php
new file mode 100644
index 0000000..207f29d
--- /dev/null
+++ b/wp-admin/user/privacy.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * User Dashboard Privacy administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 4.9.0
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once __DIR__ . '/admin.php';
+
+require ABSPATH . 'wp-admin/privacy.php';
diff --git a/wp-admin/user/profile.php b/wp-admin/user/profile.php
new file mode 100644
index 0000000..f9bd631
--- /dev/null
+++ b/wp-admin/user/profile.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * User Profile Administration Screen.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 3.1.0
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once __DIR__ . '/admin.php';
+
+require ABSPATH . 'wp-admin/profile.php';
diff --git a/wp-admin/user/user-edit.php b/wp-admin/user/user-edit.php
new file mode 100644
index 0000000..4cc64ef
--- /dev/null
+++ b/wp-admin/user/user-edit.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Edit user administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ * @since 3.1.0
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once __DIR__ . '/admin.php';
+
+require ABSPATH . 'wp-admin/user-edit.php';