Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-admin
/
includes
/
File Content:
class-wp-internal-pointers.php
<?php /** * Administration API: WP_Internal_Pointers class * * @package WordPress * @subpackage Administration * @since 4.4.0 */ /** * Core class used to implement an internal admin pointers API. * * @since 3.3.0 */ #[AllowDynamicProperties] final class WP_Internal_Pointers { /** * Initializes the new feature pointers. * * @since 3.3.0 * * All pointers can be disabled using the following: * remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) ); * * Individual pointers (e.g. wp390_widgets) can be disabled using the following: * * function yourprefix_remove_pointers() { * remove_action( * 'admin_print_footer_scripts', * array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) * ); * } * add_action( 'admin_enqueue_scripts', 'yourprefix_remove_pointers', 11 ); * * @param string $hook_suffix The current admin page. */ public static function enqueue_scripts( $hook_suffix ) { /* * Register feature pointers * * Format: * array( * hook_suffix => pointer callback * ) * * Example: * array( * 'themes.php' => 'wp390_widgets' * ) */ $registered_pointers = array( // None currently. ); // Check if screen related pointer is registered. if ( empty( $registered_pointers[ $hook_suffix ] ) ) { return; } $pointers = (array) $registered_pointers[ $hook_suffix ]; /* * Specify required capabilities for feature pointers * * Format: * array( * pointer callback => Array of required capabilities * ) * * Example: * array( * 'wp390_widgets' => array( 'edit_theme_options' ) * ) */ $caps_required = array( // None currently. ); // Get dismissed pointers. $dismissed = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) ); $got_pointers = false; foreach ( array_diff( $pointers, $dismissed ) as $pointer ) { if ( isset( $caps_required[ $pointer ] ) ) { foreach ( $caps_required[ $pointer ] as $cap ) { if ( ! current_user_can( $cap ) ) { continue 2; } } } // Bind pointer print function. add_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_' . $pointer ) ); $got_pointers = true; } if ( ! $got_pointers ) { return; } // Add pointers script and style to queue. wp_enqueue_style( 'wp-pointer' ); wp_enqueue_script( 'wp-pointer' ); } /** * Prints the pointer JavaScript data. * * @since 3.3.0 * * @param string $pointer_id The pointer ID. * @param string $selector The HTML elements, on which the pointer should be attached. * @param array $args Arguments to be passed to the pointer JS (see wp-pointer.js). */ private static function print_js( $pointer_id, $selector, $args ) { if ( empty( $pointer_id ) || empty( $selector ) || empty( $args ) || empty( $args['content'] ) ) { return; } ?> <script type="text/javascript"> (function($){ var options = <?php echo wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); ?>, setup; if ( ! options ) return; options = $.extend( options, { close: function() { $.post( ajaxurl, { pointer: '<?php echo $pointer_id; ?>', action: 'dismiss-wp-pointer' }); } }); setup = function() { $('<?php echo $selector; ?>').first().pointer( options ).pointer('open'); }; if ( options.position && options.position.defer_loading ) $(window).bind( 'load.wp-pointers', setup ); else $( function() { setup(); } ); })( jQuery ); </script> <?php } public static function pointer_wp330_toolbar() {} public static function pointer_wp330_media_uploader() {} public static function pointer_wp330_saving_widgets() {} public static function pointer_wp340_customize_current_theme_link() {} public static function pointer_wp340_choose_image_from_library() {} public static function pointer_wp350_media() {} public static function pointer_wp360_revisions() {} public static function pointer_wp360_locks() {} public static function pointer_wp390_widgets() {} public static function pointer_wp410_dfw() {} public static function pointer_wp496_privacy() {} /** * Prevents new users from seeing existing 'new feature' pointers. * * @since 3.3.0 * * @param int $user_id User ID. */ public static function dismiss_pointers_for_new_users( $user_id ) { add_user_meta( $user_id, 'dismissed_wp_pointers', '' ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
admin-filters.php
8034 bytes
0644
admin.php
3628 bytes
0644
ajax-actions.php
151895 bytes
0644
bookmark.php
11725 bytes
0644
class-automatic-upgrader-skin.php
3663 bytes
0644
class-bulk-plugin-upgrader-skin.php
2590 bytes
0644
class-bulk-theme-upgrader-skin.php
2660 bytes
0644
class-bulk-upgrader-skin.php
6753 bytes
0644
class-core-upgrader.php
15191 bytes
0644
class-custom-background.php
21685 bytes
0644
class-custom-image-header.php
49287 bytes
0644
class-file-upload-upgrader.php
4163 bytes
0644
class-ftp-pure.php
5426 bytes
0644
class-ftp-sockets.php
8479 bytes
0644
class-ftp.php
27370 bytes
0644
class-language-pack-upgrader-skin.php
2870 bytes
0644
class-language-pack-upgrader.php
15561 bytes
0644
class-pclzip.php
196695 bytes
0644
class-plugin-installer-skin.php
12053 bytes
0644
class-plugin-upgrader-skin.php
3278 bytes
0644
class-plugin-upgrader.php
23444 bytes
0644
class-theme-installer-skin.php
13078 bytes
0644
class-theme-upgrader-skin.php
4176 bytes
0644
class-theme-upgrader.php
26904 bytes
0644
class-walker-category-checklist.php
5091 bytes
0644
class-walker-nav-menu-checklist.php
5707 bytes
0644
class-walker-nav-menu-edit.php
14263 bytes
0644
class-wp-ajax-upgrader-skin.php
4193 bytes
0644
class-wp-application-passwords-list-table.php
6949 bytes
0644
class-wp-automatic-updater.php
61902 bytes
0644
class-wp-comments-list-table.php
33179 bytes
0644
class-wp-community-events.php
18681 bytes
0644
class-wp-debug-data.php
67592 bytes
0644
class-wp-filesystem-base.php
24410 bytes
0644
class-wp-filesystem-direct.php
18143 bytes
0644
class-wp-filesystem-ftpext.php
23255 bytes
0644
class-wp-filesystem-ftpsockets.php
18479 bytes
0644
class-wp-filesystem-ssh2.php
23310 bytes
0644
class-wp-importer.php
7512 bytes
0644
class-wp-internal-pointers.php
4616 bytes
0644
class-wp-links-list-table.php
9241 bytes
0644
class-wp-list-table-compat.php
1497 bytes
0644
class-wp-list-table.php
53004 bytes
0644
class-wp-media-list-table.php
25899 bytes
0644
class-wp-ms-sites-list-table.php
22133 bytes
0644
class-wp-ms-themes-list-table.php
28438 bytes
0644
class-wp-ms-users-list-table.php
15719 bytes
0644
class-wp-plugin-install-list-table.php
25127 bytes
0644
class-wp-plugins-list-table.php
57794 bytes
0644
class-wp-post-comments-list-table.php
1453 bytes
0644
class-wp-posts-list-table.php
65190 bytes
0644
class-wp-privacy-data-export-requests-list-table.php
5563 bytes
0644
class-wp-privacy-data-removal-requests-list-table.php
5715 bytes
0644
class-wp-privacy-policy-content.php
32665 bytes
0644
class-wp-privacy-requests-table.php
14791 bytes
0644
class-wp-screen.php
37348 bytes
0644
class-wp-site-health-auto-updates.php
14337 bytes
0644
class-wp-site-health.php
124812 bytes
0644
class-wp-site-icon.php
6414 bytes
0644
class-wp-terms-list-table.php
21232 bytes
0644
class-wp-theme-install-list-table.php
15599 bytes
0644
class-wp-themes-list-table.php
10388 bytes
0644
class-wp-upgrader-skin.php
7110 bytes
0644
class-wp-upgrader-skins.php
1477 bytes
0644
class-wp-upgrader.php
47977 bytes
0644
class-wp-users-list-table.php
19058 bytes
0644
comment.php
6231 bytes
0644
continents-cities.php
20540 bytes
0644
credits.php
5870 bytes
0644
dashboard.php
69817 bytes
0644
deprecated.php
41776 bytes
0644
edit-tag-messages.php
1478 bytes
0644
export.php
25862 bytes
0644
file.php
98244 bytes
0644
image-edit.php
44157 bytes
0644
image.php
42736 bytes
0644
import.php
6617 bytes
0644
list-table.php
3802 bytes
0644
media.php
119100 bytes
0644
menu.php
9618 bytes
0644
meta-boxes.php
65886 bytes
0644
misc.php
45804 bytes
0644
ms-admin-filters.php
1296 bytes
0644
ms-deprecated.php
3770 bytes
0644
ms.php
34337 bytes
0644
nav-menu.php
50017 bytes
0644
network.php
26983 bytes
0644
noop.php
1148 bytes
0644
options.php
4290 bytes
0644
plugin-install.php
39110 bytes
0644
plugin.php
93519 bytes
0644
post.php
82324 bytes
0644
privacy-tools.php
33457 bytes
0644
revision.php
16569 bytes
0644
schema.php
45529 bytes
0644
screen.php
6378 bytes
0644
taxonomy.php
8423 bytes
0644
template.php
99287 bytes
0644
theme-install.php
6990 bytes
0644
theme.php
47742 bytes
0644
translation-install.php
11075 bytes
0644
update-core.php
70514 bytes
0644
update.php
34437 bytes
0644
upgrade.php
116018 bytes
0644
user.php
23532 bytes
0644
widgets.php
10912 bytes
0644
N4ST4R_ID | Naxtarrr