Changeset 46591 for trunk/src/wp-admin/includes/class-wp-screen.php
- Timestamp:
- 10/26/2019 12:34:10 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-screen.php
r46590 r46591 15 15 final class WP_Screen { 16 16 /** 17 * Any action associated with the screen. 'add' for *-add.php and *-new.php screens. Empty otherwise. 17 * Any action associated with the screen. 18 * 19 * 'add' for *-add.php and *-new.php screens. Empty otherwise. 18 20 * 19 21 * @since 3.3.0 … … 23 25 24 26 /** 25 * The base type of the screen. This is typically the same as $id but with any post types and taxonomies stripped. 26 * For example, for an $id of 'edit-post' the base is 'edit'. 27 * The base type of the screen. 28 * 29 * This is typically the same as `$id` but with any post types and taxonomies stripped. 30 * For example, for an `$id` of 'edit-post' the base is 'edit'. 27 31 * 28 32 * @since 3.3.0 … … 79 83 /** 80 84 * The base menu parent. 81 * This is derived from $parent_file by removing the query string and any .php extension. 82 * $parent_file values of 'edit.php?post_type=page' and 'edit.php?post_type=post' have a $parent_base of 'edit'. 85 * 86 * This is derived from `$parent_file` by removing the query string and any .php extension. 87 * `$parent_file` values of 'edit.php?post_type=page' and 'edit.php?post_type=post' 88 * have a `$parent_base` of 'edit'. 83 89 * 84 90 * @since 3.3.0 … … 89 95 /** 90 96 * The parent_file for the screen per the admin menu system. 91 * Some $parent_file values are 'edit.php?post_type=page', 'edit.php', and 'options-general.php'. 97 * 98 * Some `$parent_file` values are 'edit.php?post_type=page', 'edit.php', and 'options-general.php'. 92 99 * 93 100 * @since 3.3.0 … … 98 105 /** 99 106 * The post type associated with the screen, if any. 107 * 100 108 * The 'edit.php?post_type=page' screen has a post type of 'page'. 101 109 * The 'edit-tags.php?taxonomy=$taxonomy&post_type=page' screen has a post type of 'page'. … … 108 116 /** 109 117 * The taxonomy associated with the screen, if any. 118 * 110 119 * The 'edit-tags.php?taxonomy=category' screen has a taxonomy of 'category'. 111 120 * … … 467 476 /** 468 477 * Set the parent information for the screen. 478 * 469 479 * This is called in admin-header.php after the menu parent for the screen has been determined. 470 480 * … … 481 491 /** 482 492 * Adds an option for the screen. 483 * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add screen options. 493 * 494 * Call this in template files after admin.php is loaded and before admin-header.php is loaded 495 * to add screen options. 484 496 * 485 497 * @since 3.3.0 … … 671 683 /** 672 684 * Add a sidebar to the contextual help for the screen. 673 * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add a sidebar to the contextual help. 685 * 686 * Call this in template files after admin.php is loaded and before admin-header.php is loaded 687 * to add a sidebar to the contextual help. 674 688 * 675 689 * @since 3.3.0
Note: See TracChangeset
for help on using the changeset viewer.