Commit Graph

17309 Commits

Author SHA1 Message Date
ryan
c23e0cc0bc Make repair.php fully translatable. Props ocean90. fixes #18770
git-svn-id: http://svn.automattic.com/wordpress/trunk@19070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-27 18:31:45 +00:00
duck_
abd0c8c231 Correctly document $stripteaser as a boolean flag. Props GaryJ, fixes #18886.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-26 10:15:29 +00:00
duck_
7ba5b2f7a3 Stop an incorrect comment total being displayed when a trashed/spammed comment is deleted or restored. Fixes #19029.
Also only run getUpdate() when necessary and remove reference to non-existent "span.total-type-count".


git-svn-id: http://svn.automattic.com/wordpress/trunk@19068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-26 08:47:16 +00:00
nacin
673a69be75 Bump.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 16:32:27 +00:00
nacin
1c9abd21ca Use correct object. props adambackstrom. fixes #19045.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 16:08:24 +00:00
nacin
28e10d8f2b Remove duplicate word in docs. props SergeyBiryukov, fixes #18986.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 16:07:14 +00:00
nacin
1e6e52e1c1 Add missing keyword. fixes #19046, see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 16:05:39 +00:00
nacin
68225fdf13 Make convert_to_screen() more resilient. see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 06:54:23 +00:00
nacin
f9d807d649 Merge upgrade_old_widgets_order_array() into upgrade_330(). see #18811, see #18821.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 05:50:39 +00:00
nacin
66125a116f Introduce upgrade_330() to clear usermeta keys show_admin_bar_admin and plugins_last_view. fixes #18811.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 05:48:09 +00:00
nacin
6f9612f45c 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: http://svn.automattic.com/wordpress/trunk@19060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 05:29:28 +00:00
nacin
935a533eb6 Check get_site_option(WPLANG) when WP_INSTALLING in mulitiste, just not the blog's option. fixes #18783.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 05:09:03 +00:00
nacin
1154e4b468 Use get_template_directory() instead of TEMPLATEPATH in Twentys Ten and Eleven. props solarisssmoke, fixes #18071.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 04:42:16 +00:00
dd32
68037f4ac1 Themes not within a subdirectory of the zip need to have the working directory Trailingslashed. See #14999
git-svn-id: http://svn.automattic.com/wordpress/trunk@19057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 04:25:52 +00:00
ryan
b75f3e8f07 Avoid warning when user_login not in POST. Props ampt. fixes #18755
git-svn-id: http://svn.automattic.com/wordpress/trunk@19056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 21:31:30 +00:00
nacin
d7e24531ef bump bump bump it up
git-svn-id: http://svn.automattic.com/wordpress/trunk@19055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 19:33:47 +00:00
ryan
62afab8db3 Pinking shears
git-svn-id: http://svn.automattic.com/wordpress/trunk@19054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 19:13:23 +00:00
ryan
ad3eb8f7ab Fallback to the default post type only if it is registed for the taxonomy. Props nacin. see #18785
git-svn-id: http://svn.automattic.com/wordpress/trunk@19053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 19:10:56 +00:00
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
ryan
d01f93226d Fix sub menu highlighting for post type pages. see #13662
git-svn-id: http://svn.automattic.com/wordpress/trunk@19048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 18:45:06 +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
ad0e83c165 Adjust the height of the help columns on 'Help' tab open. see #18690.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 17:55:24 +00:00
nacin
ffcb6aba46 In _doing_it_wrong(), don't append the Debugging_in_WordPress message until we go to print a message. Send a clean message to the action. see #18453.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 17:51:14 +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
westi
53d8de7408 Don't show the Freedoms or Credits menu items to logged out users.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-22 10:56:04 +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
ryan
7a3fc7d36c Don't use unbounded SHOW TABLES in is_blog_installed(). Do a more targeted DESCRIBE loop over the blog table list. fixes #19026
git-svn-id: http://svn.automattic.com/wordpress/trunk@19039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 22:16: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
nacin
975c670f15 Update the update_count_callback docs. see #18986.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 21:50:36 +00:00
nacin
38921762a3 No need to specify an update_count_callback for categories or tags, as the default handler for them will now be _update_post_term_count(). see #18986, [19035].
git-svn-id: http://svn.automattic.com/wordpress/trunk@19036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 21:46:03 +00:00
nacin
463bfd9fe5 Separate non-post term counting from _update_post_term_count(). Introduce _update_generic_term_count(). The generic handler will be the default whenever the taxonomy is attached to an object type other than a post type (link, user). Otherwise the _update_post_term_count() handler will be the default. fixes #18986. see #17548.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 21:38:14 +00:00
nacin
00a31d6d19 Correct docs for get_post_field(). props JustinSainton, fixes #19025.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 17:13:26 +00:00
nacin
50997f28b1 Use esc_url() rather than esc_attr() on a redirect-to URL. fixes #17243.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 23:41:07 +00:00
nacin
dbfc8a855c Fix the current page default redirect in wp_login_form(). props kawauso, see #17243.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 23:40:09 +00:00
ryan
791b424c31 Typo fix. Props SergeyBiryukov. see #18986
git-svn-id: http://svn.automattic.com/wordpress/trunk@19031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 21:41:54 +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
eb24f35c22 Pass $post_id arg directly to get_post_thumbnail_id() from has_post_thumbnail(). The null/get_the_ID() check is already performed at that level of the stack. see #19012.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 15:11:49 +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
92ba22e537 Use wp_lostpassword_url() instead of site_url(wp-login...). Update wp_lostpassword_url() to use network_site_url(). props markoheijnen, fixes #18808.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:40:11 +00:00
nacin
f70954c422 Remove code commented out in [19006]. see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:33:18 +00:00
ryan
5bfc91f5ee Fix term counting for links. Props SergeyBiryukov. fixes #18986
git-svn-id: http://svn.automattic.com/wordpress/trunk@19025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:28:26 +00:00
nacin
023143f7cd Allow a super admin to demote themselves on a site to a role that does not contain the promote_users cap. props fonglh, fixes #18164.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:12:25 +00:00
ryan
759475df38 beta2 bump
git-svn-id: http://svn.automattic.com/wordpress/trunk@19023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 02:22:02 +00:00
nacin
0f1b959ae5 Check for plugin/theme updates every hour when hitting update-core.php, not just themes.php/plugins.php. see #18876.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 00:23:35 +00:00
nacin
6a4ddffe0f Attach update hooks in the network admin. Accounts for the rare situation where the network admin is not the main site. props johnbillion, see #18876.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 00:15:21 +00:00