Commit Graph

  • 557d160ca1 Comments: Fix a fatal error in Comments meta box after [34223]. Sergey Biryukov 2015-09-16 11:36:35 +00:00
  • fea6142412 Docs: Make a minor adjustment to the description syntax for the optional $comment argument in the DocBlock for comment_link(), introduced in [34071]. Drew Jaynes 2015-09-16 11:01:50 +00:00
  • 3b3a034c11 Docs: Remove markdown from the DocBlock summary for WP_List_Table::get_primary_column(), introduced in [34166]. Drew Jaynes 2015-09-16 10:50:21 +00:00
  • f83abcbf3e Docs: Add a changelog entry for the switch to using wp_get_attachment_url() instead of the guid for determining the header image URL in Custom_Image_Header::step_3(). Drew Jaynes 2015-09-16 10:42:08 +00:00
  • ff35e34fad Docs: Improve documentation for the WP_Object_Cache class. Drew Jaynes 2015-09-16 10:02:20 +00:00
  • 1075ec80b8 Docs: Remove an errant change made to a _deprecated_function() call in wp_cache_reset() introduced in [34225]. Drew Jaynes 2015-09-16 09:41:51 +00:00
  • 741bd4440c Docs: Add more complete documentation for top-level object cache functionality. Drew Jaynes 2015-09-16 09:39:33 +00:00
  • f2eb739ea6 Docs: Add documentation for $object_id, the optional second parameter in current_user_can() and WP_User::has_cap(), and the optional third parameter in map_meta_cap(). Drew Jaynes 2015-09-16 07:35:37 +00:00
  • 05cd237d5e Move WP_Post_Comments_List_Table to its own file. Scott Taylor 2015-09-16 06:52:35 +00:00
  • 7e706c285b Fix a typo in wptexturize() and wp_replace_in_html_tags() comments. Sergey Biryukov 2015-09-16 05:53:09 +00:00
  • bf5f316668 Fire Action when mail exception is thrown. Aaron Jorbin 2015-09-15 23:50:30 +00:00
  • 1975b0a084 Customizer: Smooth animation for closing accordions in the available nav menu items pane. Weston Ruter 2015-09-15 23:39:23 +00:00
  • 0adb6877b2 Improve validation of user_login and user_nicename length. Boone Gorges 2015-09-15 22:13:51 +00:00
  • 2d59d18e3a Omit the ORDER BY clause when updating object term cache. Boone Gorges 2015-09-15 20:52:40 +00:00
  • e05586646a Apply the new 'respond_link' filter in comments_popup_link() if $number is 0 before outputting the URL. Scott Taylor 2015-09-15 20:45:32 +00:00
  • 28426c041c In WP::parse_request(), don't add query vars of non-viewable post types to WP::public_query_vars. In register_post_type(), don't add query vars of non-viewable post types to WP::public_query_vars. In _unregister_post_type() (unit tests), don't add query vars of non-viewable post types to WP::public_query_vars. Scott Taylor 2015-09-15 18:53:12 +00:00
  • 6493d211d2 After [34188], fix unit test for image header. Scott Taylor 2015-09-15 18:43:51 +00:00
  • 1a352d56f9 Implement wp_login_url() and wp_registration_url() in places where wp-login.php is currently hard-coded. John Blackbourn 2015-09-15 17:10:24 +00:00
  • 7b93c40830 WP_Comment_Query: add comment__in to allowed values for $orderby. Scott Taylor 2015-09-15 16:34:14 +00:00
  • 72bc9d3227 Add parent__in and parent__not_in query vars to WP_Comment_Query. Scott Taylor 2015-09-15 16:22:34 +00:00
  • f48d395ffb Docs: Update the hook doc summary for the wp_http_ixr_client_headers filter, introduced in [34164]. Drew Jaynes 2015-09-15 16:15:39 +00:00
  • 2a1ee1a235 Don't redirect to the Term list table after submitting the form on the Edit Term page. wonderboymusic 2015-09-15 15:58:04 +00:00
  • 8fc44f8c39 Allow get_lastpostdate(), get_lastpostmodified(), and _get_last_post_time() to accept $post_type and cache separately. Scott Taylor 2015-09-15 15:24:04 +00:00
  • b5b07ca329 Allow wp_page_menu() to accept 'walker', 'before', and 'after' to allow custom markup. Scott Taylor 2015-09-15 15:05:34 +00:00
  • acbeef27b9 Similar to #33386, don't use guid when retrieving URL for a cropped header image in the Customizer. Scott Taylor 2015-09-15 14:45:59 +00:00
  • 87d6be5991 Comments: When setting the colspan value for inline edit/reply, make sure it's actually a table and the value is not empty. Sergey Biryukov 2015-09-15 13:43:28 +00:00
  • b8349f8222 Remove outdated references to the preview_post_link filter docs. John Blackbourn 2015-09-15 10:31:40 +00:00
  • a923d36085 Remove the ability to view the post listing screen and post editing screen for post types with show_ui set to false. It is unexpected and unintended behaviour that this is allowed. John Blackbourn 2015-09-15 10:26:22 +00:00
  • 9b836740c3 Improve the docblocks for the get_preview_post_link() function and the preview_post_link filter. John Blackbourn 2015-09-15 08:24:54 +00:00
  • 47a66713ae Correct the value of the preview query variable added by get_preview_post_link(). John Blackbourn 2015-09-15 08:15:22 +00:00
  • c0c2a76778 Place the filter docblock for http_api_transports immediately above the filter. John Blackbourn 2015-09-15 08:11:11 +00:00
  • 0402bac392 Missed files from [34172]. John Blackbourn 2015-09-15 08:08:15 +00:00
  • c29412abf9 Initialise $_SERVER[ 'REMOTE_ADDR' ] during the test bootstrap so individual tests need not. John Blackbourn 2015-09-15 08:04:33 +00:00
  • c95d6b3ec8 Use get_attached_file() in attachment_submitbox_metadata(). Scott Taylor 2015-09-15 04:17:38 +00:00
  • c0d850878a Create a function, get_preview_post_link(), to DRY the logic for applying the 'preview_post_link' filter to a URL. Scott Taylor 2015-09-15 04:14:23 +00:00
  • ac610c191b Move WP_Screen to its own file. Scott Taylor 2015-09-15 04:07:14 +00:00
  • 26ab36f909 Move the admin Nav Menu Walker subclasses into their own files. Load in nav-menu.php to remain BC. Scott Taylor 2015-09-15 04:01:30 +00:00
  • c702a71ad1 Update post thumbnail functions to allow a WP_Post to be passed. Scott Taylor 2015-09-15 03:45:23 +00:00
  • 1a537a4f6d Add a doc block to WP_List_Table::get_primary_column(). Scott Taylor 2015-09-15 03:34:44 +00:00
  • 8df7bd75b6 Ensure that widget carets close when dragging an expanded widget. Scott Taylor 2015-09-15 03:09:35 +00:00
  • 030747e429 Add a filter to allow custom headers to be sent via the WP HTTP IXR client: 'wp_http_ixr_client_headers'. Scott Taylor 2015-09-15 02:53:18 +00:00
  • 577fea566a Don't ever use the guid value when retrieving URLs for media, use wp_get_attachment_url(). Use get_attached_file() for path to file. Scott Taylor 2015-09-15 02:49:12 +00:00
  • 337451b099 TwentyFifteen|Sixteen themes have a <div id="content"> in the header. Change the <div> IDs in wp-activate.php and wp-signup.php to be unique to each page. Scott Taylor 2015-09-15 02:08:07 +00:00
  • 5c85369bb6 In _wp_ajax_delete_comment_response(), read the new 'all' prop returned by get_comment_count() via wp_count_comments() when setting $total. 'all' doesn't include spam in its count. Scott Taylor 2015-09-15 01:46:51 +00:00
  • 2817bb6557 In get_avatar_data(), promote stdClass objects to WP_Comment if passed. Scott Taylor 2015-09-15 01:33:29 +00:00
  • 5168b2e303 After [34070], account for the new ID in Quick Edit JS. Scott Taylor 2015-09-15 01:30:36 +00:00
  • 95795c1301 More bonkers comment cache cleanup: toggle wp_defer_comment_counting() in wp_insert_post() and wp_insert_attachment(). Move the cache deletion in wp_update_comment_count_now() to before the get_post() call, so that the caches get deleted even if the post has already been deleted and the function returns early. Scott Taylor 2015-09-15 00:57:48 +00:00
  • 8cb6843170 Ensure that the count cache for all is in sync with comment-{$post_id} values. These are the values most often relied-upon by the list table for comments. Scott Taylor 2015-09-14 22:38:02 +00:00
  • 354000b5ca XMLRPC: Don't allow private posts to be sticky. Dominik Schilling (ocean90) 2015-09-14 22:37:21 +00:00
  • c430a82236 Shortcodes: don't allow unclosed HTML elements in attributes Nikolay Bachiyski 2015-09-14 22:35:22 +00:00
  • 1541d43033 List tables: escape user e-mails Nikolay Bachiyski 2015-09-14 22:32:52 +00:00
  • a9e1f79323 In the edit-comments.php admin handler, toggle wp_defer_comment_counting() so that only unique post IDs have their comment count updated. Currently, if you delete 50 comments from the same post, the count would get reset 50 times. Not joking. Scott Taylor 2015-09-14 22:23:43 +00:00
  • 545da32217 The "counts" cache for comments by post id is never invalidated. Neither wp_update_comment_count() nor wp_update_comment_count_now() touch the cache. Scott Taylor 2015-09-14 22:03:23 +00:00
  • b42a906512 wp_unspam_comment() can accept a full object instead of comment_ID to reduce cache/db lookups.. Scott Taylor 2015-09-14 21:46:40 +00:00
  • 166ee8674b More comment functions can accept a full object instead of comment_ID to reduce cache/db lookups. Scott Taylor 2015-09-14 21:39:46 +00:00
  • ab7ca361dd In WP_List_Table, make a new public method, ->get_primary_column(), and revert [34101] due to BC issues. Scott Taylor 2015-09-14 20:28:29 +00:00
  • ea610e66d4 In WP_Media_List_Table, fetch all pending comment counts at once, instead of for each row in the loop. Scott Taylor 2015-09-14 19:24:59 +00:00
  • 0c38f660e1 Implement unit tests which use reflection to test functions in pluggable.php. This means any changes to these functions will need explicit changes to their corresponding tests, which helps prevent unintentional breakage. John Blackbourn 2015-09-14 19:14:38 +00:00
  • 974517d2bc Accept 'ID' as a valid $field in get_user_by(). Boone Gorges 2015-09-14 18:57:15 +00:00
  • 9700eb511e Add the site icon meta tags to wp-login.php. John Blackbourn 2015-09-14 18:01:22 +00:00
  • 2c91a4d1e0 Fix the case-sensitivity of some HTTP class usage. Scott Taylor 2015-09-14 17:36:37 +00:00
  • 811e538325 Update links to the user profile editing screen in the admin toolbar when the current logged in user has no role on the current site. Covers single site and Multisite and introduces tests. John Blackbourn 2015-09-14 17:09:58 +00:00
  • 112a84fe93 Docs: Add missing parameter and return descriptions for Walker::get_number_of_root_elements(). Drew Jaynes 2015-09-14 15:32:46 +00:00
  • 13382740b9 Escape class attribute in edit_post_link() after [34098]. Sergey Biryukov 2015-09-14 13:00:31 +00:00
  • 08098026ce Passwords: Deprecate second parameter of wp_new_user_notification(). Dominik Schilling (ocean90) 2015-09-14 12:42:34 +00:00
  • 217c84e613 Docs: Add a changelog entry for the $class argument added to edit_post_link() in [34098]. Sergey Biryukov 2015-09-14 12:19:55 +00:00
  • 0a77429937 Passwords: Trigger a wp-check-valid-field event when the password field is filled with a password by generatePassword(). Dominik Schilling (ocean90) 2015-09-14 10:38:32 +00:00
  • c16e8b5616 Add sanity checks in map_meta_cap(), return 'do_not_allow' when posts don't exist. Scott Taylor 2015-09-14 04:43:48 +00:00
  • 5a6f66faad Send multisite site/user signup emails via hooked functions. Boone Gorges 2015-09-14 03:27:47 +00:00
  • a6a03da7f5 Add an argument to parent_dropdown(), $post, to allow it to be called for an arbitrary post. Scott Taylor 2015-09-14 03:19:59 +00:00
  • adfd136bee Move Walker_Category and Walker_CategoryDropdown into their own files via svn cp. Remove them from category-template.php. Load them in category.php. svn cp category.php over to category-functions.php, which also loads now in category.php. Scott Taylor 2015-09-14 03:09:37 +00:00
  • 1ccae571d9 Move Walker_Page and Walker_PageDropdown into their own files via svn cp. Remove them from post-template.php. Load them in post.php. Scott Taylor 2015-09-14 02:58:40 +00:00
  • 2d5945f0fc In wp_link_pages(), ensure that $prev is greater than 0. Scott Taylor 2015-09-14 02:45:33 +00:00
  • 6064924c18 Send password-change email notifications via hook. Boone Gorges 2015-09-14 02:44:41 +00:00
  • 05d4233956 Send comment notification emails via a hooked function. boonebgorges 2015-09-14 02:16:02 +00:00
  • a620cd1e34 Turn off autocomplete for the new-post-slug field. Scott Taylor 2015-09-14 02:02:58 +00:00
  • 9555882e90 When running on windows systems, normalise the capitalisation of the drive letter for more reliable string comparisons. Dion Hulse 2015-09-14 01:58:03 +00:00
  • b52b5893c4 Pass $r and $pages to the 'wp_dropdown_pages' and 'wp_list_pages' filters. Scott Taylor 2015-09-14 01:31:12 +00:00
  • 184e058681 Objects are passed by-reference since PHP 5. In _get_custom_object_labels(), cast $object->labels back to object before returning. This function is weird. Scott Taylor 2015-09-14 01:22:23 +00:00
  • 5a93988ca3 Make WP_List_Table::get_primary_column_name() public in list table classes that have it. Scott Taylor 2015-09-14 01:11:44 +00:00
  • 5d0bc76040 Check if the $post_type passed to get_post_type_object() is a scalar value. Non-scalars were producing PHP warnings. Scott Taylor 2015-09-14 00:02:05 +00:00
  • 13dd966554 Multisite: Implement the get_by_path method in WP_Network. Jeremy Felt 2015-09-13 23:39:20 +00:00
  • f20622f394 In edit_post_link(), add an argument for the class attribute that defaults to post-edit-link. Scott Taylor 2015-09-13 23:33:30 +00:00
  • 591a9aa73c Multisite: Introduce the WP_Network class. Jeremy Felt 2015-09-13 23:30:57 +00:00
  • 34c6893080 Bump H3 headings to H2 on the Writing Settings screen for better accessibility. Andrea Fercia 2015-09-13 16:47:54 +00:00
  • 379dd889c1 Comments: Fix inline edit/reply on small screens. Helen Hou-Sandi 2015-09-13 12:46:03 +00:00
  • fd1dbfe003 Customize: Remove redundant aria-label attributes. Weston Ruter 2015-09-13 06:15:42 +00:00
  • 276fa7cd09 Tests: Update Tests_Feed_RSS::test_items to expect new comment permalink structure. Jeremy Felt 2015-09-12 23:30:11 +00:00
  • 829ae5f4ce Fail gracefully when checking mapped cap against unregistered post type. Boone Gorges 2015-09-12 21:26:57 +00:00
  • 4fdfdb6078 Use stricter sanitization for meta query clause keys. Boone Gorges 2015-09-12 21:05:14 +00:00
  • dcbd8c6c3d Allow setup_postdata() to accept a post ID. Boone Gorges 2015-09-12 20:57:06 +00:00
  • 4ebab4dc16 Remove extraneous table join in get_adjacent_post(). Boone Gorges 2015-09-12 20:33:07 +00:00
  • ed36c88b73 Revert [34013] and parts of [33970]. Dominik Schilling (ocean90) 2015-09-12 20:02:43 +00:00
  • 07ea6a2334 Themes: Don't use HTML entities for placeholders. Dominik Schilling (ocean90) 2015-09-12 19:47:53 +00:00
  • db3a7133f2 In wp_insert_post(), when setting $post_author, use isset() instead of ! empty() to allow 0 to be passed as the value for $post_author. Scott Taylor 2015-09-12 18:53:56 +00:00
  • ad20c3db4a WP_Posts_List_Table: there are a cadre of edit.php URLs that are generated by string-building instead of using our handy functions. Create a helper method, ->get_edit_link() that standardizes the generation and escaping of these URLs. Scott Taylor 2015-09-12 17:12:25 +00:00
  • 2a72a1f959 Use table-layout: auto (instead of fixed) on table.fixed to ensure that things like date/time don't horrendously wrap on small screens. Before/After screenshots attached to the ticket. Scott Taylor 2015-09-12 16:03:17 +00:00
  • 9eb5abbccb wp_delete_post(): add a filter, 'pre_delete_post', to allow bailout from the function if the filter returns a non-null value. Scott Taylor 2015-09-12 15:58:09 +00:00
  • 8ef82f4792 sanitize_post(): the default value for $context is 'display'. The documentation says the default for sanitize_post_field() is 'display', but there is no default for the arg. Make the argument: $context = 'default'. Scott Taylor 2015-09-12 15:45:15 +00:00
  • 0b8101849e sanitize_post() is polymorphic, add an is_array() check for $post before operating on it as an array. Scott Taylor 2015-09-12 15:37:50 +00:00