ze_email() is used here for form data retrieval, but sanitize_user() is used in wc_register_post_handler() // for API calls to match the original API behavior $user_email = isset( $_POST['user_email'] ) ? sanitize_email( wp_unslash( $_POST['user_email'] ) ) : ''; // Only return if at least one field is present if ( empty( $user_login ) && empty( $user_email ) ) { return null; } return array( 'username' => $user_login, 'email' => $user_email, ); } /** * Display error message on WooCommerce registration page * * @param string $message Error message * @return void */ public function display_registration_error( $message ) { if ( static::is_plugin_active() && is_account_page() ) { wc_add_notice( $message, 'error' ); } } /** * Errors on WooCommerce account page */ public function add_wc_notices() { global $limit_login_just_lockedout, $limit_login_nonempty_credentials, $limit_login_my_error_shown; if ( ! $limit_login_nonempty_credentials ) { return; } // Prevent duplicate error messages if already shown elsewhere if ( ! empty( $limit_login_my_error_shown ) ) { return; } /* * During lockout we do not want to show any other error messages (like * unknown user or empty password). */ // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Only checking POST for display logic, not processing if ( empty( $_POST ) && ! $this->is_login_allowed() && ! $limit_login_just_lockedout ) { if ( is_account_page() ) { wc_add_notice( $this->get_error_message(), 'error' ); // Mark error as shown to prevent duplicate messages $limit_login_my_error_shown = true; } } } /** * For WooCommerce registration * Check registration attempt before WooCommerce processes it * * @param string $username Username * @param string $user_email User email * @param WP_Error $errors Error object * @return void */ public function wc_register_post_handler( $username, $user_email, $errors ) { if ( ! $this->is_registration_limited() ) { return; } if ( empty( $username ) && empty( $user_email ) ) { return; } // Exit only if BOTH fields are invalid (empty or invalid) // Continue if at least one field is valid // Logic: exit if (username is invalid) AND (email is invalid) $username_invalid = empty( $username ) || ! validate_username( $username ); $email_invalid = empty( $user_email ) || ! is_email( $user_email ); if ( $username_invalid && $email_invalid ) { return; } // Use sanitize_user() for username and sanitize_email() for email to match original API behavior // This matches the behavior in llar_submit_login_form_register() $user_login_sanitize = sanitize_user( $username ); $user_email_sanitize = sanitize_email( $user_email ); // Check any non-empty $check_combo = ! empty( $user_login_sanitize ) ? $user_login_sanitize : $user_email_sanitize; $response = $this->check_registration_api( $check_combo ); // If $user_login is not empty, we will also check $user_email if ( ! empty( $user_login_sanitize ) && 'deny' !== $response['result'] ) { if ( empty( $user_email ) || ! is_email( $user_email ) ) { return; } $response = $this->check_registration_api( $user_email_sanitize ); } if ( 'deny' === $response['result'] ) { // Set the marker and the error $this->llar_instance->user_blocking = true; $this->llar_instance->error_messages = __( 'Registration is currently disabled.', 'limit-login-attempts-reloaded' ); } } /** * Correcting errors in the presence of a registration prohibition marker for WooCommerce * * @param WP_Error $errors Error object * @param string $username Username * @param string $user_email User email * @return WP_Error */ public function wc_registration_errors_handler( $errors, $username, $user_email ) { // Checking the marker if ( $this->llar_instance->user_blocking ) { $errors->add( 'user_blocking', $this->llar_instance->error_messages ); } return $errors; } } ze_email() is used here for form data retrieval, but sanitize_user() is used in wc_register_post_handler() // for API calls to match the original API behavior $user_email = isset( $_POST['user_email'] ) ? sanitize_email( wp_unslash( $_POST['user_email'] ) ) : ''; // Only return if at least one field is present if ( empty( $user_login ) && empty( $user_email ) ) { return null; } return array( 'username' => $user_login, 'email' => $user_email, ); } /** * Display error message on WooCommerce registration page * * @param string $message Error message * @return void */ public function display_registration_error( $message ) { if ( static::is_plugin_active() && is_account_page() ) { wc_add_notice( $message, 'error' ); } } /** * Errors on WooCommerce account page */ public function add_wc_notices() { global $limit_login_just_lockedout, $limit_login_nonempty_credentials, $limit_login_my_error_shown; if ( ! $limit_login_nonempty_credentials ) { return; } // Prevent duplicate error messages if already shown elsewhere if ( ! empty( $limit_login_my_error_shown ) ) { return; } /* * During lockout we do not want to show any other error messages (like * unknown user or empty password). */ // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Only checking POST for display logic, not processing if ( empty( $_POST ) && ! $this->is_login_allowed() && ! $limit_login_just_lockedout ) { if ( is_account_page() ) { wc_add_notice( $this->get_error_message(), 'error' ); // Mark error as shown to prevent duplicate messages $limit_login_my_error_shown = true; } } } /** * For WooCommerce registration * Check registration attempt before WooCommerce processes it * * @param string $username Username * @param string $user_email User email * @param WP_Error $errors Error object * @return void */ public function wc_register_post_handler( $username, $user_email, $errors ) { if ( ! $this->is_registration_limited() ) { return; } if ( empty( $username ) && empty( $user_email ) ) { return; } // Exit only if BOTH fields are invalid (empty or invalid) // Continue if at least one field is valid // Logic: exit if (username is invalid) AND (email is invalid) $username_invalid = empty( $username ) || ! validate_username( $username ); $email_invalid = empty( $user_email ) || ! is_email( $user_email ); if ( $username_invalid && $email_invalid ) { return; } // Use sanitize_user() for username and sanitize_email() for email to match original API behavior // This matches the behavior in llar_submit_login_form_register() $user_login_sanitize = sanitize_user( $username ); $user_email_sanitize = sanitize_email( $user_email ); // Check any non-empty $check_combo = ! empty( $user_login_sanitize ) ? $user_login_sanitize : $user_email_sanitize; $response = $this->check_registration_api( $check_combo ); // If $user_login is not empty, we will also check $user_email if ( ! empty( $user_login_sanitize ) && 'deny' !== $response['result'] ) { if ( empty( $user_email ) || ! is_email( $user_email ) ) { return; } $response = $this->check_registration_api( $user_email_sanitize ); } if ( 'deny' === $response['result'] ) { // Set the marker and the error $this->llar_instance->user_blocking = true; $this->llar_instance->error_messages = __( 'Registration is currently disabled.', 'limit-login-attempts-reloaded' ); } } /** * Correcting errors in the presence of a registration prohibition marker for WooCommerce * * @param WP_Error $errors Error object * @param string $username Username * @param string $user_email User email * @return WP_Error */ public function wc_registration_errors_handler( $errors, $username, $user_email ) { // Checking the marker if ( $this->llar_instance->user_blocking ) { $errors->add( 'user_blocking', $this->llar_instance->error_messages ); } return $errors; } } Human Rights Archives - OMNIP NEWS

