Commit Graph

3315 Commits

Author SHA1 Message Date
Andrew Nacin 04bb986e97 Deprecate add_contextual_help() for get_current_screen()->add_help_tab(). fixes #19020.
git-svn-id: https://develop.svn.wordpress.org/trunk@19520 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 03:29:55 +00:00
Andrew Nacin 69a34ae62d They call me multisite. props ryan, zeo. see #19020.
git-svn-id: https://develop.svn.wordpress.org/trunk@19504 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 00:36:19 +00:00
Andrew Nacin ef6564d7cb s/Screen Info/Overview/g, see #19020.
git-svn-id: https://develop.svn.wordpress.org/trunk@19503 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 00:34:31 +00:00
Andrew Ozz 8b90f3c7e5 Sanitize options for resizing in the uploader, props mhauan, nacin, fixes #19399
git-svn-id: https://develop.svn.wordpress.org/trunk@19494 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 21:05:22 +00:00
Andrew Nacin c754f4636f 'Overview' for old-style help tabs, not 'Screen Info.' props jane. see #19020.
git-svn-id: https://develop.svn.wordpress.org/trunk@19493 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 20:58:39 +00:00
Andrew Nacin f1e505c84b Allow scratch beta/RC installs to experience pointers. Uncomment this before release. see #19360, #19382.
git-svn-id: https://develop.svn.wordpress.org/trunk@19490 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 16:08:29 +00:00
Andrew Nacin 15afe56aa9 Don't show pointers for new users. Works for new installs, too. fixes #19360.
git-svn-id: https://develop.svn.wordpress.org/trunk@19489 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 16:05:59 +00:00
Andrew Nacin 8ef374f2e1 Cap checks for pointers. see #19360.
git-svn-id: https://develop.svn.wordpress.org/trunk@19488 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 15:59:55 +00:00
Andrew Nacin 2b6fd8ceee WP_Screen: Whitelist -new and -add screens, and prevent edit-comments and edit-tags from being mashed on. fixes #19353.
git-svn-id: https://develop.svn.wordpress.org/trunk@19471 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 22:58:51 +00:00
Ryan Boren ef187a99f6 Initialize active_sitewide_plugins during network install and upgrade. fixes #19385
git-svn-id: https://develop.svn.wordpress.org/trunk@19470 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 20:35:36 +00:00
Andrew Nacin 23dcc6ef17 Move multisite-specific upgrade code from upgrade_330() to upgrade_network(). see #18693.
git-svn-id: https://develop.svn.wordpress.org/trunk@19469 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 20:04:00 +00:00
Andrew Nacin 82ae22f947 Use a scalpel to dissect names passed to convert_to_screen(). Carefully watch for post type names, suffixes we need to detect and remove, and when we need to remove 'edit-' from the start of a hookname. see #19353.
git-svn-id: https://develop.svn.wordpress.org/trunk@19468 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 18:33:40 +00:00
Andrew Nacin d7c9c422b5 Bump final db_version for 3.3, otherwise no new beta installs will see the pointers.
git-svn-id: https://develop.svn.wordpress.org/trunk@19466 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 17:47:26 +00:00
Andrew Nacin 36fa9fddd6 Use class_exists() rather than is_admin() as otherwise the unit tests won't work without a WP_ADMIN hack. see #19342.
git-svn-id: https://develop.svn.wordpress.org/trunk@19450 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-25 05:15:28 +00:00
Andrew Nacin 83b8af1bc6 Revert [19372] for 3.3. see #13473.
git-svn-id: https://develop.svn.wordpress.org/trunk@19448 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-24 16:06:17 +00:00
Andrew Nacin a877663cf9 Redirect to about.php on update. props ocean90. see #18467.
git-svn-id: https://develop.svn.wordpress.org/trunk@19442 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 23:38:36 +00:00
Daryl Koopersmith 3150c3cf4e Remove help sidebar background when no sidebar exists. props chrisbliss18, see #18197, [19361].
git-svn-id: https://develop.svn.wordpress.org/trunk@19430 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 22:14:03 +00:00
Ryan Boren 16c72e9e47 Move convert_to_screen() back to template.php to avoid fatal errors with plugins and themes that direct include template.php into the front end. Flag this bad behavior with _doing_it_wrong(). Props nacin. fixes #19342
git-svn-id: https://develop.svn.wordpress.org/trunk@19428 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 21:29:33 +00:00
Andrew Nacin fc9bd67e14 Move WP_Editor to a _WP_Editors encapsulation.
* WP_Editor will return in 3.4 as a one true API for editor instances. Stick to wp_editor() for now.
 * TinyMCE can now be forced on with tinymce = true. It defaults to the value for user_can_richedit().
 * Restores wp_default_editor(), wp_link_query(), wp_link_dialog(), wp_fullscreen_html().
