✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/wordpress-seo/admin//ajax.php
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin
 */

if ( ! defined( 'WPSEO_VERSION' ) ) {
	header( 'Status: 403 Forbidden' );
	header( 'HTTP/1.1 403 Forbidden' );
	exit();
}

/**
 * Convenience function to JSON encode and echo results and then die.
 *
 * @param array $results Results array for encoding.
 *
 * @return void
 */
function wpseo_ajax_json_echo_die( $results ) {
	// phpcs:ignore WordPress.Security.EscapeOutput -- Reason: WPSEO_Utils::format_json_encode is safe.
	echo WPSEO_Utils::format_json_encode( $results );
	exit();
}

/**
 * Function used from AJAX calls, takes it variables from $_POST, dies on exit.
 *
 * @return void
 */
function wpseo_set_option() {
	if ( ! current_user_can( 'manage_options' ) ) {
		exit( '-1' );
	}

	check_ajax_referer( 'wpseo-setoption' );

	if ( ! isset( $_POST['option'] ) || ! is_string( $_POST['option'] ) ) {
		exit( '-1' );
	}

	$option = sanitize_text_field( wp_unslash( $_POST['option'] ) );
	if ( $option !== 'page_comments' ) {
		exit( '-1' );
	}

	update_option( $option, 0 );
	exit( '1' );
}

add_action( 'wp_ajax_wpseo_set_option', 'wpseo_set_option' );

/**
 * Since 3.2 Notifications are dismissed in the Notification Center.
 */
add_action( 'wp_ajax_yoast_dismiss_notification', [ 'Yoast_Notification_Center', 'ajax_dismiss_notification' ] );

/**
 * Function used to remove the admin notices for several purposes, dies on exit.
 *
 * @return void
 */
function wpseo_set_ignore() {
	if ( ! current_user_can( 'manage_options' ) ) {
		exit( '-1' );
	}

	check_ajax_referer( 'wpseo-ignore' );

	if ( ! isset( $_POST['option'] ) || ! is_string( $_POST['option'] ) ) {
		exit( '-1' );
	}

	$ignore_key = sanitize_text_field( wp_unslash( $_POST['option'] ) );
	WPSEO_Options::set( 'ignore_' . $ignore_key, true );

	exit( '1' );
}

add_action( 'wp_ajax_wpseo_set_ignore', 'wpseo_set_ignore' );

/**
 * Save an individual SEO title from the Bulk Editor.
 *
 * @return void
 */
function wpseo_save_title() {
	wpseo_save_what( 'title' );
}

add_action( 'wp_ajax_wpseo_save_title', 'wpseo_save_title' );

/**
 * Save an individual meta description from the Bulk Editor.
 *
 * @return void
 */
function wpseo_save_description() {
	wpseo_save_what( 'metadesc' );
}

add_action( 'wp_ajax_wpseo_save_metadesc', 'wpseo_save_description' );

/**
 * Save titles & descriptions.
 *
 * @param string $what Type of item to save (title, description).
 *
 * @return void
 */
function wpseo_save_what( $what ) {
	check_ajax_referer( 'wpseo-bulk-editor' );

	if ( ! isset( $_POST['new_value'], $_POST['wpseo_post_id'], $_POST['existing_value'] ) || ! is_string( $_POST['new_value'] ) || ! is_string( $_POST['existing_value'] ) ) {
		exit( '-1' );
	}

	$new = sanitize_text_field( wp_unslash( $_POST['new_value'] ) );
	// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are casting the unsafe value to an integer.
	$post_id  = (int) wp_unslash( $_POST['wpseo_post_id'] );
	$original = sanitize_text_field( wp_unslash( $_POST['existing_value'] ) );

	if ( $post_id === 0 ) {
		exit( '-1' );
	}

	$results = wpseo_upsert_new( $what, $post_id, $new, $original );

	wpseo_ajax_json_echo_die( $results );
}

/**
 * Helper function to update a post's meta data, returning relevant information
 * about the information updated and the results or the meta update.
 *
 * @param int    $post_id         Post ID.
 * @param string $new_meta_value  New meta value to record.
 * @param string $orig_meta_value Original meta value.
 * @param string $meta_key        Meta key string.
 * @param string $return_key      Return key string to use in results.
 *
 * @return array
 */
