Make WordPress Core

Opened 4 months ago

Last modified 2 months ago

#60072 new defect (bug)

No upper limit restriction for number of posts set via Site Editor and the value entered by the user chang

Reported by: jomonthomaslobo1's profile jomonthomaslobo1 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Themes Keywords: needs-patch
Focuses: ui, javascript, administration, template, sustainability Cc:

Description

Description

No upper limit restriction for number of posts set via Site Editor and the value entered by the user changes

Environment

  • WordPress: 6.4.2
  • PHP: 7.4.33
  • Server: Apache/2.4.54 (Unix) OpenSSL/1.0.2u PHP/7.4.33 mod_wsgi/3.5 Python/2.7.18 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1
  • Database: mysqli (Server: 5.7.39 / Client: mysqlnd 7.4.33)
  • Browser: Chrome 118.0.0.0 (macOS)
  • Theme: Twenty Twenty-Four 1.0
  • MU-Plugins: None activated
  • Plugins:
    • WordPress Beta Tester 3.5.5

Steps to Reproduce

  1. Goto Site Editor
  2. In the No. of posts per page option give a huge number and save the changes
  1. 🐞 Bug occurs.

Expected Results

  1. ✅ It should show the maximum number of posts allowed per page exceeded validation message or the value added by the user

Actual Results

  1. ❌ Goto Site Editor again and we can see the number changed to 9223372036854776000
  2. There is no upper limit validation and the value entered by the user changed to some random values

https://ibb.co/gygWt9N
https://ibb.co/RywQtrH

Attachments (2)

Screenshot 2023-12-14 at 6.06.44 PM.png (1.9 MB) - added by jomonthomaslobo1 4 months ago.
Random large value entered
Screenshot 2023-12-14 at 6.06.56 PM.png (2.0 MB) - added by jomonthomaslobo1 4 months ago.
Value entered changed to 9223372036854776000

Change History (3)

@jomonthomaslobo1
4 months ago

Random large value entered

@jomonthomaslobo1
4 months ago

Value entered changed to 9223372036854776000

#1 @jomonthomaslobo1
4 months ago

  • Focuses ui javascript administration added
Note: See TracTickets for help on using tickets.