fixes #19320.


git-svn-id: https://develop.svn.wordpress.org/trunk@19420 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 19:06:52 +00:00
Daryl Koopersmith 476f618f40 RTL styles for pointers. props helenyhou, fixes #19335.
git-svn-id: https://develop.svn.wordpress.org/trunk@19419 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 18:53:11 +00:00
Andrew Nacin 4d89846637 Change show/hide storage mechanism for show_welcome_panel. 0 = hide, 1 = show, 2 = show if the multisite owner. Make welcome panel dismissable without JS (openable too via the URL). fixes #19338, fixes #19127.
git-svn-id: https://develop.svn.wordpress.org/trunk@19418 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 18:30:45 +00:00
Jon Cave 07f811b765 Go back to $post_type global as get_current_screen()->post_type is empty during add/edit-tag AJAX requests. Fixes #18722.
git-svn-id: https://develop.svn.wordpress.org/trunk@19415 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 15:20:45 +00:00
Mark Jaquith eae2fc5944 Fix "wp_db_current_db_version" typo. see #18693
git-svn-id: https://develop.svn.wordpress.org/trunk@19411 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 22:05:42 +00:00
Mark Jaquith 00fd073cc0 Introduce initial_db_version and leverage it so that pointers only get shown to updated installs, not new 3.3 installs. props nacin. see #18693
git-svn-id: https://develop.svn.wordpress.org/trunk@19410 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 21:50:50 +00:00
Andrew Ozz 25c7b371f8 Restore back-compat with wp_tiny_mce(), see #19320
git-svn-id: https://develop.svn.wordpress.org/trunk@19408 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 21:47:01 +00:00
Andrew Nacin 2929a7ee9a Remove old dismissed pointers as the IDs have changed. Switch to underscores that way we don't need to translate them for method names. Avoid an empty pointer in the array. see #18693.
git-svn-id: https://develop.svn.wordpress.org/trunk@19389 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 23:04:35 +00:00
Daryl Koopersmith 8eceda0a12 Add new 3.3 pointer content, encapsulate 3.3 internal pointers in a final class. props ocean90, see #18693.
git-svn-id: https://develop.svn.wordpress.org/trunk@19388 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 22:39:48 +00:00
Andrew Nacin 361125eaf8 Remove $post_type global usage from media list table. Correct $post_type to 'attachment' for upload screens. see #18722.
git-svn-id: https://develop.svn.wordpress.org/trunk@19385 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 20:48:57 +00:00
Andrew Ozz 4feb285a78 Output the "After a file has been uploaded..." message by using the post-upload-ui action, fixes #18764
git-svn-id: https://develop.svn.wordpress.org/trunk@19384 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 20:46:15 +00:00
Jon Cave 3504002abe Link the posts count on taxonomy list table for non-public taxonomies. Instead check if the post type has show_ui => true as we're linking to the post list table. Fixes #18722.
git-svn-id: https://develop.svn.wordpress.org/trunk@19383 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 20:44:48 +00:00
Peter Westwood 2304ad1b0e Respect the default comment/ping status for new posts even when someone has hidden the meta box which lets you alter them on a per-post basis.
Fixes #13473 props solarissmoke. 