function wpseo_upsert_meta( $post_id, $new_meta_value, $orig_meta_value, $meta_key, $return_key ) {

	$post_id                  = (int) $post_id;
	$sanitized_new_meta_value = wp_strip_all_tags( $new_meta_value );
	$orig_meta_value          = wp_strip_all_tags( $orig_meta_value );

	$upsert_results = [
		'status'                 => 'success',
		'post_id'                => $post_id,
		"new_{$return_key}"      => $sanitized_new_meta_value,
		"original_{$return_key}" => $orig_meta_value,
	];

	$the_post = get_post( $post_id );
	if ( empty( $the_post ) ) {

		$upsert_results['status']  = 'failure';
		$upsert_results['results'] = __( 'Post doesn\'t exist.', 'wordpress-seo' );

		return $upsert_results;
	}

	$post_type_object = get_post_type_object( $the_post->post_type );
	if ( ! $post_type_object ) {

		$upsert_results['status']  = 'failure';
		$upsert_results['results'] = sprintf(
			/* translators: %s expands to post type. */
			__( 'Post has an invalid Content Type: %s.', 'wordpress-seo' ),
			$the_post->post_type,
		);

		return $upsert_results;
	}

	if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) {

		$upsert_results['status']  = 'failure';
		$upsert_results['results'] = sprintf(
			/* translators: %s expands to post type name. */
			__( 'You can\'t edit %s.', 'wordpress-seo' ),
			$post_type_object->label,
		);

		return $upsert_results;
	}

	if ( ! current_user_can( $post_type_object->cap->edit_others_posts ) && (int) $the_post->post_author !== get_current_user_id() ) {

		$upsert_results['status']  = 'failure';
		$upsert_results['results'] = sprintf(
			/* translators: %s expands to the name of a post type (plural). */
			__( 'You can\'t edit %s that aren\'t yours.', 'wordpress-seo' ),
			$post_type_object->label,
		);

		return $upsert_results;
	}

	if ( $sanitized_new_meta_value === $orig_meta_value && $sanitized_new_meta_value !== $new_meta_value ) {
		$upsert_results['status']  = 'failure';
		$upsert_results['results'] = __( 'You have used HTML in your value which is not allowed.', 'wordpress-seo' );

		return $upsert_results;
	}

	$res = update_post_meta( $post_id, $meta_key, $sanitized_new_meta_value );

	$upsert_results['status']  = ( $res !== false ) ? 'success' : 'failure';
	$upsert_results['results'] = $res;

	return $upsert_results;
}

/**
 * Save all titles sent from the Bulk Editor.
 *
 * @return void
 */
function wpseo_save_all_titles() {
	wpseo_save_all( 'title' );
}

add_action( 'wp_ajax_wpseo_save_all_titles', 'wpseo_save_all_titles' );

/**
 * Save all description sent from the Bulk Editor.
 *
 * @return void
 */
function wpseo_save_all_descriptions() {
	wpseo_save_all( 'metadesc' );
}

add_action( 'wp_ajax_wpseo_save_all_descriptions', 'wpseo_save_all_descriptions' );

/**
 * Utility function to save values.
 *
 * @param string $what Type of item so save.
 *
 * @return void
 */
function wpseo_save_all( $what ) {
	check_ajax_referer( 'wpseo-bulk-editor' );

	$results = [];
	if ( ! isset( $_POST['items'], $_POST['existingItems'] ) ) {
		wpseo_ajax_json_echo_die( $results );
	}

	$new_values      = array_map( [ 'WPSEO_Utils', 'sanitize_text_field' ], wp_unslash( (array) $_POST['items'] ) );
	$original_values = array_map( [ 'WPSEO_Utils', 'sanitize_text_field' ], wp_unslash( (array) $_POST['existingItems'] ) );

	foreach ( $new_values as $post_id => $new_value ) {
		$original_value = $original_values[ $post_id ];
		$results[]      = wpseo_upsert_new( $what, $post_id, $new_value, $original_value );
	}

	wpseo_ajax_json_echo_die( $results );
}

/**
 * Insert a new value.
 *
 * @param string $what      Item type (such as title).
 * @param int    $post_id   Post ID.
 * @param string $new_value New value to record.
 * @param string $original  Original value.
 *
 * @return string
 */
