Commit Graph

3110 Commits

Author SHA1 Message Date
nacin
12de7d1e2d 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: http://svn.automattic.com/wordpress/trunk@19052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 18:34:08 +00:00
nacin
29f6c203cd 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: http://svn.automattic.com/wordpress/trunk@19051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 06:40:15 +00:00
nacin
a4a58839d0 Deprecate favorite_actions(). see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 06:10:36 +00:00
nacin
c62a9fe508 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: http://svn.automattic.com/wordpress/trunk@19049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 19:22:27 +00:00
nacin
f6368c50c4 Use get_current_screen() rather than a $current_screen global reference. Remove unused global reference. see #14886.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 18:01:33 +00:00
nacin
7ed04cc2f3 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: http://svn.automattic.com/wordpress/trunk@19046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 17:58:06 +00:00
nacin
1a37559654 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: http://svn.automattic.com/wordpress/trunk@19043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 17:48:58 +00:00
nacin
2b4b7aa211 Undent (by two tabs) a whole lot of code in dbDelta(). Thx. see #17998.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 22:40:30 +00:00
nacin
870d7860fd 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: http://svn.automattic.com/wordpress/trunk@19040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 22:35:33 +00:00
nacin
f708c5eaff 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: http://svn.automattic.com/wordpress/trunk@19038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 22:04:52 +00:00
duck_
424cd58652 Correct @param text ordering to put "Optional." in description, see r19019 and #18958. Also remove empty docblock tag.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 15:53:57 +00:00
nacin
43eae59235 Translated strings in attributes require esc_attr(). s/_e/esc_attr_e/g
git-svn-id: http://svn.automattic.com/wordpress/trunk@19028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 15:04:46 +00:00
nacin
3e61e179d9 Sanitize plural and singular args for list tables. props sbressler, fixes #18875.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 23:51:06 +00:00
nacin
51657715c1 Make $screen argument for add_meta_box() (previously $page) optional. see #18958.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 23:01:55 +00:00
nacin
db86ea12d4 Strip out the show_wp_pointer_admin_bar for now. see #18693.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 21:52:14 +00:00
nacin
11a800a3d9 Move welcome panel link to a 'Show on screen' checkbox. see #11651.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 21:43:21 +00:00
ryan
d0d8eb2aaf 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: http://svn.automattic.com/wordpress/trunk@19013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 21:43:02 +00:00
duck_
16daac44ec Show the current post format in quick edit even if it's not supported. Props nacin, fixes #18083.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 17:48:07 +00:00
markjaquith
aa64ec5d1d Use the correct capability check for taxonomies in Quick Edit. props lancewillett. fixes #18551
git-svn-id: http://svn.automattic.com/wordpress/trunk@19010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 17:08:57 +00:00
koopersmith
52829ad92f In welcome panel, move periods outside of links. see #11651.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 17:05:12 +00:00
koopersmith
1391717cfa Welcome panel contents and functionality. see #11651.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 16:41:26 +00:00
ryan
67661f7181 Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975
git-svn-id: http://svn.automattic.com/wordpress/trunk@18998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 20:44:39 +00:00
ryan
6623ea4b4a Avoid pass by ref warning. Props arena. see #18975
git-svn-id: http://svn.automattic.com/wordpress/trunk@18997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 20:38:18 +00:00
nacin
0b9a1f68da Use get_intermediate_image_sizes() in image edit functions. props mau, fixes #17475.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 20:33:34 +00:00
nacin
1387dfd1f2 Fix media/audio/file URL insertion. Strip slashes off title text. Leave red X to images only. fixes #14996. fixes #17578.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 19:32:40 +00:00
dd32
5194428741 Fix Undefined Variable Notices when no charset/collate is set for $wpdb. See #12028
git-svn-id: http://svn.automattic.com/wordpress/trunk@18986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 02:48:07 +00:00
azaozz
e849d3b270 Use IE conditionals when adding the ie8 class, introduce _wp_admin_html_begin(), props scribu, fixes #18966
git-svn-id: http://svn.automattic.com/wordpress/trunk@18982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-17 20:57:32 +00:00
duck_
6926503ebf Fix notices in wp_iframe() and iframe_header() by referencing $wp_htmltag_class as a global. See r18975 and #18314.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-15 10:43:55 +00:00
azaozz
0f2431e25a RTL, IE7 and IE7 RTL fixes, add class="ie8" to the html tag, see #18314
git-svn-id: http://svn.automattic.com/wordpress/trunk@18975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-15 07:33:01 +00:00
koopersmith
c47765dedb Simplify pointer API with smarter positioning. see #18693.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-14 03:33:46 +00:00
dd32
53062d6414 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: http://svn.automattic.com/wordpress/trunk@18964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-13 10:43:38 +00:00
azaozz
000208b86d 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: http://svn.automattic.com/wordpress/trunk@18957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-12 22:24:53 +00:00
duck_
ba7651277e Revert r18887 due to back compat issues. Fixes #18914.
For example 'intval' couldn't be used as a sanitisation callback.


