Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #55444, comment 2


Ignore:
Timestamp:
03/23/2022 11:46:16 AM (3 years ago)
Author:
azouamauriac
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55444, comment 2

    initial v1  
    1 Hello @spacedmonkey  what are the steps to reproduce the bug please? I created six posts and made all of them sticky, I created a block page, use query loop to show only stickies posts and then I go to front page and all my six stickies posts are show up.
     1Hello @spacedmonkey  what are the steps to reproduce the bug please? I created six posts and made all of them sticky, I created a block page, use query loop to show only stickies posts and then I go to front page and all my six stickies posts are shown up.
     2
     3Also I made request like below and I get all my six stickies posts
     4{{{#!php
     5<?php
     6
     7$args = array(
     8        'post_type' => 'post',
     9        'post__in' => get_option( 'sticky_posts' )
     10);
     11
     12$the_query = new WP_Query($args);
     13var_dump($the_query->get_posts());
     14}}}
     15
    216
    317So how can I reproduce the bug here? Thanks.