[wp-trac] [WordPress Trac] #60072: No upper limit restriction for number of posts set via Site Editor and the value entered by the user chang

WordPress Trac noreply at wordpress.org
Thu Dec 14 12:41:07 UTC 2023


#60072: No upper limit restriction for number of posts set via Site Editor and the
value entered by the user chang
--------------------------------------+-----------------------------
 Reporter:  jomonthomaslobo1          |      Owner:  (none)
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  Themes                    |    Version:
 Severity:  normal                    |   Keywords:  needs-patch
  Focuses:  template, sustainability  |
--------------------------------------+-----------------------------
 === 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

 x. 🐞 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

 [[Image('https://ibb.co/gygWt9N')]]
 [[Image('https://ibb.co/RywQtrH')]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60072>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list