diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
commit | a415c29efee45520ae252d2aa28f1083a521cd7b (patch) | |
tree | f4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-admin/user | |
parent | Initial commit. (diff) | |
download | wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip |
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-admin/user')
-rw-r--r-- | wp-admin/user/about.php | 13 | ||||
-rw-r--r-- | wp-admin/user/admin.php | 35 | ||||
-rw-r--r-- | wp-admin/user/credits.php | 13 | ||||
-rw-r--r-- | wp-admin/user/freedoms.php | 13 | ||||
-rw-r--r-- | wp-admin/user/index.php | 13 | ||||
-rw-r--r-- | wp-admin/user/menu.php | 22 | ||||
-rw-r--r-- | wp-admin/user/privacy.php | 13 | ||||
-rw-r--r-- | wp-admin/user/profile.php | 13 | ||||
-rw-r--r-- | wp-admin/user/user-edit.php | 13 |
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'; |