at path:ROOT / wp-admin / my-sites.php
run:R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
17.74 KB
2026-03-11 16:18:51
R W Run
5.03 KB
2026-03-11 16:18:51
R W Run
2.77 KB
2026-03-11 16:18:51
R W Run
479 By
2026-03-11 16:18:51
R W Run
9.12 KB
2026-03-11 16:18:51
R W Run
1.97 KB
2026-03-11 16:18:51
R W Run
12.35 KB
2026-03-11 16:18:51
R W Run
5.47 KB
2026-03-11 16:18:51
R W Run
10.09 KB
2026-03-11 16:18:51
R W Run
11.35 KB
2026-03-11 16:18:51
R W Run
5.86 KB
2026-03-11 16:18:51
R W Run
4.38 KB
2026-03-11 16:18:51
R W Run
489 By
2026-03-11 16:18:51
R W Run
499 By
2026-03-11 16:18:51
R W Run
11.01 KB
2026-03-11 16:18:51
R W Run
14.38 KB
2026-03-11 16:18:51
R W Run
28.83 KB
2026-03-11 16:18:51
R W Run
14.6 KB
2026-03-11 16:18:51
R W Run
8.34 KB
2026-03-11 16:18:51
R W Run
6.21 KB
2026-03-11 16:18:51
R W Run
10.44 KB
2026-03-11 16:18:51
R W Run
22 KB
2026-03-11 16:18:51
R W Run
19.48 KB
2026-03-11 16:18:51
R W Run
7.33 KB
2026-03-11 16:18:51
R W Run
7.75 KB
2026-03-11 16:18:51
R W Run
11.02 KB
2026-03-11 16:18:51
R W Run
4.8 KB
2026-03-11 16:18:51
R W Run
7.58 KB
2026-03-11 16:18:51
R W Run
7.68 KB
2026-03-11 16:18:51
R W Run
6.8 KB
2026-03-11 16:18:51
R W Run
17.77 KB
2026-03-11 16:18:51
R W Run
934 By
2026-03-11 16:18:51
R W Run
4.26 KB
2026-03-11 16:18:51
R W Run
2.72 KB
2026-03-11 16:18:51
R W Run
2.89 KB
2026-03-11 16:18:51
R W Run
2.02 KB
2026-03-11 16:18:51
R W Run
2.92 KB
2026-03-11 16:18:51
R W Run
3.2 KB
2026-03-11 16:18:51
R W Run
3.58 KB
2026-03-11 16:18:51
R W Run
819 By
2026-03-11 16:18:51
R W Run
9.82 KB
2026-03-11 16:18:51
R W Run
17.46 KB
2026-03-11 16:18:51
R W Run
307 By
2026-03-11 16:18:51
R W Run
196 By
2026-03-11 16:18:51
R W Run
4.5 KB
2026-03-11 16:18:51
R W Run
216 By
2026-03-11 16:18:51
R W Run
229 By
2026-03-11 16:18:51
R W Run
215 By
2026-03-11 16:18:51
R W Run
217 By
2026-03-11 16:18:51
R W Run
219 By
2026-03-11 16:18:51
R W Run
215 By
2026-03-11 16:18:51
R W Run
4.74 KB
2026-03-11 16:18:51
R W Run
48.19 KB
2026-03-11 16:18:51
R W Run
5.39 KB
2026-03-11 16:18:51
R W Run
15.92 KB
2026-03-11 16:18:51
R W Run
21.65 KB
2026-03-11 16:18:51
R W Run
621 By
2026-03-11 16:18:51
R W Run
6.38 KB
2026-03-11 16:18:51
R W Run
21.22 KB
2026-03-11 16:18:51
R W Run
9.95 KB
2026-03-11 16:18:51
R W Run
9.94 KB
2026-03-11 16:18:51
R W Run
9.1 KB
2026-03-11 16:18:51
R W Run
13.6 KB
2026-03-11 16:18:51
R W Run
13.75 KB
2026-03-11 16:18:51
R W Run
6.96 KB
2026-03-11 16:18:51
R W Run
30 KB
2026-03-11 16:18:51
R W Run
2.7 KB
2026-03-11 16:18:51
R W Run
10.03 KB
2026-03-11 16:18:51
R W Run
2.34 KB
2026-03-11 16:18:51
R W Run
3.67 KB
2026-03-11 16:18:51
R W Run
2.79 KB
2026-03-11 16:18:51
R W Run
283 By
2026-03-11 16:18:51
R W Run
5.7 KB
2026-03-11 16:18:51
R W Run
17.48 KB
2026-03-11 16:18:51
R W Run
11.98 KB
2026-03-11 16:18:51
R W Run
3.99 KB
2026-03-11 16:18:51
R W Run
10.2 KB
2026-03-11 16:18:51
R W Run
2.2 KB
2026-03-11 16:18:51
R W Run
16.87 KB
2026-03-11 16:18:51
R W Run
23.38 KB
2026-03-11 16:18:51
R W Run
47.92 KB
2026-03-11 16:18:51
R W Run
3.43 KB
2026-03-11 16:18:51
R W Run
45.45 KB
2026-03-11 16:18:51
R W Run
12.79 KB
2026-03-11 16:18:51
R W Run
341 By
2026-03-11 16:18:51
R W Run
6.27 KB
2026-03-11 16:18:51
R W Run
14.9 KB
2026-03-11 16:18:51
R W Run
40.36 KB
2026-03-11 16:18:51
R W Run
24.05 KB
2026-03-11 16:18:51
R W Run
23.29 KB
2026-03-11 16:18:51
R W Run
5.12 KB
2026-03-11 16:18:51
R W Run
19.29 KB
2026-03-11 16:18:51
R W Run
1.09 KB
2026-03-11 16:18:51
R W Run
error_log
📄my-sites.php
1<?php
2/**
3 * My Sites dashboard.
4 *
5 * @package WordPress
6 * @subpackage Multisite
7 * @since 3.0.0
8 */
9
10require_once __DIR__ . '/admin.php';
11
12if ( ! is_multisite() ) {
13 wp_die( __( 'Multisite support is not enabled.' ) );
14}
15
16if ( ! current_user_can( 'read' ) ) {
17 wp_die( __( 'Sorry, you are not allowed to access this page.' ) );
18}
19
20$action = isset( $_POST['action'] ) ? $_POST['action'] : 'splash';
21
22$blogs = get_blogs_of_user( $current_user->ID );
23
24$updated = false;
25if ( 'updateblogsettings' === $action && isset( $_POST['primary_blog'] ) ) {
26 check_admin_referer( 'update-my-sites' );
27
28 $blog = get_site( (int) $_POST['primary_blog'] );
29 if ( $blog && isset( $blog->domain ) ) {
30 update_user_meta( $current_user->ID, 'primary_blog', (int) $_POST['primary_blog'] );
31 $updated = true;
32 } else {
33 wp_die( __( 'The primary site you chose does not exist.' ) );
34 }
35}
36
37// Used in the HTML title tag.
38$title = __( 'My Sites' );
39$parent_file = 'index.php';
40
41get_current_screen()->add_help_tab(
42 array(
43 'id' => 'overview',
44 'title' => __( 'Overview' ),
45 'content' =>
46 '<p>' . __( 'This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.' ) . '</p>',
47 )
48);
49
50get_current_screen()->set_help_sidebar(
51 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
52 '<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_My_Sites_Screen">Documentation on My Sites</a>' ) . '</p>' .
53 '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
54);
55
56require_once ABSPATH . 'wp-admin/admin-header.php';
57
58if ( $updated ) {
59 wp_admin_notice(
60 '<strong>' . __( 'Settings saved.' ) . '</strong>',
61 array(
62 'type' => 'success',
63 'dismissible' => true,
64 'id' => 'message',
65 )
66 );
67}
68?>
69
70<div class="wrap">
71<h1 class="wp-heading-inline">
72<?php
73echo esc_html( $title );
74?>
75</h1>
76
77<?php
78if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ), true ) ) {
79 /** This filter is documented in wp-login.php */
80 $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
81 printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html__( 'Add New Site' ) );
82}
83
84if ( empty( $blogs ) ) :
85 wp_admin_notice(
86 '<strong>' . __( 'You must be a member of at least one site to use this page.' ) . '</strong>',
87 array(
88 'type' => 'error',
89 'dismissible' => true,
90 )
91 );
92 ?>
93 <?php
94else :
95 ?>
96
97<hr class="wp-header-end">
98
99<form id="myblogs" method="post">
100 <?php
101 choose_primary_blog();
102 /**
103 * Fires before the sites list on the My Sites screen.
104 *
105 * @since 3.0.0
106 */
107 do_action( 'myblogs_allblogs_options' );
108 ?>
109 <br clear="all" />
110 <ul class="my-sites striped">
111 <?php
112 /**
113 * Filters the settings HTML markup in the Global Settings section on the My Sites screen.
114 *
115 * By default, the Global Settings section is hidden. Passing a non-empty
116 * string to this filter will enable the section, and allow new settings
117 * to be added, either globally or for specific sites.
118 *
119 * @since MU (3.0.0)
120 *
121 * @param string $settings_html The settings HTML markup. Default empty.
122 * @param string $context Context of the setting (global or site-specific). Default 'global'.
123 */
124 $settings_html = apply_filters( 'myblogs_options', '', 'global' );
125
126 if ( $settings_html ) {
127 echo '<h3>' . __( 'Global Settings' ) . '</h3>';
128 echo $settings_html;
129 }
130
131 reset( $blogs );
132
133 foreach ( $blogs as $user_blog ) {
134 switch_to_blog( $user_blog->userblog_id );
135
136 echo '<li>';
137 echo "<h3>{$user_blog->blogname}</h3>";
138
139 $actions = "<a href='" . esc_url( home_url() ) . "'>" . __( 'Visit' ) . '</a>';
140
141 if ( current_user_can( 'read' ) ) {
142 $actions .= " | <a href='" . esc_url( admin_url() ) . "'>" . __( 'Dashboard' ) . '</a>';
143 }
144
145 /**
146 * Filters the row links displayed for each site on the My Sites screen.
147 *
148 * @since MU (3.0.0)
149 *
150 * @param string $actions The HTML site link markup.
151 * @param object $user_blog An object containing the site data.
152 */
153 $actions = apply_filters( 'myblogs_blog_actions', $actions, $user_blog );
154
155 echo "<p class='my-sites-actions'>" . $actions . '</p>';
156
157 /** This filter is documented in wp-admin/my-sites.php */
158 echo apply_filters( 'myblogs_options', '', $user_blog );
159
160 echo '</li>';
161
162 restore_current_blog();
163 }
164 ?>
165 </ul>
166 <?php
167 if ( count( $blogs ) > 1 || has_action( 'myblogs_allblogs_options' ) || has_filter( 'myblogs_options' ) ) {
168 ?>
169 <input type="hidden" name="action" value="updateblogsettings" />
170 <?php
171 wp_nonce_field( 'update-my-sites' );
172 submit_button();
173 }
174 ?>
175 </form>
176<?php endif; ?>
177 </div>
178<?php
179require_once ABSPATH . 'wp-admin/admin-footer.php';
180
Ui Ux Design – Teachers Night Out

Get in Touch

© 2024 Teachers Night Out. All Rights Reserved.