[wp-trac] [WordPress Trac] #31294: Customizer no longer gracefully handles session expiration

WordPress Trac noreply at wordpress.org
Wed Feb 11 12:46:55 UTC 2015


#31294: Customizer no longer gracefully handles session expiration
--------------------------+--------------------
 Reporter:  westonruter   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------
Description changed by westonruter:

Old description:

> Reported by ocean90:
>
> > In r31370 you've changed doing_ajax() to return only true for `defined(
> 'DOING_AJAX' ) && DOING_AJAX`, and not `isset( $_POST['customized'] )`
> anymore. This breaks the preview if you're logged out because you get a
> regular `wp_die()` with HTML instead of the `0`.
>
> https://wordpress.slack.com/archives/core-customize/p1423601418000599
>
> Issue introduced (at least partially) by changes introduced in #30936.

New description:

 Reported by ocean90:

 > In r31370 you've changed `doing_ajax()` to return only true for
 `defined( 'DOING_AJAX' ) && DOING_AJAX`, and not `isset(
 $_POST['customized'] )` anymore. This breaks the preview if you're logged
 out because you get a regular `wp_die()` with HTML instead of the `0`.

 https://wordpress.slack.com/archives/core-customize/p1423601418000599

 Issue introduced (at least partially) by changes introduced in #30936.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31294#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list