(); $parent_id = $parent->ID; $revisions = wp_get_post_revisions( $parent_id, array( 'check_enabled' => false ) ); foreach ( $revisions as $revision ) { if ( false !== strpos( $revision->post_name, "{$parent_id}-autosave" ) ) { $data = $this->prepare_item_for_response( $revision, $request ); $response[] = $this->prepare_response_for_collection( $data ); } } return rest_ensure_response( $response ); } /** * Retrieves the autosave's schema, conforming to JSON Schema. * * @since 5.0.0 * * @return array Item schema data. */ public function get_item_schema() { if ( $this->schema ) { return $this->add_additional_fields_schema( $this->schema ); } $schema = $this->revisions_controller->get_item_schema(); $schema['properties']['preview_link'] = array( 'description' => __( 'Preview link for the post.' ), 'type' => 'string', 'format' => 'uri', 'context' => array( 'edit' ), 'readonly' => true, ); $this->schema = $schema; return $this->add_additional_fields_schema( $this->schema ); } /** * Creates autosave for the specified post. * * From wp-admin/post.php. * * @since 5.0.0 * * @param array $post_data Associative array containing the post data. * @return mixed The autosave revision ID or WP_Error. */ public function create_post_autosave( $post_data ) { $post_id = (int) $post_data['ID']; $post = get_post( $post_id ); if ( is_wp_error( $post ) ) { return $post; } $user_id = get_current_user_id(); // Store one autosave per author. If there is already an autosave, overwrite it. $old_autosave = wp_get_post_autosave( $post_id, $user_id ); if ( $old_autosave ) { $new_autosave = _wp_post_revision_data( $post_data, true ); $new_autosave['ID'] = $old_autosave->ID; $new_autosave['post_author'] = $user_id; // If the new autosave has the same content as the post, delete the autosave. $autosave_is_different = false; foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ) as $field ) { if ( normalize_whitespace( $new_autosave[ $field ] ) !== normalize_whitespace( $post->$field ) ) { $autosave_is_different = true; break; } } if ( ! $autosave_is_different ) { wp_delete_post_revision( $old_autosave->ID ); return new WP_Error( 'rest_autosave_no_changes', __( 'There is nothing to save. The autosave and the post content are the same.' ), array( 'status' => 400 ) ); } /** This filter is documented in wp-admin/post.php */ do_action( 'wp_creating_autosave', $new_autosave ); // wp_update_post() expects escaped array. return wp_update_post( wp_slash( $new_autosave ) ); } // Create the new autosave as a special post revision. return _wp_put_post_revision( $post_data, true ); } /** * Prepares the revision for the REST response. * * @since 5.0.0 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Post $item Post revision object. * @param WP_REST_Request $request Request object. * @return WP_REST_Response Response object. */ public function prepare_item_for_response( $item, $request ) { // Restores the more descriptive, specific name for use within this method. $post = $item; $response = $this->revisions_controller->prepare_item_for_response( $post, $request ); $fields = $this->get_fields_for_response( $request ); if ( in_array( 'preview_link', $fields, true ) ) { $parent_id = wp_is_post_autosave( $post ); $preview_post_id = false === $parent_id ? $post->ID : $parent_id; $preview_query_args = array(); if ( false !== $parent_id ) { $preview_query_args['preview_id'] = $parent_id; $preview_query_args['preview_nonce'] = wp_create_nonce( 'post_preview_' . $parent_id ); } $response->data['preview_link'] = get_preview_post_link( $preview_post_id, $preview_query_args ); } $context = ! empty( $request['context'] ) ? $request['context'] : 'view'; $response->data = $this->add_additional_fields_to_object( $response->data, $request ); $response->data = $this->filter_response_by_context( $response->data, $context ); /** * Filters a revision returned from the REST API. * * Allows modification of the revision right before it is returned. * * @since 5.0.0 * * @param WP_REST_Response $response The response object. * @param WP_Post $post The original revision object. * @param WP_REST_Request $request Request used to generate the response. */ return apply_filters( 'rest_prepare_autosave', $response, $post, $request ); } /** * Retrieves the query params for the autosaves collection. * * @since 5.0.0 * * @return array Collection parameters. */ public function get_collection_params() { return array( 'context' => $this->get_context_param( array( 'default' => 'view' ) ), ); } } 02 « July « 2013 « chicagoareafire.com

Archive for July 2nd, 2013

2-Alarm building fire in Northbrook 7-1-13 (more)

Images from Tim Olk from the 2-Alarm condo building fire in Northbrook at 620 Ballantrae Drive on July 1st.

2nd Alarm building fire in Northbrook

The Northbrook fire chief in Sector B alerts interior companies about deteriorating conditions from outside the building. Tim Olk photo

2nd Alarm building fire in Northbrook

Firefighters on the balcony address the fire from the outside. Tim Olk photo

2nd Alarm building fire in Northbrook

A Highwood firefighter benting the mansard roof and exposing hidden fire. Tim Olk photo

2nd Alarm building fire in Northbrook

A Glenview lieutenant on the tip of Truck 14’s ladder after exposing fire behind the mansard roof. Tim Olk photo

2nd Alarm building fire in Northbrook

Two Glenview firefighters on the ladder continue to create access to the fire hidden in the void spaces behind the mansard roof. Tim Olk photo

2nd Alarm building fire in Northbrook

Glencoe firefighters with a 2 1/2-inch line at the B-C corner of the building. Tim Olk photo

2nd Alarm building fire in Northbrook

Medical supplies from the EMS company on standby. Tim Olk photo

 

Tim has a gallery with more images HERE.

More images from the scene were posted HERE.

Tags: , , , , , , , , , , , , , ,

3-11 Alarm fire in Chicago 7-1-13 (more)

A video from Steve Redick showing operations at the 3-11 Alarm fire at 343 W. Pershing

Tags: , , , , ,

2-Alarm building fire in Northbrook 7-1-13 (more)

Additional images and a video from the 2-alarm fire yesterday in Northbrook.

2nd Alarm building fire in Northbrook

Glenview firefighters work from Truck 14 to open sections of the mansard roof on the east side of the building. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Winnetka Engine 28 working off a hydrant from the parking lot behind Northbrook Station 11. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Highwood Truck 37 working from the B-C corner. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Fire vents through a hole in the mansard roof cut by the Glenview company. Larry Shapiro photo

2nd Alarm building fire in Northbrook

The north end of the third floor unit shows where the initial fire was. Larry Shapiro photo

2nd Alarm building fire in Northbrook

The new Glenview Truck 14, possibly working it’s first fire, is engulfed in smoke on the access road along the east side of the fire building. Larry Shapiro photo

2nd Alarm building fire in Northbrook

A 5″ line is stretched from Wheeling Engine 42 to supply Glenview Truck 14. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Two hand lines and the deck gun from Glencoe Engine 30 work in the C Sector. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Highwood firefighters on the ladder tip overlook flames venting through the mansard roof. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Highland Park firefighters in the foreground shield themselves from the spray of a hand line while a Highwood firefighter cuts into the mansard from another ladder. Larry Shapiro photo

A gallery with many images can be found HERE.

Tags: , , , , , , , , , , , , , , , ,

3-11 Alarm fire in Chicago 7-1-13

From the Chicago Tribune:

One person was taken to the hospital from an extra-alarm blaze that broke out in the South Side’s Bronzeville neighborhood late Monday night.

About 11 p.m., firefighters were called to a restaurant in the 300 block of East Pershing Road for the smell of smoke, according to the Chicago Fire Department.

Flames quickly spread and firefighters elevated the fire to a 2-11 alarm about 11:30 p.m. It was later raised to a 3-11 alarm.

About midnight, flames could be seen shooting from the roof of the building in the 300 block of East Pershing Road. Police and fire vehicles lined several nearby blocks as neighbors, awakened by the sirens and thick smoke, watched from outside their homes.

One person was taken from the scene to Mercy Hospital in good-to-fair condition.

As of about 1:45 a.m., firefighters were still working the fire but had bought the blaze under control, according to the fire department. The roof of the building had collapsed.

We expect several updates with images and video from contributors. In the meantime, here is a panoramic image of the scene from Steve Redick.

 

Chicago 3-11 Alarm fire 7-1-13

Panoramic view of the 3-11 fire scene in Chicago. Steve Redick photo

Tags: , , , ,

2-Alarm building fire in Northbrook 7-1-13

The Northbrook Fire Department responded to a reported fire in a third floor apartment behind Station 11 at 620 Ballantree Drive shortly after 6PM on Monday evening. Initially, the reports from police officers left fire officials to believe that it was a barbecue grill on a deck, but companies soon found fire inside the third floor unit. The alarm was upgraded to a Code 4 for the working fire, and multiple companies entered the building. Not long after they were inside the building, conditions deteriorated and an evacuation order was given. Heavy smoke pushed out of the building as it flashed, and a MABAS Box Alarm was requested as companies went defensive.

Units on the initial alarms included Northbrook Engines 11 and 10, Ambulance 11, Battalion 11, Tower 12, and Glencoe Engine 30. The Code 4 brought  Lincolnshire-Riverwoods Ambulance 52 and Northfield Truck 29. The box alarm added Glenview Truck 14, Wheeling Engine 42, Winnetka Engine 28, Prospect Heights Squad 9, and Highland Park Quint 33 in addition to companies for change of quarters.

A 2nd Alarm was requested shortly after the box and brought Highwood Truck 37, Deerfield Engine 20, Morton Grove Squad 4, Lincolnshire-Riverwoods Truck 53, the Division Comm Van, and several chief officers.

The building had a mansard roof which masked a fair amount of fire and required extensive ventilation to extinguish all of it. Engines 11 and 32 had deck guns flowing, there were elevated master streams from Tower 12 and Truck 14 in addition to at least three hand lines.

Tim Olk arrived with the first-due companies and Larry Shapiro arrived after the box alarm. Both will have many images plus there will be a video from Larry.

Here are a few images that were submitted.

2nd Alarm building fire in Northbrook

Northbrook Tower 12 working from the D-side (south side). Larry Shapiro photo

2nd Alarm building fire in Northbrook

Glenview Truck 14 setting up to go to work. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Glencoe Engine 30 with the deck gun at work plus Glencoe personnel manage a 2 1/2 inch line. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Engine 11 using the deck gun and Tower 12. Larry Shapiro photo

2nd Alarm building fire in Northbrook

Northbrook Engine 11 flowing the deck gun in Sector A and Tower 12 on the D side. Larry Shapiro photo

Tags: , , , , , , , , , , , , ,