Make WordPress Core

Opened 6 years ago

Closed 4 months ago

#49343 closed defect (bug) (worksforme)

post attributes not saving post order

Reported by: shadiadi's profile shadiadi Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.3.2
Component: Posts, Post Types Keywords: needs-testing
Focuses: Cc:

Description

the post attributes are not saving post order once the number of posts added has reached the amount to display in reading settings.

I set my posts to display post attributes order.

add_action( 'admin_init', 'posts_order_wpse_91866' );

function posts_order_wpse_91866() 
{
    add_post_type_support( 'post', 'page-attributes' );
}

They were all saving fine and showing in order until I got to my 11th post. My reading settings are set to 10 per page. All of a sudden my posts orders had all been reset to zero. Now trying to add the order again to the posts is not even saving the order amount when republished. It seems to be a bug in the Rest API somewhere because it was working until it got to my reading settings display limit.

Change History (3)

#1 @SergeyBiryukov
6 years ago

  • Summary changed from post atrributes not saving post order to post attributes not saving post order

This ticket was mentioned in Slack in #core by sirlouen. View the logs.


4 months ago

#3 @SirLouen
4 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Reproduction Report

Description

❌ This report can't validates that the issue can be reproduced.

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.29
  • Server: nginx/1.29.1
  • Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
  • Browser: Chrome 140.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-Five 1.3
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Testing Instructions

  1. Adding the snippet provided in OP somewhere it can be executed, like a plugin in this case
  2. Check that in Reading > Blog pages show at most is set to 10 (default
  3. Create 11 pages like Page 1, Page 2... Page 11 setting order to 1,2 ... 11 respectively
  4. 👌 Nothing resets, and each page is set with the corresponding order

Actual Results

  1. ❌ Error condition is not occurring.

Additional Notes

  • It seems that this is not ocurring anymore, so I'm closing as worksforme
Note: See TracTickets for help on using tickets.