Commit Graph

84 Commits

Author SHA1 Message Date
Sergey Biryukov ece505b122 Remove redundant echo calls from list tables. Don't mix string concatenation with direct output. see #24210.
git-svn-id: https://develop.svn.wordpress.org/trunk@24123 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-29 01:10:50 +00:00
Helen Hou-Sandi 1303e7377a its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665.
git-svn-id: https://develop.svn.wordpress.org/trunk@23191 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:55:32 +00:00
Andrew Ozz 330c10d1a9 Kill use of colons in class names, props SergeyBiryukov, fixes #21152
git-svn-id: https://develop.svn.wordpress.org/trunk@22396 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 01:01:52 +00:00
Ryan Boren 580abb3c60 Fix strict warnings for WP_Plugins_List_Table::bulk_actions() and WP_Plugins_List_Table::single_row(). Props kurtpayne. fixes #22224
git-svn-id: https://develop.svn.wordpress.org/trunk@22376 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-05 18:29:20 +00:00
Andrew Nacin 1c58ef9f33 Updates and fixes to the new button styles. By default, buttons are now the same size as they were in 3.4. Then there is a smaller button (designed for minor elements) and a larger button (designed for things like Publish and Save Changes). Better focus styles. props lessbloat. see #21598.
git-svn-id: https://develop.svn.wordpress.org/trunk@21944 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 19:34:23 +00:00
Ryan Boren 7c52a19a5a Reduce reliance on global variables in the list tables. Allow passing a screen ID to the list tables so that ajax handlers can set the needed screen.
Props nacin
fixes #21871


git-svn-id: https://develop.svn.wordpress.org/trunk@21914 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 12:43:31 +00:00
Daryl Koopersmith 7d6e53317c New button styles.
Using the new buttons:

* Button classes are now stackable.
* All buttons should use a base class of "button".
* Buttons default to the gray style (formerly "button-secondary"). Buttons can add a style by adding additional classes. To make a primary button, add the "button-primary" class.
* Buttons can be rendered in various sizes. In addition to the default size, you can add "button-large", "button-small", or "button-tiny".

For backwards compatibility reasons, "button-primary" and "button-secondary" both work as standalone classes.

get_submit_button() has been adjusted to handle shorthand button classes (i.e. button classes can be passed without the "button-" prefix).

props lessbloat, helenyhou, trepmal, nacin. see #21598.



git-svn-id: https://develop.svn.wordpress.org/trunk@21789 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-08 04:58:34 +00:00
Ryan Boren 80147a8a19 Remove the filter setting when searching media. Props helenyhou. fixes #19452
git-svn-id: https://develop.svn.wordpress.org/trunk@21750 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 21:20:51 +00:00
Ryan Boren 92ea34f6a2 Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759
git-svn-id: https://develop.svn.wordpress.org/trunk@21664 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 13:33:00 +00:00
Ryan Boren dd15327790 More screen reader text for list table checkboxes and theme install search. Props MikeLittle, SergeyBiryukov. see #21325
git-svn-id: https://develop.svn.wordpress.org/trunk@21323 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 16:18:14 +00:00
Ryan Boren c47eef91e0 Add screen reader text to checkboxes in list tables. Props MikeLittle, nacin. see #21325
git-svn-id: https://develop.svn.wordpress.org/trunk@21317 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 18:01:22 +00:00
Andrew Nacin a30c7c32c4 Remove type='number' from list table page inputs out of a concern for UX, as well as styling issues. fixes #20247. see #17863 for further discussion.
git-svn-id: https://develop.svn.wordpress.org/trunk@20198 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:04:07 +00:00
Andrew Ozz fcbd8f7f57 Set proper HTML5 input types in the admin, props georgestephanis, fixes #17863
git-svn-id: https://develop.svn.wordpress.org/trunk@20168 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 01:23:48 +00:00
Daryl Koopersmith 90a115e4b4 Partially revert [20100]. The list_args JS variable cannot be extended due to its use as an argument in fetch-list. see #19815.
We should reattempt extending the args created in WP_List_Table, but will need to deprecate the current list_args to do so.

