[wp-trac] [WordPress Trac] #25939: add_options_page(..., 'options.php') and 1000 vars limit

WordPress Trac noreply at wordpress.org
Wed Nov 13 15:00:43 UTC 2013


#25939: add_options_page(..., 'options.php') and 1000 vars limit
----------------------------+-----------------------------
 Reporter:  tivnet          |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 (Related to the discussion in #14134)

 There is a "common knowledge" in the wilderness, suggesting having this
 for seeing all options at once, and I guess many admins have that enabled:

 {{{
 add_options_page('All Settings', 'All Settings', 'administrator',
 'options.php');
 }}}

 At some point, the list grows to more than 1,000 variables, and:

 {{{
 PHP Warning: Unknown: Input variables exceeded 1000.
 To increase the limit change max_input_vars in php.ini.
 in Unknown on line 0
 }}}


 The '''option table is corrupted''' then. In the best scenario, the tail
 of the table is occupied with transients. The worst - real settings.

 ''(having a separate table for transients sounds like a good idea to me,
 BTW)
 ''

 '''Now, to the point: the "All Settings" panel should NOT have the [Save]
 button. It must be read-only.
 '''

 Alternatively - AJAX save, similar to phpMyAdmin - for each option
 separately.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25939>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list