/
home
/
altere25
/
berryglowbeauty.com
/
wp-admin
/
includes
/
/home/altere25/berryglowbeauty.com/wp-admin/includes
mkdir
upload
Name
Size
Mode
Actions
admin-filters.php
6538
0644
edit
dl
rm
admin.php
3650
0644
edit
dl
rm
ajax-actions.php
140999
0644
edit
dl
rm
bookmark.php
9511
0644
edit
dl
rm
class-automatic-upgrader-skin.php
3161
0644
edit
dl
rm
class-bulk-plugin-upgrader-skin.php
2073
0644
edit
dl
rm
class-bulk-theme-upgrader-skin.php
2107
0644
edit
dl
rm
class-bulk-upgrader-skin.php
5309
0644
edit
dl
rm
class-core-upgrader.php
14458
0644
edit
dl
rm
class-custom-background.php
20782
0644
edit
dl
rm
class-custom-image-header.php
47888
0644
edit
dl
rm
class-file-upload-upgrader.php
4176
0644
edit
dl
rm
class-ftp-pure.php
5400
0644
edit
dl
rm
class-ftp-sockets.php
8449
0644
edit
dl
rm
class-ftp.php
27127
0644
edit
dl
rm
class-language-pack-upgrader-skin.php
2384
0644
edit
dl
rm
class-language-pack-upgrader.php
14739
0644
edit
dl
rm
class-pclzip.php
196037
0644
edit
dl
rm
class-plugin-installer-skin.php
4620
0644
edit
dl
rm
class-plugin-upgrader-skin.php
2731
0644
edit
dl
rm
class-plugin-upgrader.php
15185
0644
edit
dl
rm
class-theme-installer-skin.php
4385
0644
edit
dl
rm
class-theme-upgrader-skin.php
3702
0644
edit
dl
rm
class-theme-upgrader.php
20317
0644
edit
dl
rm
class-walker-category-checklist.php
4257
0644
edit
dl
rm
class-walker-nav-menu-checklist.php
5183
0644
edit
dl
rm
class-walker-nav-menu-edit.php
11839
0644
edit
dl
rm
class-wp-ajax-upgrader-skin.php
3258
0644
edit
dl
rm
class-wp-automatic-updater.php
36166
0644
edit
dl
rm
class-wp-comments-list-table.php
28462
0644
edit
dl
rm
class-wp-community-events.php
15948
0644
edit
dl
rm
class-wp-debug-data.php
47872
0644
edit
dl
rm
class-wp-filesystem-base.php
23104
0644
edit
dl
rm
class-wp-filesystem-direct.php
16438
0644
edit
dl
rm
class-wp-filesystem-ftpext.php
19964
0644
edit
dl
rm
class-wp-filesystem-ftpsockets.php
16753
0644
edit
dl
rm
class-wp-filesystem-ssh2.php
22074
0644
edit
dl
rm
class-wp-importer.php
7532
0644
edit
dl
rm
class-wp-internal-pointers.php
4534
0644
edit
dl
rm
class-wp-links-list-table.php
7828
0644
edit
dl
rm
class-wp-list-table-compat.php
1071
0644
edit
dl
rm
class-wp-list-table.php
38931
0644
edit
dl
rm
class-wp-media-list-table.php
22863
0644
edit
dl
rm
class-wp-ms-sites-list-table.php
20245
0644
edit
dl
rm
class-wp-ms-themes-list-table.php
21061
0644
edit
dl
rm
class-wp-ms-users-list-table.php
13961
0644
edit
dl
rm
class-wp-plugin-install-list-table.php
23176
0644
edit
dl
rm
class-wp-plugins-list-table.php
35985
0644
edit
dl
rm
class-wp-post-comments-list-table.php
1472
0644
edit
dl
rm
class-wp-posts-list-table.php
57100
0644
edit
dl
rm
class-wp-privacy-data-export-requests-list-table.php
4562
0644
edit
dl
rm
class-wp-privacy-data-removal-requests-list-table.php
4728
0644
edit
dl
rm
class-wp-privacy-policy-content.php
33141
0644
edit
dl
rm
class-wp-privacy-requests-table.php
11287
0644
edit
dl
rm
class-wp-screen.php
35761
0644
edit
dl
rm
class-wp-site-health-auto-updates.php
13518
0644
edit
dl
rm
class-wp-site-health.php
68134
0644
edit
dl
rm
class-wp-site-icon.php
6132
0644
edit
dl
rm
class-wp-terms-list-table.php
18679
0644
edit
dl
rm
class-wp-theme-install-list-table.php
15375
0644
edit
dl
rm
class-wp-themes-list-table.php
10166
0644
edit
dl
rm
class-wp-upgrader-skin.php
5164
0644
edit
dl
rm
class-wp-upgrader-skins.php
1477
0644
edit
dl
rm
class-wp-upgrader.php
35670
0644
edit
dl
rm
class-wp-users-list-table.php
17751
0644
edit
dl
rm
comment.php
6071
0644
edit
dl
rm
continents-cities.php
20750
0644
edit
dl
rm
credits.php
5551
0644
edit
dl
rm
dashboard.php
61250
0644
edit
dl
rm
deprecated.php
40595
0644
edit
dl
rm
edit-tag-messages.php
1437
0644
edit
dl
rm
export.php
23609
0644
edit
dl
rm
file.php
79821
0644
edit
dl
rm
image-edit.php
35172
0644
edit
dl
rm
image.php
34147
0644
edit
dl
rm
import.php
6697
0644
edit
dl
rm
list-table.php
3187
0644
edit
dl
rm
media.php
113186
0644
edit
dl
rm
menu.php
9141
0644
edit
dl
rm
meta-boxes.php
62556
0644
edit
dl
rm
misc.php
43022
0644
edit
dl
rm
ms-admin-filters.php
1370
0644
edit
dl
rm
ms-deprecated.php
3031
0644
edit
dl
rm
ms.php
33692
0644
edit
dl
rm
nav-menu.php
46094
0644
edit
dl
rm
network.php
24414
0644
edit
dl
rm
noop.php
1086
0644
edit
dl
rm
options.php
4108
0644
edit
dl
rm
plugin-install.php
34450
0644
edit
dl
rm
plugin.php
83171
0644
edit
dl
rm
post.php
74807
0644
edit
dl
rm
privacy-tools.php
27782
0644
edit
dl
rm
revision.php
15970
0644
edit
dl
rm
schema.php
41764
0644
edit
dl
rm
screen.php
6247
0644
edit
dl
rm
taxonomy.php
7953
0644
edit
dl
rm
template.php
90506
0644
edit
dl
rm
theme-install.php
6568
0644
edit
dl
rm
theme.php
34242
0644
edit
dl
rm
translation-install.php
8689
0644
edit
dl
rm
update-core.php
59133
0644
edit
dl
rm
update.php
28560
0644
edit
dl
rm
upgrade.php
104244
0644
edit
dl
rm
user.php
18436
0644
edit
dl
rm
widgets.php
10790
0644
edit
dl
rm
Edit:
/home/altere25/berryglowbeauty.com/wp-admin/includes/bookmark.php
(9511B)
<?php /** * WordPress Bookmark Administration API * * @package WordPress * @subpackage Administration */ /** * Add a link to using values provided in $_POST. * * @since 2.0.0 * * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success. */ function add_link() { return edit_link(); } /** * Updates or inserts a link using values provided in $_POST. * * @since 2.0.0 * * @param int $link_id Optional. ID of the link to edit. Default 0. * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success. */ function edit_link( $link_id = 0 ) { if ( ! current_user_can( 'manage_links' ) ) { wp_die( '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>', 403 ); } $_POST['link_url'] = esc_html( $_POST['link_url'] ); $_POST['link_url'] = esc_url( $_POST['link_url'] ); $_POST['link_name'] = esc_html( $_POST['link_name'] ); $_POST['link_image'] = esc_html( $_POST['link_image'] ); $_POST['link_rss'] = esc_url( $_POST['link_rss'] ); if ( ! isset( $_POST['link_visible'] ) || 'N' != $_POST['link_visible'] ) { $_POST['link_visible'] = 'Y'; } if ( ! empty( $link_id ) ) { $_POST['link_id'] = $link_id; return wp_update_link( $_POST ); } else { return wp_insert_link( $_POST ); } } /** * Retrieves the default link for editing. * * @since 2.0.0 * * @return stdClass Default link object. */ function get_default_link_to_edit() { $link = new stdClass; if ( isset( $_GET['linkurl'] ) ) { $link->link_url = esc_url( wp_unslash( $_GET['linkurl'] ) ); } else { $link->link_url = ''; } if ( isset( $_GET['name'] ) ) { $link->link_name = esc_attr( wp_unslash( $_GET['name'] ) ); } else { $link->link_name = ''; } $link->link_visible = 'Y'; return $link; } /** * Deletes a specified link from the database. * * @since 2.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $link_id ID of the link to delete * @return true Always true. */ function wp_delete_link( $link_id ) { global $wpdb; /** * Fires before a link is deleted. * * @since 2.0.0 * * @param int $link_id ID of the link to delete. */ do_action( 'delete_link', $link_id ); wp_delete_object_term_relationships( $link_id, 'link_category' ); $wpdb->delete( $wpdb->links, array( 'link_id' => $link_id ) ); /** * Fires after a link has been deleted. * * @since 2.2.0 * * @param int $link_id ID of the deleted link. */ do_action( 'deleted_link', $link_id ); clean_bookmark_cache( $link_id ); return true; } /** * Retrieves the link categories associated with the link specified. * * @since 2.1.0 * * @param int $link_id Link ID to look up * @return array The requested link's categories */ function wp_get_link_cats( $link_id = 0 ) { $cats = wp_get_object_terms( $link_id, 'link_category', array( 'fields' => 'ids' ) ); return array_unique( $cats ); } /** * Retrieves link data based on its ID. * * @since 2.0.0 * * @param int|stdClass $link Link ID or object to retrieve. * @return object Link object for editing. */ function get_link_to_edit( $link ) { return get_bookmark( $link, OBJECT, 'edit' ); } /** * Inserts/updates links into/in the database. * * @since 2.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param array $linkdata Elements that make up the link to insert. * @param bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false. * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success. */ function wp_insert_link( $linkdata, $wp_error = false ) { global $wpdb; $defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0, ); $parsed_args = wp_parse_args( $linkdata, $defaults ); $parsed_args = wp_unslash( sanitize_bookmark( $parsed_args, 'db' ) ); $link_id = $parsed_args['link_id']; $link_name = $parsed_args['link_name']; $link_url = $parsed_args['link_url']; $update = false; if ( ! empty( $link_id ) ) { $update = true; } if ( trim( $link_name ) == '' ) { if ( trim( $link_url ) != '' ) { $link_name = $link_url; } else { return 0; } } if ( trim( $link_url ) == '' ) { return 0; } $link_rating = ( ! empty( $parsed_args['link_rating'] ) ) ? $parsed_args['link_rating'] : 0; $link_image = ( ! empty( $parsed_args['link_image'] ) ) ? $parsed_args['link_image'] : ''; $link_target = ( ! empty( $parsed_args['link_target'] ) ) ? $parsed_args['link_target'] : ''; $link_visible = ( ! empty( $parsed_args['link_visible'] ) ) ? $parsed_args['link_visible'] : 'Y'; $link_owner = ( ! empty( $parsed_args['link_owner'] ) ) ? $parsed_args['link_owner'] : get_current_user_id(); $link_notes = ( ! empty( $parsed_args['link_notes'] ) ) ? $parsed_args['link_notes'] : ''; $link_description = ( ! empty( $parsed_args['link_description'] ) ) ? $parsed_args['link_description'] : ''; $link_rss = ( ! empty( $parsed_args['link_rss'] ) ) ? $parsed_args['link_rss'] : ''; $link_rel = ( ! empty( $parsed_args['link_rel'] ) ) ? $parsed_args['link_rel'] : ''; $link_category = ( ! empty( $parsed_args['link_category'] ) ) ? $parsed_args['link_category'] : array(); // Make sure we set a valid category. if ( ! is_array( $link_category ) || 0 == count( $link_category ) ) { $link_category = array( get_option( 'default_link_category' ) ); } if ( $update ) { if ( false === $wpdb->update( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ), compact( 'link_id' ) ) ) { if ( $wp_error ) { return new WP_Error( 'db_update_error', __( 'Could not update link in the database' ), $wpdb->last_error ); } else { return 0; } } } else { if ( false === $wpdb->insert( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ) ) ) { if ( $wp_error ) { return new WP_Error( 'db_insert_error', __( 'Could not insert link into the database' ), $wpdb->last_error ); } else { return 0; } } $link_id = (int) $wpdb->insert_id; } wp_set_link_cats( $link_id, $link_category ); if ( $update ) { /** * Fires after a link was updated in the database. * * @since 2.0.0 * * @param int $link_id ID of the link that was updated. */ do_action( 'edit_link', $link_id ); } else { /** * Fires after a link was added to the database. * * @since 2.0.0 * * @param int $link_id ID of the link that was added. */ do_action( 'add_link', $link_id ); } clean_bookmark_cache( $link_id ); return $link_id; } /** * Update link with the specified link categories. * * @since 2.1.0 * * @param int $link_id ID of the link to update. * @param int[] $link_categories Array of link category IDs to add the link to. */ function wp_set_link_cats( $link_id = 0, $link_categories = array() ) { // If $link_categories isn't already an array, make it one: if ( ! is_array( $link_categories ) || 0 == count( $link_categories ) ) { $link_categories = array( get_option( 'default_link_category' ) ); } $link_categories = array_map( 'intval', $link_categories ); $link_categories = array_unique( $link_categories ); wp_set_object_terms( $link_id, $link_categories, 'link_category' ); clean_bookmark_cache( $link_id ); } /** * Updates a link in the database. * * @since 2.0.0 * * @param array $linkdata Link data to update. * @return int|WP_Error Value 0 or WP_Error on failure. The updated link ID on success. */ function wp_update_link( $linkdata ) { $link_id = (int) $linkdata['link_id']; $link = get_bookmark( $link_id, ARRAY_A ); // Escape data pulled from DB. $link = wp_slash( $link ); // Passed link category list overwrites existing category list if not empty. if ( isset( $linkdata['link_category'] ) && is_array( $linkdata['link_category'] ) && 0 != count( $linkdata['link_category'] ) ) { $link_cats = $linkdata['link_category']; } else { $link_cats = $link['link_category']; } // Merge old and new fields with new fields overwriting old ones. $linkdata = array_merge( $link, $linkdata ); $linkdata['link_category'] = $link_cats; return wp_insert_link( $linkdata ); } /** * Outputs the 'disabled' message for the WordPress Link Manager. * * @since 3.5.0 * @access private * * @global string $pagenow */ function wp_link_manager_disabled_message() { global $pagenow; if ( 'link-manager.php' != $pagenow && 'link-add.php' != $pagenow && 'link.php' != $pagenow ) { return; } add_filter( 'pre_option_link_manager_enabled', '__return_true', 100 ); $really_can_manage_links = current_user_can( 'manage_links' ); remove_filter( 'pre_option_link_manager_enabled', '__return_true', 100 ); if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) { $link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' ); /* translators: %s: URL to install the Link Manager plugin. */ wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) ); } wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); }
Save
cmd:
run