Changeset 59870
- Timestamp:
- 02/25/2025 10:38:42 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale.php
r59494 r59870 316 316 * 317 317 * @param string|int $month_number '01' through '12'. 318 * @return string Translated full month name. 318 * @return string Translated full month name. If the month number is not found, an empty string is returned. 319 319 */ 320 320 public function get_month( $month_number ) { 321 return $this->month[ zeroise( $month_number, 2 ) ]; 321 $month_number = zeroise( $month_number, 2 ); 322 if ( ! isset( $this->month[ $month_number ] ) ) { 323 return ''; 324 } 325 return $this->month[ $month_number ]; 322 326 } 323 327
Note: See TracChangeset
for help on using the changeset viewer.