Also, infinite scroll on themes pages is no longer broken. Go team.

git-svn-id: https://develop.svn.wordpress.org/trunk@20104 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-03 02:40:43 +00:00
Andrew Nacin b6b4d37fcb Allow WP_List_Table::_js_vars() to take an array of additional args to add. Allows us to have a single variable printing data when child classes need more data. Also, fix compact() call in [20094]. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20100 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 23:06:31 +00:00
Andrew Nacin 43209998c6 Output themes and theme-install infinite scrolling args in JS, rather than parsing query strings. props DH-Shredder, helenyhou. Make WP_Theme_Install_List_Table extend WP_Themes_List_Table. Doesn't help much yet, but we should be able to dry things up further. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20094 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:09:26 +00:00
Andrew Nacin 7ff19e6012 Use existing string to properly translate month + year combo. see #19598.
git-svn-id: https://develop.svn.wordpress.org/trunk@19819 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-03 00:11:01 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Andrew Nacin 420fe65fca Sanitize plural and singular args for list tables. props sbressler, fixes #18875.
git-svn-id: https://develop.svn.wordpress.org/trunk@19020 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 23:51:06 +00:00
Daryl Koopersmith a5acbaa574 Make screen options a help tab. Move screen option functions into WP_Screen. see #18690, #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@18853 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-01 00:24:44 +00:00
Jon Cave 60d321b14b Fix typos in documentation (wp-admin/). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18632 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 14:18:10 +00:00
Ryan Boren 28851bb6fe Update phpdoc for WP_List_Table::views(). Props Viper007Bond. fixes #18358
git-svn-id: https://develop.svn.wordpress.org/trunk@18600 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 17:56:34 +00:00
Ryan Boren 46d96c7704 Bring out the pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@18254 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 23:01:45 +00:00
Andrew Ozz fc4915fb0f Do not run bulk edit when the user clicks on a filter, fixes #17733
git-svn-id: https://develop.svn.wordpress.org/trunk@18222 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 00:01:16 +00:00
Mark Jaquith 4f8b646e03 Centralize pagination bound exceeding redirects for list tables. props garyc40. props johnjamesjacoby. fixes #16208
git-svn-id: https://develop.svn.wordpress.org/trunk@17900 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-12 06:09:42 +00:00
Ryan Boren 237f1c3e78 Always show # items text. Props johnbillion. fixes #17260
git-svn-id: https://develop.svn.wordpress.org/trunk@17798 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-04 19:45:41 +00:00
Ryan Boren 9730cb8d15 Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 20:05:12 +00:00
Andrew Nacin 22230cb94e Avoid printf entirely. props SergeyBiryukov, fixes #16611 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17481 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-22 10:12:38 +00:00
Andrew Nacin 6970857abf Use get_comments_number() in comments_bubble() method. Removes chance of sprintf arguments error due to percent encoding in URLs and kills unnecessary translations. Escape translations into attributes. esc_url on admin_url. fixes #16611 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17475 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-22 04:24:20 +00:00
Ryan Boren 451d7d8ffb Pink the whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@17435 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:35:36 +00:00
Andrew Nacin cea40dfbeb Use array_intersec_assoc. props duck_, fixes #16378.
git-svn-id: https://develop.svn.wordpress.org/trunk@17369 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-27 19:37:38 +00:00
Andrew Nacin 3b7734f41a Add orderby and order hidden fields to each list form, to allow for state. props SergeyBiryukov, fixes #16341.
git-svn-id: https://develop.svn.wordpress.org/trunk@17353 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:36:54 +00:00
Andrew Nacin 3949bb8c60 doaction buttons don't need a name, only an ID. fixes #16345.
git-svn-id: https://develop.svn.wordpress.org/trunk@17352 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:31:35 +00:00
Mark Jaquith 4bca42b961 Fix the comments "river." issue 9. props garyc40. see #16262
git-svn-id: https://develop.svn.wordpress.org/trunk@17344 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-21 21:17:12 +00:00
Mark Jaquith 19b385450e Fix inter-page navigating on Edit Comments screen when using keyboard shortcuts. props garyc40. see #16262
git-svn-id: https://develop.svn.wordpress.org/trunk@17343 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-21 20:28:41 +00:00
Andrew Nacin 04f552b7d5 Use get_column_count() instead of manual logic. props scribu, fixes #16279.
git-svn-id: https://develop.svn.wordpress.org/trunk@17342 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-21 07:39:21 +00:00
Andrew Nacin e8040ea42d Properly account for columns shown in the list table display_rows_or_placeholder methods. props garyc40, fixes #16279.
git-svn-id: https://develop.svn.wordpress.org/trunk@17339 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-20 22:19:34 +00:00
Andrew Nacin 2b4674a3b4 Remove AJAX from list tables. first pass. see #16262.
git-svn-id: https://develop.svn.wordpress.org/trunk@17322 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-16 21:47:24 +00:00
Andrew Nacin 71b24d4577 Revert [17270], [17273], see #16166, see #16262.
git-svn-id: https://develop.svn.wordpress.org/trunk@17321 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-16 21:34:38 +00:00
Andrew Nacin fa0584e236 Prevent new bulk actions from being added through the bulk_actions-screen filter. fixes #16031 at least for 3.1.
git-svn-id: https://develop.svn.wordpress.org/trunk@17297 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-14 07:20:13 +00:00
Andrew Nacin 51b498aec2 Force get_pagenum to validate max pages. Add sanity redirect code to upload.php. see #16187. props MarkJaquith, greuben.
git-svn-id: https://develop.svn.wordpress.org/trunk@17271 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-12 17:24:34 +00:00
Andrew Nacin 19122c3516 Keep sorting and paging for bulk actions. props garyc40, see #16166.
git-svn-id: https://develop.svn.wordpress.org/trunk@17270 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-12 17:06:33 +00:00
Andrew Nacin 6356b0a0b8 Document abstract methods in WP_List_Table.
git-svn-id: https://develop.svn.wordpress.org/trunk@17268 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-12 08:05:23 +00:00
Andrew Nacin 4c869552ff Nonce checks for internal linking and list table ajax. fixes #16188.
git-svn-id: https://develop.svn.wordpress.org/trunk@17255 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-11 20:03:50 +00:00
Ryan Boren d95ed80091 Selectively reset list-table forms rather than all forms to avoid stompage. Props koopersmith. fixes #16098
git-svn-id: https://develop.svn.wordpress.org/trunk@17239 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-07 20:52:42 +00:00
Ryan Boren eba71eb7c0 Bring out the shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-06 04:11:14 +00:00
Andrew Nacin 70c1166ad1 Use correct variables. props garyc40, see #15503.
git-svn-id: https://develop.svn.wordpress.org/trunk@17206 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-02 10:55:10 +00:00
Andrew Nacin 4f947ac5b9 Disabled states for first/prev and next/last pagination buttons when they should noop. see #15503.
git-svn-id: https://develop.svn.wordpress.org/trunk@17202 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-01 23:19:26 +00:00
Ryan Boren 3edaa30bed Always output pagination controls. Hide them when they are not needed. Show them upon AJAX result that requires pagination. Props nacin. fixes #15983
git-svn-id: https://develop.svn.wordpress.org/trunk@17156 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-26 22:06:15 +00:00
Ryan Boren 2b54d5a3b6 RTL pagination fixes. Props yoavf. fixes #15974
git-svn-id: https://develop.svn.wordpress.org/trunk@17153 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-26 21:54:52 +00:00