Make WordPress Core

Opened 19 months ago

Last modified 19 months ago

#55248 new defect (bug)

Ajax call has stop to work (single custom post content)

Reported by: zak87's profile zak87 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9.1
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

Ajax call which should get a content from a single custom post item has stop to work. On other hand, Ajax call which is getting more Portfolio items (more custom post items) works fine (you have all in the video - sorry for my English).

All was fine until the WP ver 5.9 but the bug is there after updating on ver 5.9.1

Video link - https://www.youtube.com/watch?v=Gcxtm4FF58E

Change History (1)

#1 @zak87
19 months ago

*Update

I have fixed this (fixed my code - it can be closed).

But the point is:
I am using from WP 5.2 in all my themes this line of code:

wp_body_open();

but it looks like it has not working at all until WP 5.9.1.

I will try to explain.
I hade in the theme a Ajax call which was calling a full single (single-portfolio.php) page (header + content + footer) and than I have used jQuery to get just some content from that full/whole page. And all that was working until WP 5.9.

Now, with latest update 5.9.1 that code has stop to work because of:

wp_body_open();

because I am calling/getting a full page (with header and footer - wrong way to do that). That has been fixed by calling/getting just a content part (without header/footer).

So, it looks like the wp_body_open(); has not been working correctly until WP 5.9.1.

Note: See TracTickets for help on using tickets.