Changeset 54332 for trunk/src/wp-includes/load.php
- Timestamp:
- 09/27/2022 04:29:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r54259 r54332 1158 1158 * Determines whether the current request is for an administrative interface page. 1159 1159 * 1160 * This function is an alias for is_admin().1161 *1162 * @since 6.1.01163 *1164 * @see is_admin()1165 *1166 * @return bool True if inside WordPress administration interface, false otherwise.1167 */1168 function is_admin_screen() {1169 return is_admin();1170 }1171 1172 /**1173 * Determines whether the current request is for an administrative interface page.1174 *1175 1160 * Does not check if the user is an administrator; use current_user_can() 1176 1161 * for checking roles and capabilities. … … 1199 1184 * Determines whether the current request is for a site's administrative interface. 1200 1185 * 1201 * This function is an alias for is_blog_admin().1202 *1203 * @since 6.1.01204 *1205 * @see is_blog_admin()1206 *1207 * @return bool True if inside WordPress site administration pages.1208 */1209 function is_site_admin_screen() {1210 return is_blog_admin();1211 }1212 1213 /**1214 * Determines whether the current request is for a site's administrative interface.1215 *1216 1186 * e.g. `/wp-admin/` 1217 1187 * … … 1240 1210 * e.g. `/wp-admin/network/` 1241 1211 * 1242 * This function is an alias for is_network_admin().1243 *1244 * @since 6.1.01245 *1246 * @see is_network_admin()1247 *1248 * @return bool True if inside WordPress network administration pages.1249 */1250 function is_network_admin_screen() {1251 return is_network_admin();1252 }1253 1254 /**1255 * Determines whether the current request is for the network administrative interface.1256 *1257 * e.g. `/wp-admin/network/`1258 *1259 1212 * Does not check if the user is an administrator; use current_user_can() 1260 1213 * for checking roles and capabilities. … … 1277 1230 1278 1231 return false; 1279 }1280 1281 /**1282 * Determines whether the current request is for a user admin screen.1283 *1284 * e.g. `/wp-admin/user/`1285 *1286 * This function is an alias for is_user_admin().1287 *1288 * @since 6.1.01289 *1290 * @see is_user_admin()1291 *1292 * @return bool True if inside WordPress user administration pages.1293 */1294 function is_user_admin_screen() {1295 return is_user_admin();1296 1232 } 1297 1233
Note: See TracChangeset
for help on using the changeset viewer.