function wpseo_upsert_new( $what, $post_id, $new_value, $original ) {
	$meta_key = WPSEO_Meta::$meta_prefix . $what;

	return wpseo_upsert_meta( $post_id, $new_value, $original, $meta_key, $what );
}

/**
 * Retrieves the post ids where the keyword is used before as well as the types of those posts.
 *
 * @return void
 */
function ajax_get_keyword_usage_and_post_types() {
	check_ajax_referer( 'wpseo-keyword-usage-and-post-types', 'nonce' );

	if ( ! isset( $_POST['post_id'], $_POST['keyword'] ) || ! is_string( $_POST['keyword'] ) ) {
		exit( '-1' );
	}

	// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- We are casting to an integer.
	$post_id = (int) wp_unslash( $_POST['post_id'] );

	if ( $post_id === 0 || ! current_user_can( 'edit_post', $post_id ) ) {
		exit( '-1' );
	}

	$keyword = sanitize_text_field( wp_unslash( $_POST['keyword'] ) );

	$post_ids = WPSEO_Meta::keyword_usage( $keyword, $post_id );

	$return_object = [
		'keyword_usage' => $post_ids,
		'post_types'    => WPSEO_Meta::post_types_for_ids( $post_ids ),
	];

	wp_die(
		// phpcs:ignore WordPress.Security.EscapeOutput -- Reason: WPSEO_Utils::format_json_encode is safe.
		WPSEO_Utils::format_json_encode( $return_object ),
	);
}

add_action( 'wp_ajax_get_focus_keyword_usage_and_post_types', 'ajax_get_keyword_usage_and_post_types' );

/**
 * Retrieves the keyword for the keyword doubles of the termpages.
 *
 * @return void
 */
function ajax_get_term_keyword_usage() {
	check_ajax_referer( 'wpseo-keyword-usage', 'nonce' );

	if ( ! isset( $_POST['post_id'], $_POST['keyword'], $_POST['taxonomy'] ) || ! is_string( $_POST['keyword'] ) || ! is_string( $_POST['taxonomy'] ) ) {
		wp_die( -1 );
	}

	// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are casting the unsafe input to an integer.
	$post_id = (int) wp_unslash( $_POST['post_id'] );

	if ( $post_id === 0 ) {
		wp_die( -1 );
	}

	$keyword       = sanitize_text_field( wp_unslash( $_POST['keyword'] ) );
	$taxonomy_name = sanitize_text_field( wp_unslash( $_POST['taxonomy'] ) );

	$taxonomy = get_taxonomy( $taxonomy_name );

	if ( ! $taxonomy ) {
		wp_die( 0 );
	}

	if ( ! current_user_can( $taxonomy->cap->edit_terms ) ) {
		wp_die( -1 );
	}

	$usage = WPSEO_Taxonomy_Meta::get_keyword_usage( $keyword, $post_id, $taxonomy_name );

	// Normalize the result so it is the same as the post keyword usage AJAX request.
	$usage = $usage[ $keyword ];

	wp_die(
		// phpcs:ignore WordPress.Security.EscapeOutput -- Reason: WPSEO_Utils::format_json_encode is safe.
		WPSEO_Utils::format_json_encode( $usage ),
	);
}

add_action( 'wp_ajax_get_term_keyword_usage', 'ajax_get_term_keyword_usage' );

/**
 * Registers hooks for all AJAX integrations.
 *
 * @return void
 */
function wpseo_register_ajax_integrations() {
	$integrations = [ new Yoast_Network_Admin() ];

	foreach ( $integrations as $integration ) {
		$integration->register_ajax_hooks();
	}
}

wpseo_register_ajax_integrations();

new WPSEO_Shortcode_Filter();

new WPSEO_Taxonomy_Columns();

/* ********************* DEPRECATED FUNCTIONS ********************* */

/**
 * Retrieves the keyword for the keyword doubles.
 *
 * @return void
 */
