Changeset 55398 for trunk/src/wp-includes/class-wp-error.php
- Timestamp:
- 02/21/2023 04:37:03 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-error.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-error.php
r54133 r55398 57 57 * @param string|int $code Error code. 58 58 * @param string $message Error message. 59 * @param mixed $data Optional. Error data. 59 * @param mixed $data Optional. Error data. Default empty string. 60 60 */ 61 61 public function __construct( $code = '', $message = '', $data = '' ) { … … 104 104 * @since 2.1.0 105 105 * 106 * @param string|int $code Optional. Retrieve messages matching code, if exists. 106 * @param string|int $code Optional. Error code to retrieve the messages for. 107 * Default empty string. 107 108 * @return string[] Error strings on success, or empty array if there are none. 108 109 */ … … 133 134 * @since 2.1.0 134 135 * 135 * @param string|int $code Optional. Error code to retrieve message. 136 * @param string|int $code Optional. Error code to retrieve the message for. 137 * Default empty string. 136 138 * @return string The error message. 137 139 */ … … 152 154 * @since 2.1.0 153 155 * 154 * @param string|int $code Optional. Error code. 156 * @param string|int $code Optional. Error code. Default empty string. 155 157 * @return mixed Error data, if it exists. 156 158 */ … … 186 188 * @param string|int $code Error code. 187 189 * @param string $message Error message. 188 * @param mixed $data Optional. Error data. 190 * @param mixed $data Optional. Error data. Default empty string. 189 191 */ 190 192 public function add( $code, $message, $data = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.