git-svn-id: https://develop.svn.wordpress.org/trunk@19372 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 13:45:10 +00:00
Andrew Ozz 0ed396ffed Admin bar IE7, iPad and rtl refresh, see #81197
git-svn-id: https://develop.svn.wordpress.org/trunk@19368 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 02:03:02 +00:00
Andrew Ozz 569841dc02 Improve RTL for Welcome panel, refresh css files, see #19271
git-svn-id: https://develop.svn.wordpress.org/trunk@19363 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-20 02:10:10 +00:00
Daryl Koopersmith 2ac5299c17 Help tabs: remove scrollbar and max-height. see #19155.
git-svn-id: https://develop.svn.wordpress.org/trunk@19361 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-20 01:03:17 +00:00
Andrew Ozz e94b9466a9 Show Insert into post button in the media library when the current post supports editor (not the attachment parent), props SergeyBiryukov, fixes #18912
git-svn-id: https://develop.svn.wordpress.org/trunk@19350 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-19 04:28:39 +00:00
Andrew Ozz f69b9abfb0 Welcome Screen: remove white space, make the second dismiss link work, see #11651
git-svn-id: https://develop.svn.wordpress.org/trunk@19345 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-19 00:42:22 +00:00
Daryl Koopersmith 8ada86e942 Shift welcome panel columns below WP badge. Improve column grid. props chexee, see #11651.
git-svn-id: https://develop.svn.wordpress.org/trunk@19342 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 23:33:11 +00:00
Ryan Boren a320cb7f46 Welcome Screen styling. Props chexee. see #11651
git-svn-id: https://develop.svn.wordpress.org/trunk@19339 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 18:58:46 +00:00
Ryan Boren 419bafe2c6 Welcome Panel: Add 'First Steps With WordPress' link. see #11651
git-svn-id: https://develop.svn.wordpress.org/trunk@19337 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 15:32:23 +00:00
Ryan Boren 79dff4165b Welcome Panel: Consult current theme capabilities. Remove trailing punc from list items. see #11651
git-svn-id: https://develop.svn.wordpress.org/trunk@19336 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 15:30:31 +00:00
Andrew Ozz de56df2004 Don't show the uploader on iPads (it's pointless), fixes #19004
git-svn-id: https://develop.svn.wordpress.org/trunk@19335 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 08:43:16 +00:00
Andrew Ozz 6385e58b51 Change text prompt in HTML uploader, props jane, fixes #19276
git-svn-id: https://develop.svn.wordpress.org/trunk@19330 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 01:25:27 +00:00
Ryan Boren aae12111c0 First pass at Welcome Screen content. Props jane. see #11651
git-svn-id: https://develop.svn.wordpress.org/trunk@19327 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-17 22:54:54 +00:00
Ryan Boren 67600b73a3 Change Close tab in Welcome Screen to a Dismiss link. Aligh bullets with paragraphs. Props georgestephanis, chexee. fixes #19271
git-svn-id: https://develop.svn.wordpress.org/trunk@19326 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-17 20:48:40 +00:00
Ryan Boren f626327800 Don't fallback to default post type or taxonomy if given an invalid post type or taxonomy. Use typenow as the canonical post type. Props nacin. see #19131
git-svn-id: https://develop.svn.wordpress.org/trunk@19321 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-17 18:01:08 +00:00
Andrew Nacin 9eef9937ee Remove extra space. props danielbachhuber.
git-svn-id: https://develop.svn.wordpress.org/trunk@19317 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-17 04:41:51 +00:00
Mark Jaquith 9b139832b4 Only fall back to get_site_option() if blog_upload_space value is === false. Zero should not fall back. fixes #18119. props jakub.tyrcha
git-svn-id: https://develop.svn.wordpress.org/trunk@19314 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-16 22:02:01 +00:00
Ryan Boren 29a5a0e192 Don't show edit links for spam comments. Props DH-Shredder. fixes #18340
git-svn-id: https://develop.svn.wordpress.org/trunk@19296 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 14:02:42 +00:00
Andrew Nacin 2375c19f56 Use REQUEST rather than GET to check the current post status page in _post_states(). Addresses a Quick Edit display issue. fixes #18611.
git-svn-id: https://develop.svn.wordpress.org/trunk@19295 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 03:51:28 +00:00
Andrew Ozz 3d33362b52 Add big-file-upload-warning for IE and Opera, left-align the percentage in the progress bar, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19286 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 23:21:16 +00:00
Andrew Ozz 9cc4fac7fa Filter the link href when inserting external image in the editor, props DrewAPicture, fixes #18445
git-svn-id: https://develop.svn.wordpress.org/trunk@19275 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 19:35:32 +00:00
Daryl Koopersmith 4bc2fdb619 New pointer styles. Arrows are currently optimized to point upward. props georgestephanis, chexee. see #18693.
git-svn-id: https://develop.svn.wordpress.org/trunk@19269 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 10:30:14 +00:00
Andrew Ozz 82f5175bf7 Media Lib: fix displaying file headers in IE7, delegate the Show/Hide JS, prevent displaying upload error for the same file twice, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19268 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-13 18:37:30 +00:00
Andrew Ozz 3e06696012 Add error message when a big file fails to upload, expose the XHR request in plipload and abort() it, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19266 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-13 02:01:13 +00:00
Andrew Ozz 0620dbb5eb Uploader: fix file-size-exceeded error handling, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19262 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-12 00:52:26 +00:00
Andrew Nacin 12cd7fe5ef Normal sentence case. see #19228.
git-svn-id: https://develop.svn.wordpress.org/trunk@19260 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-11 20:32:20 +00:00
Andrew Ozz 7334506df0 Bring back the multi-file/html uploader switching, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19257 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-11 19:40:23 +00:00
Ryan Boren f42a7852c2 Don't show 'Use as featured image' in the image insert dialog if the post type does not support thumbnails. Props SergeyBiryukov. fixes #18669
git-svn-id: https://develop.svn.wordpress.org/trunk@19256 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-11 19:38:34 +00:00
Ryan Boren 56c8b5dad5 Check caps when showing media edit and attach links. Clean up formatting. Props kurtpayne, DH-Shredder, solarissmoke. fixes #17419
git-svn-id: https://develop.svn.wordpress.org/trunk@19252 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-11 15:04:54 +00:00
Ryan Boren d154749f87 Avoid notice when themes dir is empty or missing. Don't reset current theme in current_theme_info() if there are no themes. Show warning in Right Now if there are no themes. Props azaozz. fixes #19089
git-svn-id: https://develop.svn.wordpress.org/trunk@19251 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-11 14:10:54 +00:00
Ryan Boren 371bb1eb98 Properly handle child themes for WP_DEFAULT_THEME. Props SergeyBiryukov. fixes #18591
git-svn-id: https://develop.svn.wordpress.org/trunk@19249 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-10 21:06:57 +00:00
Andrew Ozz 448af8627c Uploader: fix progress bar JS and update the style (light blue bars), see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19247 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-10 20:33:26 +00:00
Ryan Boren 4b55413e42 More specific error strings for failed theme and plugin package uploads. Props dd32. fixes #14999
git-svn-id: https://develop.svn.wordpress.org/trunk@19246 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-10 19:41:44 +00:00
Andrew Nacin 96f19438fb Add wxr_export_skip_postmeta filter for skipping postmeta in exports. props westi, fixes #18280.
git-svn-id: https://develop.svn.wordpress.org/trunk@19233 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-09 19:32:44 +00:00
Andrew Nacin e7766adec1 Rename attachment link button from 'Post URL' to 'Attachment Post URL.' props jeremyclarke, fixes #13544.
git-svn-id: https://develop.svn.wordpress.org/trunk@19232 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-09 19:23:31 +00:00
Andrew Nacin 9e785948d4 Fix link in welcome panel. see #19217, props cebradesign, SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@19228 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-09 15:21:26 +00:00
Andrew Ozz b9843de7a6 Revert media.php too, see #19174
git-svn-id: https://develop.svn.wordpress.org/trunk@19226 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 22:42:20 +00:00
Andrew Ozz d2d9926055 Revert [19223] and only stop showing the checkbox, props nacin, see #19174
git-svn-id: https://develop.svn.wordpress.org/trunk@19225 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 22:34:09 +00:00
Andrew Ozz 4c66628f35 Remove the Resize files checkbox for now (revisit in 3.4), fixes #19174
git-svn-id: https://develop.svn.wordpress.org/trunk@19223 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 22:23:40 +00:00
Ryan Boren aee3c7de59 Don't show the view link for a future post unless the current user has the permissions to edit the post. Treat future posts as a preview case. Props ocean90. fixes #18894
git-svn-id: https://develop.svn.wordpress.org/trunk@19213 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 14:24:14 +00:00
Andrew Nacin 1c57505242 Don't use $post_type global in the posts list table. props scribu, see #18475.
git-svn-id: https://develop.svn.wordpress.org/trunk@19192 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-06 21:14:27 +00:00
Andrew Nacin 3de47877d6 Remove default help text. Keep the default_help filter in place for plugins. fixes #19154.
git-svn-id: https://develop.svn.wordpress.org/trunk@19185 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-06 18:13:06 +00:00
Andrew Nacin feca4c4984 Space out two strings. props ocean90, fixes #19167.
git-svn-id: https://develop.svn.wordpress.org/trunk@19181 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 20:21:12 +00:00
Andrew Ozz cb40252565 Uploader: split "Drop files here -or-..." on two lines, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19177 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 18:09:38 +00:00
Daryl Koopersmith 986602c14c Second half of new welcome panel formatting. Add .icon16, for menu icon reuse. see #11651.
git-svn-id: https://develop.svn.wordpress.org/trunk@19163 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 01:17:50 +00:00
Andrew Nacin 731127e61b Use call_user_func_array() as call_user_func() cannot pass by reference. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19155 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-04 15:06:11 +00:00
Andrew Nacin 53891da7c8 Pass $tab array to callback execution for help tabs. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19154 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-04 15:04:58 +00:00
Daryl Koopersmith bfd8e1a095 First half of new welcome panel formatting. props chexee. see #11651.
git-svn-id: https://develop.svn.wordpress.org/trunk@19145 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-04 01:31:31 +00:00
Andrew Nacin 14c3606e1f Allow is_network and is_user to work for all screen instances. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19132 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-03 23:00:46 +00:00
Andrew Ozz e3cb75932b Revert the look and functionality of Screen Options ans Help links/tabs, see #18197, see #18785
git-svn-id: https://develop.svn.wordpress.org/trunk@19131 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-03 20:26:09 +00:00
Andrew Ozz 882574b78c Revert placement of Help and Screen Options to under the admin bar on the right, see #18197, see #18785
git-svn-id: https://develop.svn.wordpress.org/trunk@19130 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-03 17:08:12 +00:00
Andrew Ozz 3700b57fdc Remove the Cancel Upload button, fixes #19050
git-svn-id: https://develop.svn.wordpress.org/trunk@19127 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-03 01:47:12 +00:00
Andrew Nacin 33ee9a7d04 s/add_help_sidebar/set_help_sidebar/g and introduce screen->remove_help_tab($id) and screen->remove_help_tabs(). see #19020, #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19119 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-02 20:14:10 +00:00
Dion Hulse b37514a7fd Tabs > Spaces. Props SergeyBiryukov. See #14999
git-svn-id: https://develop.svn.wordpress.org/trunk@19115 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-02 12:16:47 +00:00
Andrew Nacin c69f53c37d Reverse variable assignment order. D'oh. see #19108.
git-svn-id: https://develop.svn.wordpress.org/trunk@19113 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-02 04:24:17 +00:00
Andrew Nacin 809c1558e3 Remove cruft. see #19106.
git-svn-id: https://develop.svn.wordpress.org/trunk@19112 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-02 04:14:14 +00:00
Mark Jaquith 41d1ab35f3 Use %s instead of %d in plugin install notice strings. props johnbillion. fixes #19106
git-svn-id: https://develop.svn.wordpress.org/trunk@19109 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-02 02:36:18 +00:00
Andrew Nacin 45c23f2fcf Use more obvious variables in WP_Screen. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19108 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-01 21:36:04 +00:00
Andrew Ozz 1746c2af62 Disable the Cancel Upload button after the upload has finished or if it was interrupted, fixes #19050
git-svn-id: https://develop.svn.wordpress.org/trunk@19099 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-31 21:38:28 +00:00
Andrew Nacin 3a15274807 Always run the old contextual_help filter. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19098 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-31 21:37:43 +00:00
Andrew Nacin d91bf70dd7 Consistently set taxnow/typenow and the current screen's post_type/taxnomy, whenever it can be detected. Allow WP_Screen::get() to accept a post type as a hook_name. Fixes issues with the meta box $page/$screen argument. fixes #19080. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19097 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-31 21:28:17 +00:00
Andrew Nacin a5c6da9a2e Move from quickpress_post_ID to post_ID. fixes #19095.
git-svn-id: https://develop.svn.wordpress.org/trunk@19093 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-31 17:08:36 +00:00
Andrew Nacin 8d01fc1f9a Fix copypasta in in WP_Screen. see #19095, props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@19092 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-31 16:57:29 +00:00
Andrew Nacin 115014be64 Require show_ui rather than public for a taxonomy's parent post type. see #19080.
git-svn-id: https://develop.svn.wordpress.org/trunk@19089 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-29 05:30:57 +00:00
Ryan Boren 722c6d7003 Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@19074 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-28 15:48:44 +00:00
Ryan Boren f8ed38f26c Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@19072 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-27 20:00:09 +00:00
Andrew Nacin b7b6a7e5ae Use correct object. props adambackstrom. fixes #19045.
git-svn-id: https://develop.svn.wordpress.org/trunk@19066 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 16:08:24 +00:00
Andrew Nacin fa00acb382 Add missing keyword. fixes #19046, see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19064 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 16:05:39 +00:00
Andrew Nacin 219bc246bc Make convert_to_screen() more resilient. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19063 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 06:54:23 +00:00
Andrew Nacin 261ee73e3d Merge upgrade_old_widgets_order_array() into upgrade_330(). see #18811, see #18821.
git-svn-id: https://develop.svn.wordpress.org/trunk@19062 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 05:50:39 +00:00
Andrew Nacin 96e4fffaa9 Introduce upgrade_330() to clear usermeta keys show_admin_bar_admin and plugins_last_view. fixes #18811.
git-svn-id: https://develop.svn.wordpress.org/trunk@19061 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 05:48:09 +00:00
Andrew Nacin fcf1696de4 Introduce ->mysql to allow drop-ins to declare themselves as MySQL and therefore allow minimum version checks to still apply. fixes #18176.
git-svn-id: https://develop.svn.wordpress.org/trunk@19060 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 05:29:28 +00:00
Dion Hulse f869eb56b8 Themes not within a subdirectory of the zip need to have the working directory Trailingslashed. See #14999
git-svn-id: https://develop.svn.wordpress.org/trunk@19057 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 04:25:52 +00:00
Ryan Boren fd10e500e4 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@19054 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 19:13:23 +00:00
Ryan Boren 5fecc93721 Fallback to the default post type only if it is registed for the taxonomy. Props nacin. see #18785
git-svn-id: https://develop.svn.wordpress.org/trunk@19053 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 19:10:56 +00:00
Andrew Nacin cc5f01a784 Move WP_Screen to a full registry. Have convert_to_screen() return a WP_Screen object. Improve and verify values for post_type and taxonomy. see #18785. also fixes #14886.
git-svn-id: https://develop.svn.wordpress.org/trunk@19052 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 18:34:08 +00:00
Andrew Nacin 16c6875d29 screen.php tidying. Doc fixes and improvements. Improve logic in ::show_screen_options(). Remove regex in ::set_parentage(). Better variable names. Streamline get_screen_icon(). Whitespace. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19051 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 06:40:15 +00:00
Andrew Nacin 38440b5e9a Deprecate favorite_actions(). see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@19050 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 06:10:36 +00:00
Andrew Nacin de3bf760b6 Rework get_hidden_meta_boxes() to leverage a full WP_Screen object. Prevents custom post types from having their explicity supported meta boxes being hidden by default. see #18958.
git-svn-id: https://develop.svn.wordpress.org/trunk@19049 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 19:22:27 +00:00
Andrew Nacin 7121150930 Use get_current_screen() rather than a $current_screen global reference. Remove unused global reference. see #14886.
git-svn-id: https://develop.svn.wordpress.org/trunk@19047 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 18:01:33 +00:00
Andrew Nacin ed8f3c3f95 Deprecate media_upload_(image|audio|video|file)(), type_url_form_(image|audio|video|file)(). These now wrap wp_media_upload_handler() and wp_media_insert_url_form(). see #17578.
git-svn-id: https://develop.svn.wordpress.org/trunk@19046 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 17:58:06 +00:00
Andrew Nacin 79ff2e030c Fix [16249]. $typenow is considered empty on edit-tags screens, rather than displaying the parent post type. Switch to the $post_type global for now, which is set in the terms list table constructor. see #14886.
git-svn-id: https://develop.svn.wordpress.org/trunk@19043 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 17:48:58 +00:00
Andrew Nacin f3e64d5112 Undent (by two tabs) a whole lot of code in dbDelta(). Thx. see #17998.
git-svn-id: https://develop.svn.wordpress.org/trunk@19041 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 22:40:30 +00:00
Andrew Nacin c64486425a Have dbDelta() loop through tables it knows about, rather than loop through a potentially expensive and definitely unnecessary SHOW TABLES. fixes #17998.
git-svn-id: https://develop.svn.wordpress.org/trunk@19040 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 22:35:33 +00:00
Andrew Nacin cab3d35ee0 Make wpmu_delete_blog() slightly less crappy. Prevents the entire network from being dropped in a particularly rare edge case. Removes some zombie code. fixes #19009.
git-svn-id: https://develop.svn.wordpress.org/trunk@19038 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 22:04:52 +00:00
Jon Cave 939b085f54 Correct @param text ordering to put "Optional." in description, see r19019 and #18958. Also remove empty docblock tag.
git-svn-id: https://develop.svn.wordpress.org/trunk@19030 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 15:53:57 +00:00
Andrew Nacin 1287ec492a Translated strings in attributes require esc_attr(). s/_e/esc_attr_e/g
git-svn-id: https://develop.svn.wordpress.org/trunk@19028 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 15:04:46 +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
Andrew Nacin c55e62a9ae Make $screen argument for add_meta_box() (previously $page) optional. see #18958.
git-svn-id: https://develop.svn.wordpress.org/trunk@19019 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 23:01:55 +00:00
Andrew Nacin b3b1b00cff Strip out the show_wp_pointer_admin_bar for now. see #18693.
git-svn-id: https://develop.svn.wordpress.org/trunk@19015 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 21:52:14 +00:00
Andrew Nacin 6c8c746dbc Move welcome panel link to a 'Show on screen' checkbox. see #11651.
git-svn-id: https://develop.svn.wordpress.org/trunk@19014 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 21:43:21 +00:00
Ryan Boren 5914353c06 Update meta box functions to handle WP_Screen objects and pass objects instead of IDs to them in core files. Allow passing emptiness to get the current screen. see #18958
git-svn-id: https://develop.svn.wordpress.org/trunk@19013 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 21:43:02 +00:00
Jon Cave d7ee58c7e2 Show the current post format in quick edit even if it's not supported. Props nacin, fixes #18083.
git-svn-id: https://develop.svn.wordpress.org/trunk@19011 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 17:48:07 +00:00
Mark Jaquith f32a070480 Use the correct capability check for taxonomies in Quick Edit. props lancewillett. fixes #18551
git-svn-id: https://develop.svn.wordpress.org/trunk@19010 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 17:08:57 +00:00
Daryl Koopersmith 9e0ccd9fdf In welcome panel, move periods outside of links. see #11651.
git-svn-id: https://develop.svn.wordpress.org/trunk@19009 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 17:05:12 +00:00
Daryl Koopersmith c1945d5c69 Welcome panel contents and functionality. see #11651.
git-svn-id: https://develop.svn.wordpress.org/trunk@19007 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 16:41:26 +00:00
Ryan Boren 789dab3f20 Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@18998 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-18 20:44:39 +00:00
Ryan Boren 9683b05c4e Avoid pass by ref warning. Props arena. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@18997 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-18 20:38:18 +00:00
Andrew Nacin f95cb305ea Use get_intermediate_image_sizes() in image edit functions. props mau, fixes #17475.
git-svn-id: https://develop.svn.wordpress.org/trunk@18996 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-18 20:33:34 +00:00
Andrew Nacin c56c7320a3 Fix media/audio/file URL insertion. Strip slashes off title text. Leave red X to images only. fixes #14996. fixes #17578.
git-svn-id: https://develop.svn.wordpress.org/trunk@18992 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-18 19:32:40 +00:00
Dion Hulse 527935e883 Fix Undefined Variable Notices when no charset/collate is set for $wpdb. See #12028
git-svn-id: https://develop.svn.wordpress.org/trunk@18986 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-18 02:48:07 +00:00
Andrew Ozz d1b8509e83 Use IE conditionals when adding the ie8 class, introduce _wp_admin_html_begin(), props scribu, fixes #18966
git-svn-id: https://develop.svn.wordpress.org/trunk@18982 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-17 20:57:32 +00:00
Jon Cave d197a1d865 Fix notices in wp_iframe() and iframe_header() by referencing $wp_htmltag_class as a global. See r18975 and #18314.
git-svn-id: https://develop.svn.wordpress.org/trunk@18977 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-15 10:43:55 +00:00
Andrew Ozz 573a1813dc RTL, IE7 and IE7 RTL fixes, add class="ie8" to the html tag, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@18975 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-15 07:33:01 +00:00
Daryl Koopersmith ed7c3fb655 Simplify pointer API with smarter positioning. see #18693.
git-svn-id: https://develop.svn.wordpress.org/trunk@18969 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-14 03:33:46 +00:00
Dion Hulse b158ddc175 WP_Filesystem_*::mkdir() untrailingslash path consistently, don't waste time attempting to create an "empty" path. See #15575. Props lordandrei and SergeyBiryukov for initial patches.
git-svn-id: https://develop.svn.wordpress.org/trunk@18964 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-13 10:43:38 +00:00
Andrew Ozz e10d951cce Fix visibility of Select Files button in IE7, change border color when hovering over the drag drop area of the uploader, see #18918, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18957 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-12 22:24:53 +00:00
Jon Cave 83d7fbe1a6 Revert r18887 due to back compat issues. Fixes #18914.
For example 'intval' couldn't be used as a sanitisation callback.


