WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/05/2013 12:13:40 AM (8 years ago)
Author:
azaozz
Message:

Heartbeat: rename some vars/args to make them more intuitive, don't set user_id on every request, see #23216

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r24303 r24406  
    570570    $checked = array();
    571571
    572     if ( 'edit-post' == $screen_id && array_key_exists( 'wp-check-locked', $data ) && is_array( $data['wp-check-locked'] ) ) {
    573         foreach ( $data['wp-check-locked'] as $key ) {
     572    if ( 'edit-post' == $screen_id && array_key_exists( 'wp-check-locked-posts', $data ) && is_array( $data['wp-check-locked-posts'] ) ) {
     573        foreach ( $data['wp-check-locked-posts'] as $key ) {
    574574            $post_id = (int) substr( $key, 5 );
    575575
     
    586586
    587587    if ( ! empty( $checked ) )
    588         $response['wp-check-locked'] = $checked;
     588        $response['wp-check-locked-posts'] = $checked;
    589589
    590590    return $response;
     
    602602        $send = array();
    603603
    604         if ( !$post_id = absint( $received['post_id'] ) )
     604        if ( ! $post_id = absint( $received['post_id'] ) )
    605605            return $response;
    606606
    607         if ( !current_user_can('edit_post', $post_id) )
     607        if ( ! current_user_can('edit_post', $post_id) )
    608608            return $response;
    609609
Note: See TracChangeset for help on using the changeset viewer.