Skip to content

Commit

Permalink
Merge branch 'WordPress:trunk' into 60017-wp_suspend_cache_addition
Browse files Browse the repository at this point in the history
  • Loading branch information
pbearne authored Dec 6, 2023
2 parents 6efe0af + 52854e2 commit d134de7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/wp-includes/html-api/class-wp-html-token.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,13 @@ public function __destruct() {
call_user_func( $this->on_destroy, $this->bookmark_name );
}
}

/**
* Wakeup magic method.
*
* @since 6.4.2
*/
public function __wakeup() {
throw new \LogicException( __CLASS__ . ' should never be unserialized' );
}
}
5 changes: 4 additions & 1 deletion src/wp-includes/pomo/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ public function make_plural_form_function( $nplurals, $expression ) {

/**
* Adds parentheses to the inner parts of ternary operators in
* plural expressions, because PHP evaluates ternary oerators from left to right
* plural expressions, because PHP evaluates ternary operators from left to right
*
* @deprecated 6.5.0 Use the Plural_Forms class instead.
* @see Plural_Forms
*
* @param string $expression the expression without parentheses
* @return string the expression with parentheses added
Expand Down

0 comments on commit d134de7

Please sign in to comment.