git-svn-id: https://develop.svn.wordpress.org/trunk@18951 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-12 16:35:33 +00:00
Andrew Nacin 103666d6b3 Restore object handling in add_contextual_help(). see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@18950 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-12 16:24:55 +00:00
Andrew Nacin bdc8ac11ea Don't instantiate WP_Screen in convert_to_screen() for now. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@18949 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-12 16:22:50 +00:00
Andrew Nacin beb1613be7 Restore $screen argument for contextual_help* filters. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@18945 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-11 21:45:28 +00:00
Andrew Nacin 3940109c7f Store screen help and options as static data against WP_Screen. Individual screen objects no longer hold data it can't re-generate on construction or otherwise fetch. convert_to_screen() now returns a WP_Screen object. Various globals are gone. Introduces WP_Screen::get_option(). Allows for a formal factory to be introduced later. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@18943 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-11 21:32:16 +00:00
Andrew Nacin 8f0389b3e9 Enforce IDs for add_help_tab(). props mbijon. Restore default_contextual_help, for now. see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@18941 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-11 19:29:09 +00:00
Ryan Boren db7795de32 Do the beta bump
git-svn-id: https://develop.svn.wordpress.org/trunk@18938 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-10 23:50:20 +00:00
Andrew Nacin 1db90d21e0 Use AJAX request and usermeta rather than user settings for dismissing admin bar pointers. see #18693.
git-svn-id: https://develop.svn.wordpress.org/trunk@18937 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-10 23:31:36 +00:00
Andrew Nacin b827c657fb Check post_type_supports before adding comments column to attachments. Translate a string. props johnbillion, SergeyBiryukov. fixes #18644.
git-svn-id: https://develop.svn.wordpress.org/trunk@18931 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-10 19:56:35 +00:00
Andrew Nacin f9bba8610d Make the Browse Happy box look somewhat okay in Internet Explorer. Remove html tags from a string. props SergeyBiryukov, pavelevap. fixes #17980.
git-svn-id: https://develop.svn.wordpress.org/trunk@18930 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-10 19:54:26 +00:00
Andrew Ozz 619caa5c73 Make iPad support usable again, add viewport meta, see #18863
git-svn-id: https://develop.svn.wordpress.org/trunk@18926 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-10 04:19:05 +00:00
Andrew Ozz cfcb553dfb Add translation comment, props ocean90, fixes #18881
git-svn-id: https://develop.svn.wordpress.org/trunk@18922 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-08 03:14:41 +00:00
Andrew Ozz 2b2bff2fca Fix insetring images in Quick Press and Press This, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18920 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-07 20:14:21 +00:00