Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32290


Ignore:
Timestamp:
05/07/2015 03:44:08 PM (11 years ago)
Author:
SergeyBiryukov
Comment:

Hi @mwanteam, welcome to Trac!

It's caused by browser prefetching, see #12603, #14382, #19018, #20192, #21658, #28797.

I don't think we can do anything here.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32290

    • Property Keywords close added
  • Ticket #32290 – Description

    initial v1  
    77
    88First trial, i use
     9{{{
    910$count = get_post_meta('20', $count_key, true); //example the $count is 11
    1011$count++; //to be 12
    1112update_post_meta('20', 'post_views_count', $count); //on database is 13
    12 
     13}}}
    13142nd trial, i use $wpdb->get_results and $wpdb->update, I got the same result.
    1415
    15 Finally i trace and got the problem is on wp_head() in rel=next. So after remove it using remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); i got the correct result
     16Finally i trace and got the problem is on wp_head() in rel=next. So after remove it using `remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );` i got the correct result
     17{{{
    1618$count = get_post_meta('20', $count_key, true); //example the $count is 11
    1719$count++; //to be 12
    1820update_post_meta('20', 'post_views_count', $count); //on database is 12
     21}}}