Commit Graph

17357 Commits

Author SHA1 Message Date
Jon Cave 72256f1c27 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: https://develop.svn.wordpress.org/trunk@19068 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-26 08:47:16 +00:00
Andrew Nacin 29a3f52acf Bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@19067 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 16:32:27 +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 95eff833c8 Remove duplicate word in docs. props SergeyBiryukov, fixes #18986.
git-svn-id: https://develop.svn.wordpress.org/trunk@19065 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 16:07:14 +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
Andrew Nacin 01f19e3cff Check get_site_option(WPLANG) when WP_INSTALLING in mulitiste, just not the blog's option. fixes #18783.
git-svn-id: https://develop.svn.wordpress.org/trunk@19059 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 05:09:03 +00:00
Andrew Nacin 51d0bd90f6 Use get_template_directory() instead of TEMPLATEPATH in Twentys Ten and Eleven. props solarisssmoke, fixes #18071.
git-svn-id: https://develop.svn.wordpress.org/trunk@19058 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-25 04:42:16 +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 a8973fb429 Avoid warning when user_login not in POST. Props ampt. fixes #18755
git-svn-id: https://develop.svn.wordpress.org/trunk@19056 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 21:31:30 +00:00
Andrew Nacin e253f44dad bump bump bump it up
git-svn-id: https://develop.svn.wordpress.org/trunk@19055 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 19:33:47 +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
Ryan Boren 62778137cf Fix sub menu highlighting for post type pages. see #13662
git-svn-id: https://develop.svn.wordpress.org/trunk@19048 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 18:45:06 +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 a7dda77ea7 Adjust the height of the help columns on 'Help' tab open. see #18690.
git-svn-id: https://develop.svn.wordpress.org/trunk@19045 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 17:55:24 +00:00
Andrew Nacin 94cb070299 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: https://develop.svn.wordpress.org/trunk@19044 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 17:51:14 +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
Peter Westwood eb1b0763e1 Don't show the Freedoms or Credits menu items to logged out users.
git-svn-id: https://develop.svn.wordpress.org/trunk@19042 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-22 10:56:04 +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
Ryan Boren 1b45a17906 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: https://develop.svn.wordpress.org/trunk@19039 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 22:16: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
Andrew Nacin 5e85a49355 Update the update_count_callback docs. see #18986.
git-svn-id: https://develop.svn.wordpress.org/trunk@19037 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 21:50:36 +00:00
Andrew Nacin 8e97202178 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: https://develop.svn.wordpress.org/trunk@19036 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 21:46:03 +00:00
Andrew Nacin 5307ec17c5 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: https://develop.svn.wordpress.org/trunk@19035 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 21:38:14 +00:00
Andrew Nacin 0853bf3d40 Correct docs for get_post_field(). props JustinSainton, fixes #19025.
git-svn-id: https://develop.svn.wordpress.org/trunk@19034 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 17:13:26 +00:00
Andrew Nacin 5176354f22 Use esc_url() rather than esc_attr() on a redirect-to URL. fixes #17243.
git-svn-id: https://develop.svn.wordpress.org/trunk@19033 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 23:41:07 +00:00
Andrew Nacin 08073035a6 Fix the current page default redirect in wp_login_form(). props kawauso, see #17243.
git-svn-id: https://develop.svn.wordpress.org/trunk@19032 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 23:40:09 +00:00
Ryan Boren b9215e193e Typo fix. Props SergeyBiryukov. see #18986
git-svn-id: https://develop.svn.wordpress.org/trunk@19031 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 21:41:54 +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 8eeafd948e 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: https://develop.svn.wordpress.org/trunk@19029 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 15:11:49 +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 6355548ea2 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: https://develop.svn.wordpress.org/trunk@19027 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 14:40:11 +00:00
Andrew Nacin 6387565b38 Remove code commented out in [19006]. see #18197.
git-svn-id: https://develop.svn.wordpress.org/trunk@19026 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 14:33:18 +00:00
Ryan Boren f4d5f4fceb Fix term counting for links. Props SergeyBiryukov. fixes #18986
git-svn-id: https://develop.svn.wordpress.org/trunk@19025 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 14:28:26 +00:00
Andrew Nacin fe4f927a80 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: https://develop.svn.wordpress.org/trunk@19024 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 14:12:25 +00:00
Ryan Boren 3b167b98ae beta2 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@19023 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 02:22:02 +00:00
Andrew Nacin e09cb12b87 Check for plugin/theme updates every hour when hitting update-core.php, not just themes.php/plugins.php. see #18876.
git-svn-id: https://develop.svn.wordpress.org/trunk@19022 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 00:23:35 +00:00
Andrew Nacin 4a275d129d 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: https://develop.svn.wordpress.org/trunk@19021 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 00:15:21 +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