- Timestamp:
- 10/27/2025 11:55:51 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/abilities-api/class-wp-ability.php
r61047 r61071 170 170 '<code>' . esc_html( $property_name ) . '</code>', 171 171 '<code>' . esc_html( $this->name ) . '</code>', 172 '<code>' . self::class. '</code>'172 '<code>' . __CLASS__ . '</code>' 173 173 ), 174 174 '6.9.0' … … 446 446 /* translators: %s ability name. */ 447 447 __( 'Ability "%s" does not define an input schema required to validate the provided input.' ), 448 $this->name448 esc_html( $this->name ) 449 449 ) 450 450 ); … … 458 458 /* translators: %1$s ability name, %2$s error message. */ 459 459 __( 'Ability "%1$s" has invalid input. Reason: %2$s' ), 460 $this->name,460 esc_html( $this->name ), 461 461 $valid_input->get_error_message() 462 462 ) … … 515 515 'ability_invalid_execute_callback', 516 516 /* translators: %s ability name. */ 517 sprintf( __( 'Ability "%s" does not have a valid execute callback.' ), $this->name)517 sprintf( __( 'Ability "%s" does not have a valid execute callback.' ), esc_html( $this->name ) ) 518 518 ); 519 519 } … … 543 543 /* translators: %1$s ability name, %2$s error message. */ 544 544 __( 'Ability "%1$s" has invalid output. Reason: %2$s' ), 545 $this->name,545 esc_html( $this->name ), 546 546 $valid_output->get_error_message() 547 547 ) … … 582 582 'ability_invalid_permissions', 583 583 /* translators: %s ability name. */ 584 sprintf( __( 'Ability "%s" does not have necessary permission.' ), $this->name)584 sprintf( __( 'Ability "%s" does not have necessary permission.' ), esc_html( $this->name ) ) 585 585 ); 586 586 } … … 639 639 */ 640 640 public function __sleep(): array { 641 throw new LogicException( __CLASS__ . ' should never be serialized ' );641 throw new LogicException( __CLASS__ . ' should never be serialized.' ); 642 642 } 643 643 }
Note: See TracChangeset
for help on using the changeset viewer.