- Timestamp:
- 10/27/2025 11:55:51 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/abilities-api/class-wp-abilities-registry.php
r61059 r61071 237 237 * 238 238 * @param string $name The name of the registered ability, with its namespace. 239 * @return ?WP_AbilityThe registered ability instance, or null if it is not registered.239 * @return WP_Ability|null The registered ability instance, or null if it is not registered. 240 240 */ 241 241 public function get_registered( string $name ): ?WP_Ability { … … 244 244 __METHOD__, 245 245 /* translators: %s: Ability name. */ 246 sprintf( esc_html__( 'Ability "%s" not found.' ), esc_attr( $name ) ),246 sprintf( __( 'Ability "%s" not found.' ), esc_html( $name ) ), 247 247 '6.9.0' 248 248 ); … … 266 266 __METHOD__, 267 267 sprintf( 268 __( 'Ability API should not be initialized before the <code>init</code> action has fired' ) 268 // translators: %s: init action. 269 __( 'Ability API should not be initialized before the %s action has fired.' ), 270 '<code>init</code>' 269 271 ), 270 272 '6.9.0' … … 315 317 */ 316 318 public function __sleep(): array { 317 throw new LogicException( __CLASS__ . ' should never be serialized ' );319 throw new LogicException( __CLASS__ . ' should never be serialized.' ); 318 320 } 319 321 }
Note: See TracChangeset
for help on using the changeset viewer.