function ajax_get_keyword_usage() {
	_deprecated_function( __METHOD__, 'WPSEO 20.4' );
	check_ajax_referer( 'wpseo-keyword-usage', 'nonce' );

	if ( ! isset( $_POST['post_id'], $_POST['keyword'] ) || ! is_string( $_POST['keyword'] ) ) {
		exit( '-1' );
	}

	// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- We are casting to an integer.
	$post_id = (int) wp_unslash( $_POST['post_id'] );

	if ( $post_id === 0 || ! current_user_can( 'edit_post', $post_id ) ) {
		exit( '-1' );
	}

	$keyword = sanitize_text_field( wp_unslash( $_POST['keyword'] ) );

	wp_die(
		// phpcs:ignore WordPress.Security.EscapeOutput -- Reason: WPSEO_Utils::format_json_encode is safe.
		WPSEO_Utils::format_json_encode( WPSEO_Meta::keyword_usage( $keyword, $post_id ) ),
	);
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
ajax
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
capabilities
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
endpoints
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
exceptions
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
filters
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
formatter
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
google_search_console
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
import
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
listeners
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
menu
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
metabox
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
notifiers
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
pages
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
roles
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
services
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
statistics
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
taxonomy
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
tracking
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
views
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
watchers
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
admin-settings-changed-listener.php
2.388 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
ajax.php
11.161 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin-asset-analysis-worker-location.php
1.807 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin-asset-dev-server-location.php
1.605 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin-asset-location.php
0.477 KB
20 Mar 2018 8.19 PM
builxejc / builxejc
0644
class-admin-asset-manager.php
20.573 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin-asset-seo-location.php
2.076 KB
5 Oct 2021 12.07 PM
builxejc / builxejc
0644
class-admin-editor-specific-replace-vars.php
6.347 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin-gutenberg-compatibility-notification.php
2.551 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin-help-panel.php
2.697 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin-init.php
10.717 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin-recommended-replace-vars.php
5.984 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
class-admin-user-profile.php
3.058 KB
8 Oct 2025 6.12 PM
builxejc / builxejc
0644
class-admin-utils.php
2.149 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-admin.php
12.73 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-asset.php
4.302 KB
22 Oct 2024 1.45 PM
builxejc / builxejc
0644
class-bulk-description-editor-list-table.php
2.052 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-bulk-editor-list-table.php
29.433 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-bulk-title-editor-list-table.php
2.233 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-collector.php
0.981 KB
7 Apr 2025 1.46 PM
builxejc / builxejc
0644
class-config.php
4.927 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-database-proxy.php
7.508 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-export.php
3.462 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-expose-shortlinks.php
7.085 KB
8 Oct 2025 6.12 PM
builxejc / builxejc
0644
class-gutenberg-compatibility.php
2.47 KB
12 May 2026 4.03 PM
builxejc / builxejc
0644
class-meta-columns.php
27.304 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-my-yoast-proxy.php
6.14 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-option-tab.php
2.215 KB
30 May 2022 3.34 PM
builxejc / builxejc
0644
class-option-tabs-formatter.php
2.838 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-option-tabs.php
2.257 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
class-paper-presenter.php
3.516 KB
18 May 2021 5.42 PM
builxejc / builxejc
0644
class-plugin-availability.php
10.064 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-plugin-conflict.php
4.044 KB
3 Apr 2024 3.08 PM
builxejc / builxejc
0644
class-premium-popup.php
2.808 KB
7 Apr 2025 1.46 PM
builxejc / builxejc
0644
class-premium-upsell-admin-block.php
7.832 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-primary-term-admin.php
7.318 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-product-upsell-notice.php
5.754 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-remote-request.php
3.128 KB
19 Jan 2024 3.31 PM
builxejc / builxejc
0644
class-schema-person-upgrade-notification.php
2.232 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-suggested-plugins.php
4.328 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-wincher-dashboard-widget.php
3.531 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-columns.php
3.521 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-dashboard-widget.php
3.928 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-form.php
35.727 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-input-validation.php
7.205 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-network-admin.php
9.972 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-network-settings-api.php
4.143 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-notification-center.php
26.023 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-notification.php
10.098 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-notifications.php
7.63 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
class-yoast-plugin-conflict.php
10.288 KB
17 Feb 2026 5.17 PM
builxejc / builxejc
0644
index.php
0.037 KB
21 Jul 2015 5.37 PM
builxejc / builxejc
0644
interface-collection.php
0.251 KB
28 Aug 2018 3.09 PM
builxejc / builxejc
0644
interface-installable.php
0.248 KB
20 Mar 2018 8.19 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF