wp/wp-includes/class-wp-recovery-mode.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   157 	 *
   157 	 *
   158 	 * The calling API should immediately die() after calling this function.
   158 	 * The calling API should immediately die() after calling this function.
   159 	 *
   159 	 *
   160 	 * @since 5.2.0
   160 	 * @since 5.2.0
   161 	 *
   161 	 *
   162 	 * @param array $error Error details from {@see error_get_last()}
   162 	 * @param array $error Error details from `error_get_last()`.
   163 	 * @return true|WP_Error True if the error was handled and headers have already been sent.
   163 	 * @return true|WP_Error True if the error was handled and headers have already been sent.
   164 	 *                       Or the request will exit to try and catch multiple errors at once.
   164 	 *                       Or the request will exit to try and catch multiple errors at once.
   165 	 *                       WP_Error if an error occurred preventing it from being handled.
   165 	 *                       WP_Error if an error occurred preventing it from being handled.
   166 	 */
   166 	 */
   167 	public function handle_error( array $error ) {
   167 	public function handle_error( array $error ) {
   337 	 *
   337 	 *
   338 	 * @since 5.2.0
   338 	 * @since 5.2.0
   339 	 *
   339 	 *
   340 	 * @global array $wp_theme_directories
   340 	 * @global array $wp_theme_directories
   341 	 *
   341 	 *
   342 	 * @param array $error Error that was triggered.
   342 	 * @param array $error Error details from `error_get_last()`.
   343 	 * @return array|false {
   343 	 * @return array|false {
   344 	 *     Extension details.
   344 	 *     Extension details.
   345 	 *
   345 	 *
   346 	 *     @type string $slug The extension slug. This is the plugin or theme's directory.
   346 	 *     @type string $slug The extension slug. This is the plugin or theme's directory.
   347 	 *     @type string $type The extension type. Either 'plugin' or 'theme'.
   347 	 *     @type string $type The extension type. Either 'plugin' or 'theme'.
   423 	/**
   423 	/**
   424 	 * Stores the given error so that the extension causing it is paused.
   424 	 * Stores the given error so that the extension causing it is paused.
   425 	 *
   425 	 *
   426 	 * @since 5.2.0
   426 	 * @since 5.2.0
   427 	 *
   427 	 *
   428 	 * @param array $error Error that was triggered.
   428 	 * @param array $error Error details from `error_get_last()`.
   429 	 * @return bool True if the error was stored successfully, false otherwise.
   429 	 * @return bool True if the error was stored successfully, false otherwise.
   430 	 */
   430 	 */
   431 	protected function store_error( $error ) {
   431 	protected function store_error( $error ) {
   432 		$extension = $this->get_extension_for_error( $error );
   432 		$extension = $this->get_extension_for_error( $error );
   433 
   433