wp/wp-includes/class-wp-paused-extensions-storage.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    40 	 *
    40 	 *
    41 	 * @since 5.2.0
    41 	 * @since 5.2.0
    42 	 *
    42 	 *
    43 	 * @param string $extension Plugin or theme directory name.
    43 	 * @param string $extension Plugin or theme directory name.
    44 	 * @param array  $error     {
    44 	 * @param array  $error     {
    45 	 *     Error that was triggered.
    45 	 *     Error information returned by `error_get_last()`.
    46 	 *
    46 	 *
    47 	 *     @type string $type    The error type.
    47 	 *     @type int    $type    The error type.
    48 	 *     @type string $file    The name of the file in which the error occurred.
    48 	 *     @type string $file    The name of the file in which the error occurred.
    49 	 *     @type string $line    The line number in which the error occurred.
    49 	 *     @type int    $line    The line number in which the error occurred.
    50 	 *     @type string $message The error message.
    50 	 *     @type string $message The error message.
    51 	 * }
    51 	 * }
    52 	 * @return bool True on success, false on failure.
    52 	 * @return bool True on success, false on failure.
    53 	 */
    53 	 */
    54 	public function set( $extension, $error ) {
    54 	public function set( $extension, $error ) {
   139 	/**
   139 	/**
   140 	 * Gets the paused extensions with their errors.
   140 	 * Gets the paused extensions with their errors.
   141 	 *
   141 	 *
   142 	 * @since 5.2.0
   142 	 * @since 5.2.0
   143 	 *
   143 	 *
   144 	 * @return array Associative array of extension slugs to the error recorded.
   144 	 * @return array {
       
   145 	 *     Associative array of errors keyed by extension slug.
       
   146 	 *
       
   147 	 *     @type array ...$0 Error information returned by `error_get_last()`.
       
   148 	 * }
   145 	 */
   149 	 */
   146 	public function get_all() {
   150 	public function get_all() {
   147 		if ( ! $this->is_api_loaded() ) {
   151 		if ( ! $this->is_api_loaded() ) {
   148 			return array();
   152 			return array();
   149 		}
   153 		}