git-svn-id: http://svn.automattic.com/wordpress/trunk@18951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-12 16:35:33 +00:00
nacin
936107846c Restore object handling in add_contextual_help(). see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-12 16:24:55 +00:00
nacin
aa06a7de9f Don't instantiate WP_Screen in convert_to_screen() for now. see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-12 16:22:50 +00:00
nacin
07a664da92 Restore $screen argument for contextual_help* filters. see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-11 21:45:28 +00:00
nacin
7bf1ec1a01 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: http://svn.automattic.com/wordpress/trunk@18943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-11 21:32:16 +00:00
nacin
35dd66044a Enforce IDs for add_help_tab(). props mbijon. Restore default_contextual_help, for now. see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-11 19:29:09 +00:00
ryan
82bcca520b Do the beta bump
git-svn-id: http://svn.automattic.com/wordpress/trunk@18938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-10 23:50:20 +00:00
nacin
24d7c61eb5 Use AJAX request and usermeta rather than user settings for dismissing admin bar pointers. see #18693.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-10 23:31:36 +00:00
nacin
4dfdd9ea97 Check post_type_supports before adding comments column to attachments. Translate a string. props johnbillion, SergeyBiryukov. fixes #18644.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-10 19:56:35 +00:00
nacin
0a1fe6dc02 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: http://svn.automattic.com/wordpress/trunk@18930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-10 19:54:26 +00:00
azaozz
f85e0b3f00 Make iPad support usable again, add viewport meta, see #18863
git-svn-id: http://svn.automattic.com/wordpress/trunk@18926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-10 04:19:05 +00:00
azaozz
eb792ad204 Add translation comment, props ocean90, fixes #18881
git-svn-id: http://svn.automattic.com/wordpress/trunk@18922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-08 03:14:41 +00:00
azaozz
7efc9306f9 Fix insetring images in Quick Press and Press This, see #17144
git-svn-id: http://svn.automattic.com/wordpress/trunk@18920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-07 20:14:21 +00:00
azaozz
7672731d95 Fix prepending $editor_id to the Add Media link, see #17578
git-svn-id: http://svn.automattic.com/wordpress/trunk@18918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-07 19:12:55 +00:00
azaozz
18630a3d5a Add cap check before showing a link to image options, improved handling for translation, props SergeyBiryukov, see #18881
git-svn-id: http://svn.automattic.com/wordpress/trunk@18917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-07 16:59:33 +00:00
nacin
50078431dc Use local method when handling back compat screen layout column filter. The function serves as a wrapper for but one object. see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-07 05:26:44 +00:00
nacin
850ea83baf Move the Screen Options tab to the top and introduce a new 'overview' screen option, which accepts content for the top of this tab. see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-07 05:23:33 +00:00
nacin
cc199b6358 Remove redundant help tab title from the tab body. see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-07 05:00:38 +00:00