Meurtre d’un Congolais en Irlande : une grave atteinte aux droits humains

Meurtre d’un Congolais en Irlande : une grave atteinte aux droits humains

WhatsApp Image 2026-06-08 at 06.04.45

Le meurtre brutal d’un jeune Congolais, Yves Sakila, abattu en pleine rue le 16 mai dernier en Irlande, suscite une vive émotion et soulève de profondes inquiétudes sur le respect des droits humains et de la dignité de la personne humaine.

C’est le constat dressé ce jeudi 21 mai par le journaliste Marius Mayendelo, Directeur général de la presse en ligne Omnipnews.

S’appuyant sur les principes consacrés par la Déclaration universelle des droits de l’homme ainsi que par le Pacte international relatif aux droits civils et politiques, il rappelle que toute personne a droit à la vie, à la sécurité et à la protection de sa dignité, sans distinction d’origine, de nationalité ou de statut social. Ces textes condamnent fermement les exécutions arbitraires, les assassinats extrajudiciaires et toute privation illégale de la vie.

Pour Marius Mayendelo, ce drame représente bien plus qu’un simple fait divers : il s’agit d’une tragédie humaine qui interpelle la conscience collective et met en lumière la nécessité de protéger chaque vie humaine, quelle que soit son origine.

Il insiste sur le fait que les droits humains ne doivent souffrir d’aucune discrimination. Le droit à la vie et à la sécurité demeure universel et doit être garanti aussi bien aux citoyens d’un pays qu’aux étrangers vivant sur son territoire.

Face à ce drame, plusieurs voix s’élèvent déjà pour réclamer que toute la lumière soit faite sur les circonstances de ce meurtre, afin que justice soit rendue à la victime et à sa famille plongée dans la douleur.

Par Marius Mayendelo

Facebook
X
WhatsApp