-
Filename: /home/govb9007/SITES/mydomain.ch/wp-content/plugins/seo-by-rank-math/includes/updates/update-1.0.42.php
File Size: 866 bytes
File last modified: Wednesday 3rd of April 2024 11:08:46 AM
<?php
/**
* The Updates routine for version 1.0.42
*
* @since 1.0.42
* @package RankMath
* @subpackage RankMathUpdates
* @author Rank Math <s******@r***********>
*/use RankMathAdminDatabaseDatabase;
use RankMathRedirectionsDB;defined( ‘ABSPATH’ ) || exit;
/**
* Set Elementor Library Add metabox value to false.
*/
function rank_math_1_0_42_delete_fake_redirection() {
global $wpdb;$table = Database::table( ‘rank_math_redirections’ );
$table->select( ‘id’ )
->whereLike( ‘url_to’, ‘https://ischeck.xyz’, ” )
->orWhereLike( ‘url_to’, ‘http://ischeck.xyz’, ” )
->orWhereLike( ‘url_to’, ‘//ischeck.xyz’, ” );$redirections = $table->get( ARRAY_A );
$redirections = wp_list_pluck( $redirections, ‘id’ );if ( ! empty( $redirections ) ) {
DB::delete( $redirections );
}
}
rank_math_1_0_42_delete_fake_redirection();
The ticket ‘What about this ?’ is closed to new replies.