Commit Graph

  • b641ca55f5 Improve documentation for media_handle_upload(). Sergey Biryukov 2015-01-09 05:04:59 +00:00
  • c8f0a49dee Correct @return value for WP_Theme::load_textdomain() after [30681]. Sergey Biryukov 2015-01-09 04:53:29 +00:00
  • dec1cba410 Add get_avatar_url(), for retrieving just the URL of an avatar, rather than the entire <img> tag that get_avatar() produces. Gary Pendergast 2015-01-09 04:42:48 +00:00
  • 0c37f866f2 After [31105], don't ditch the isset() calls for BC. Declare $page_hook as null so it is initialized for all execution paths but will still fail isset() checks. Scott Taylor 2015-01-08 22:51:30 +00:00
  • c4e2ad04a2 Properly declare $hook_suffix, $plugin_page, $typenow, and $taxnow as globals in wp-admin/admin.php. Scott Taylor 2015-01-08 22:14:58 +00:00
  • 9d67bfe82d If WP_Rewrite::flush_rules() is called on 'init' or earlier, wait until 'wp_loaded' before actually flushing the rules, to make sure all the rules registered on 'init' are included. Sergey Biryukov 2015-01-08 21:59:57 +00:00
  • c96947757a Remove a redundant inline comment with a typo. Sergey Biryukov 2015-01-08 21:28:11 +00:00
  • 6ffb5feab9 Make a hint on Edit Selection view in media modal more accurate, as it applies to all media files, not just images. Sergey Biryukov 2015-01-08 21:23:21 +00:00
  • 85595b73cc Overriding methods should do more than simply call the same method in the super class. Scott Taylor 2015-01-08 21:19:24 +00:00
  • 0522fcb3f9 Jump statements should not be followed by other statements (there were 5 lingering). Scott Taylor 2015-01-08 21:14:56 +00:00
  • da9057fd6d Use && instead of and in the 3 places where and was used. Scott Taylor 2015-01-08 21:11:46 +00:00
  • 907be55276 Pass post type to count_user_posts() in get_the_author_posts(). Sergey Biryukov 2015-01-08 19:52:52 +00:00
  • d5b99d560e Use home_url() instead of hardcoded domain in Tests_Link_GetAdjacentPostLink. Sergey Biryukov 2015-01-08 18:44:18 +00:00
  • 386d0d5fc7 Remove non-functional date filter from Edit Selection view in media modal. Sergey Biryukov 2015-01-08 18:22:35 +00:00
  • 854ea3e3e6 Collapse additional avatar settings if avatars are disabled. Helen Hou-Sandi 2015-01-08 17:00:15 +00:00
  • ceccfa10b4 WPDB: When sanity checking a string, check that it's a string, first - PHP notices can occur if an array or object is handled like a string. Gary Pendergast 2015-01-08 08:44:10 +00:00
  • befcf4f442 WPDB: When wpdb::query() needs to sanity check a query string, make sure to run wpdb:flush() afterwards, to ensure the results from sanity check queries aren't mixed up with the results for the user query. Gary Pendergast 2015-01-08 08:31:42 +00:00
  • ddbb6c7a0f In wp_xmlrpc_server, remove dead code. Scott Taylor 2015-01-08 07:20:17 +00:00
  • 1ca58614b2 In wp-includes/plugin.php, collapse 3 else-newline-tab-if statements. Scott Taylor 2015-01-08 07:12:42 +00:00
  • 6fd11624d1 The keyword elseif should be used instead of else if so that all control keywords look like single words. Scott Taylor 2015-01-08 07:04:40 +00:00
  • d0767caf54 Enable Pretty Permalinks for new sites during install if the server supports it. See #6481, Props valendesigns, DrewAPicture & ericlewis Dion Hulse 2015-01-08 06:46:55 +00:00
  • 59e6292c0e In wp-includes/taxonomy.php: Scott Taylor 2015-01-08 06:25:40 +00:00
  • 8108c0babe PHP keywords and constants "true", "false", "null" should be in lower case - there was one lingering capitalized false in _http_build_query(). Scott Taylor 2015-01-08 06:13:05 +00:00
  • 14c2161a3b There is no need to use the final modifier inside a final class. Everything in it is final by default. Scott Taylor 2015-01-08 06:09:59 +00:00
  • 101e00314d In Customizer classes: Scott Taylor 2015-01-08 06:01:08 +00:00
  • 1dd301f634 WP_Query->parse_tax_query() - for BC, this method is not marked as protected. See [28987]. It needs an access modifier, it shall have public. The comment remains. wonderboymusic 2015-01-08 05:53:58 +00:00
  • 5d6cc49628 Perl-style comments should not be used Scott Taylor 2015-01-08 05:51:39 +00:00
  • 97d6901048 Access Modifiers: Scott Taylor 2015-01-08 05:43:54 +00:00
  • 469164785f Pinking Shears. Scott Taylor 2015-01-08 05:02:05 +00:00
  • 621292d70f In dashboard activity widget, display a front-end link if the user cannot edit the post. Sergey Biryukov 2015-01-08 00:25:26 +00:00
  • ca34257bd6 Call the init() method for the upgrader in wp_can_install_language_pack() to avoid undefined index notices. Sergey Biryukov 2015-01-07 23:42:48 +00:00
  • dd05a3a40f TinyMCE: Remove dashicon-no-alt.png, unused since [30694]. Sergey Biryukov 2015-01-07 23:31:16 +00:00
  • 37499b6169 Theme install: Display an appropriate string if theme has not been rated yet. Sergey Biryukov 2015-01-07 23:16:19 +00:00
  • 22c9a89602 Add context for 'Previous' and 'Next' strings in get_the_posts_pagination(). Sergey Biryukov 2015-01-07 23:06:20 +00:00
  • 3fdc11be29 Image file editor: fix a wrong error message when restoring an edited image and IMAGE_EDIT_OVERWRITE is set. Props tiqbiz, fixes #30167. Andrew Ozz 2015-01-07 22:47:32 +00:00
  • bac33e9a17 Customizer: Correctly display "Select" option in Navigation section dropdowns. Sergey Biryukov 2015-01-07 19:49:17 +00:00
  • c99a082e25 Dashicons: Fix typo in .dashicons-excerpt-view class. Sergey Biryukov 2015-01-07 09:01:58 +00:00
  • 23bb9030f2 Remove obsolete help sentence on Edit User screen. Sergey Biryukov 2015-01-07 08:22:13 +00:00
  • 4fdc7c7a0b Don't force newlines around URLs in WP_Embed::autoembed(). Sergey Biryukov 2015-01-07 07:50:58 +00:00
  • 2fcd588983 Fix typo in a comment in slashing tests. Sergey Biryukov 2015-01-07 07:08:47 +00:00
  • d3d11c704d Options: When updating options, make sure the user isn't trying to insert characters that aren't supported by the database character set. Gary Pendergast 2015-01-07 04:14:32 +00:00
  • af680788bc Add a description for the $data parameter in the DocBlock for the customize_save_response hook introduced in [31062]. Drew Jaynes (DrewAPicture) 2015-01-07 01:47:17 +00:00
  • 8bf3003c67 Customizer: Send JSON success for customize_save and allow response to be filtered. Dominik Schilling (ocean90) 2015-01-06 21:46:54 +00:00
  • afb8352a70 Autoprefixer for [31038]. Dominik Schilling (ocean90) 2015-01-06 21:43:35 +00:00
  • 76afa9f9a3 Remove space before comma in wp_notify_postauthor() and wp_notify_moderator(). Sergey Biryukov 2015-01-06 17:16:17 +00:00
  • ca4df7ec0a Remove padding from the comment notification emails in wp_notify_moderator(). Sergey Biryukov 2015-01-06 17:09:13 +00:00
  • 3274f5fee6 Skip building the query in wp_count_posts() if cached results are used. Sergey Biryukov 2015-01-06 16:57:12 +00:00
  • 4b29e64a4d Fix 'compare' parameter description in WP_Date_Query. Sergey Biryukov 2015-01-06 03:35:56 +00:00
  • 0d32524409 Remove obsolete inline comment. Sergey Biryukov 2015-01-06 01:56:07 +00:00
  • 8e9b9bc458 Use localized format for Last Updated date on Add Plugins screen. Sergey Biryukov 2015-01-06 01:02:21 +00:00
  • d33e517bb9 Themes: Fix position of admin notice with .notice class. Sergey Biryukov 2015-01-05 20:05:19 +00:00
  • 7d7b33ff49 Pass comment author name and comment ID to 'get_comment_author_link' filter on Edit Comment screen, for consistency with [30092]. Sergey Biryukov 2015-01-05 19:09:36 +00:00
  • eb4d356e29 size_format() incorrectly included a trailing space for B values: less than 1024 bytes. Gary Pendergast 2015-01-05 13:12:06 +00:00
  • aada083f3c WPDB: To ensure we're not asking MySQL to read data using queries that it can't handle, make sure that we run all read queries through the character set sanity checks. Gary Pendergast 2015-01-05 04:39:26 +00:00
  • ea660736eb WPDB Docs: Update the @since version from 4.1.0 to 4.2.0, for all the methods/members that were punted from 4.1. Gary Pendergast 2015-01-05 03:50:14 +00:00
  • 8cce0f1607 Preinitialize WP_User::$data to an object in the event an empty user object is created. Avoids a "Creating default object from empty value" PHP Warning. Fixes #28019 Dion Hulse 2015-01-05 01:40:43 +00:00
  • 44c0c4a9cd A couple more tweaks to the post-thumbnail-template.php description. Sergey Biryukov 2015-01-04 23:09:53 +00:00
  • 969808e7bb Add tests for the 'post_status' behavior of WP_Query. Boone Gorges 2015-01-04 20:35:12 +00:00
  • 04eef529b0 Remove non-built-in post statuses during each unit test teardown. Boone Gorges 2015-01-04 20:05:53 +00:00
  • 2003fcae83 In Media Views, use this.listenTo( this.model, .... ) instead of this.model.on( .... ) to fix garbage collection and to avoid "ghost views." Scott Taylor 2015-01-04 05:24:24 +00:00
  • 49d19a367a ImageMagick expects TIFF files to have .tiff as an extension, so the key in wp_get_mime_types() should be 'tiff|tif' not 'tif|tiff' so the proper extension is returned in WP_Image_Editor->get_extension() subclass invocations. Scott Taylor 2015-01-04 03:08:48 +00:00
  • 14ddc6c9c0 If IMAGE_EDIT_OVERWRITE is defined as true, ensure that multiple edits to the same image does not result in the file being deleted (updating the meta fails because the old and new paths are identical). Scott Taylor 2015-01-04 02:51:20 +00:00
  • 621e909a9b Improve the handling of comma-separated mime-types in wp_match_mime_types(), particularly as pertains to the mime-type selector on the Media list table screen. Scott Taylor 2015-01-04 02:31:29 +00:00
  • efc61d054e After [31037], ensure that the library is passed as a map to the Media Grid instance. Remove useless query vars. Scott Taylor 2015-01-04 02:06:04 +00:00
  • 3d3e1fb72a Preserve alpha transparency when rotating a PNG while GD is the active image editor. Scott Taylor 2015-01-03 22:01:54 +00:00
  • 6d858cc6e2 In Media Grid, don't immediately load full size images if the requested size passed to wp.media.view.Attachment.imageSize() does not exist, look for other suitable sizes. Scott Taylor 2015-01-03 21:31:23 +00:00
  • 3fe38d959a Fix spacing of .compat-item .field form widgets in media modal. Scott Taylor 2015-01-03 20:46:16 +00:00
  • 5df9963414 Respect query vars for taxonomies passed as URL parameters when in grid mode of Media Library. Scott Taylor 2015-01-03 08:23:06 +00:00
  • fdef2cc755 Remove whitespace side effects from comment_form(). Scott Taylor 2015-01-03 06:26:38 +00:00
  • ca8fe1a7a4 Use the 'not_found' label when there are no items for a taxonomy in the terms list table. Scott Taylor 2015-01-03 06:19:46 +00:00
  • 47f2c42528 Inline <script>s that are only printed in the admin for pages that are served with the HTML5 doctype absolutely do not need CDATA comments. Scott Taylor 2015-01-03 05:45:17 +00:00
  • 5db95f22d0 After [31030]: if a callable is passed as the 3rd arg to wp_localize_script()/WP_Scripts->localize(), pass $handle and $object_name to the user func when invoking it. Scott Taylor 2015-01-03 05:12:56 +00:00
  • c21e4f95ce Add the ability to print data *after* a script, whether it is concatenated or not: Scott Taylor 2015-01-03 05:07:15 +00:00
  • d699ce8b13 Ensure that inline styles attached to conditional stylesheets are also conditional. Scott Taylor 2015-01-03 04:09:12 +00:00
  • c69dbc8b5a Allow the 3rd argument to wp_localize_script()/WP_Scripts->localize() to be a callable, allowing data to be lazy-loaded when the script is actually enqueued. Scott Taylor 2015-01-03 03:53:30 +00:00
  • d5328fc674 When outputting JS with a Content-Type header: Scott Taylor 2015-01-03 02:56:14 +00:00
  • 8476a2e2fa When calling wp_enqueue_script() with a registered $handle, no $src (using the default value, false), and true as the value for $in_footer, ensure that the script actually loads in the footer. If the handle was registered with $in_footer equal to true, this already worked. Make it work for scripts like where $in_footer was initially false, example: wp_enqueue_script( 'json2', false, array(), false, true ); Scott Taylor 2015-01-03 02:40:11 +00:00
  • 8d990ce6f8 Introduce 'category_css_classes' filter. Boone Gorges 2015-01-03 02:30:14 +00:00
  • 3da394f499 Add tests for wp_list_categories() CSS class generation. Boone Gorges 2015-01-03 02:22:54 +00:00
  • fd8b7faff6 In Walker_Category, don't generate list elements for empty cat names. Boone Gorges 2015-01-03 02:04:17 +00:00
  • 4cead42b26 Introduce 'name' parameter for get_terms(). Boone Gorges 2015-01-02 21:33:33 +00:00
  • 95fd7b1590 Move the (recently added) .notice admin notices below the first H2, same as the .updated and .error notices. Props sippis, fixes #30885. Andrew Ozz 2015-01-02 18:51:52 +00:00
  • bc108a94ce Fix the background color in the auth. check modal. Props melchoyce, fixes #30278. Andrew Ozz 2015-01-02 17:20:06 +00:00
  • 60a216d587 Add tests for wp_delete_object_term_relationships(). Boone Gorges 2015-01-02 14:02:54 +00:00
  • f014d0cf35 If you set '_wp_page_template' for a post, and then switch to a theme that doesn't support the template, subsequent calls to wp_insert_post() will bail early without running a plethora of hooks. This shouldn't happen. We should set the template to 'default' and continue through the rest of the function. The function will still bail if $wp_error is true via wp_insert_post( $arr, true ). Scott Taylor 2015-01-01 20:34:19 +00:00
  • 64784baa95 WP_List_Table's constructor registers an 'admin_footer' callback when AJAX is enabled. As such, if you create multiple instances of the class, you get multiple JS blobs on the page when the callbacks fire. Extra instances get made when wp_comment_reply() invokes the class constructor without checking for the existing instance via the $wp_list_table global. Scott Taylor 2015-01-01 19:54:53 +00:00
  • 186a94fb78 More-specific docs for wp_embed_handler_youtube(). Scott Taylor 2015-01-01 19:20:44 +00:00
  • 944ed3f980 Update license copyright year to 2015. Sergey Biryukov 2015-01-01 12:24:05 +00:00
  • be8211beac Support chromeless Vimeo via MEjs: Scott Taylor 2014-12-31 20:40:05 +00:00
  • bd03b2ead8 Support array values for post-related parameters in WP_Comment_Query. Boone Gorges 2014-12-31 19:37:09 +00:00
  • f71821dc05 In remove_all_filters(), only remove callbacks that match the $priority parameter. Boone Gorges 2014-12-31 19:06:29 +00:00
  • 4d69dbadee Fix docs for WP_User::allcaps: Scott Taylor 2014-12-31 18:14:07 +00:00
  • 32e0a1c7b8 Update/fix inline docs for update_object_term_cache(). Scott Taylor 2014-12-31 18:11:22 +00:00
  • b7d63c3192 Correct a typo in wp-includes/post-thumbnail-template.php. Scott Taylor 2014-12-31 18:08:56 +00:00
  • 43edd17097 Set the type attribute of the buttons for logging out of all sessions to buttons Aaron Jorbin 2014-12-31 17:32:39 +00:00
  • be2ea9b9f9 Back up and restore dropins during get_dropins() tests. Boone Gorges 2014-12-31 15:00:32 +00:00
  • 25e332e473 Use correct function name in docs for get_plugin_data(). Andrew Nacin 2014-12-31 08:07:09 +00:00
  • c34913eae6 Add a revision number to $wp_version for nightly update purposes. See [30411] Dion Hulse 2014-12-31 05:34:07 +00:00
  • ae6575685c In wp_dropdown_categories(), allow the term field used to populate option valuesto be specified. Boone Gorges 2014-12-30 21:30:16 +00:00
  • 06b820a989 Use proper hash notation for wp_dropdown_categories() docblock. Boone Gorges 2014-12-30 20:48:34 +00:00