wordpress-develop/tests/phpunit/tests
John Blackbourn 393960b182 I18N: Allow the length of automatically generated excerpts to be localized.
This introduces three new strings that can be used to control the maximum length of automatically generated excerpts for posts, comments, and draft post previews in the dashboard. Optionally combined with the existing word count type control this allows languages which include many multibyte characters to specify more appropriate maximum excerpt lengths.

Props miyauchi, birgire, johnbillion

Fixes #44541


git-svn-id: https://develop.svn.wordpress.org/trunk@45505 602fd350-edb4-49c9-b593-d223f7449a82
2019-06-08 18:41:08 +00:00
..
actions Code is Poetry. 2017-11-30 23:09:33 +00:00
admin Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
ajax Tests: Fix failing tests for privacy export/erase requests when running the ajax group for multisite. 2019-03-20 17:40:17 +00:00
attachment Code is Poetry. 2017-11-30 23:09:33 +00:00
blocks Blocks: Allow for nested the_content calls within do_blocks(). 2019-04-08 06:53:14 +00:00
bookmark General: Fix existing coding standard violations in bookmark tests, as outlined in [44546]. 2019-01-10 21:16:49 +00:00
canonical Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
category Taxonomy: Make sure wp_list_categories() correctly outputs term name of 0. 2018-09-02 22:08:05 +00:00
comment Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
customize Customizer: Fix a coding standards issue introduced in [44580]. 2019-01-14 07:22:03 +00:00
date Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
db Code is Poetry. 2017-11-30 23:09:33 +00:00
dependencies Fix unit tests after [45456]. The query string is a bit different but the results are the same. 2019-05-28 04:18:53 +00:00
editor Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
error-protection Bootstrap/Load: Allow more than one recovery link to be valid at a time. 2019-04-16 05:08:16 +00:00
external-http Embeds: Remove the external oEmbed tests for YouTube. 2017-10-03 16:51:25 +00:00
feed Feeds: improve structure and naming of feed build date helper function. 2019-04-18 17:07:07 +00:00
filesystem Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
formatting I18N: Allow the length of automatically generated excerpts to be localized. 2019-06-08 18:41:08 +00:00
functions Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
general Themes: Remove itemprop="url" from get_custom_logo() output. 2019-03-27 12:15:15 +00:00
hooks Code is Poetry. 2017-11-30 23:09:33 +00:00
http HTTP: Add support for the host-only flag to Wp_Http_Cookie. 2019-04-08 05:31:35 +00:00
image Media: Improve and fix rotate/flip image tests 2019-03-29 02:48:08 +00:00
import Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
includes Bootstrap/Load: After [45016], make sure wp_die() does not cause _doing_it_wrong() notices if called before $wp_query global is set. 2019-04-15 23:48:11 +00:00
l10n I18N: Fix JavaScript translations for subdirectory installations. 2018-12-18 23:09:51 +00:00
link Link Template: In get_adjacent_post(), move the sanitisation of $excluded_terms earlier. 2019-01-15 01:53:02 +00:00
load Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:36:37 +00:00
media Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
menu Menus: Add rel="noopener" to target="_blank" links by default in menus. 2019-04-08 23:05:22 +00:00
meta Options, Meta APIs: Remove an accidental short array syntax in the tests. 2019-03-28 22:02:10 +00:00
multisite Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
oembed Build/Test Tools: Remove the dependency on a globally installed Grunt. 2019-05-26 19:34:24 +00:00
option Options: Avoid unnecessary DB calls when updating network options. 2019-01-21 04:26:33 +00:00
pomo Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
post Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
privacy Privacy: Only mark a personal data export as complete when the user downloads it. 2019-04-09 00:03:07 +00:00
query Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
rest-api Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
rewrite Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
taxonomy Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
term REST API: Move object type-specific metadata integrations from the wrapper functions to the low-level Meta API functions. 2018-12-12 03:02:00 +00:00
theme Themes: Introduce responsive embeds support. 2018-12-14 01:49:46 +00:00
url Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:47:29 +00:00
user Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:52:07 +00:00
widgets Widgets: Add rel="noopener noreferrer" to links with target="_blank" in the Image widget. 2019-04-08 23:22:14 +00:00
xmlrpc Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
actions.php Code is Poetry. 2017-11-30 23:09:33 +00:00
adminbar.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
auth.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
avatar.php Coding Standards: Fix and whitelist variable names. 2019-01-12 06:05:55 +00:00
basic.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
canonical.php Canonical: Ensure redirect query keys are URL encoded. 2019-04-08 01:09:01 +00:00
category.php Code is Poetry. 2017-11-30 23:09:33 +00:00
comment-submission.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
comment.php Privacy: Don't replace comment author URL and email with anything. 2018-07-17 08:59:30 +00:00
compat.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
cron.php Cron: Ensure identical single events aren't scheduled less than 10min apart. 2019-03-16 06:41:23 +00:00
db.php WPDB: Check that $wpdb->last_result is countable before counting with it. 2018-12-17 18:38:13 +00:00
dbdelta.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
dependencies.php Code is Poetry. 2017-11-30 23:09:33 +00:00
file.php Upgrade/Install: Don't run signature verify on slow 32-bit systems. 2019-05-17 11:05:45 +00:00
filters.php Code is Poetry. 2017-11-30 23:09:33 +00:00
functions.php Date/Time: Bring some consistency to the_date() and the_weekday_date(): 2019-05-22 21:57:29 +00:00
kses.php KSES: Add flex and related long form properties to safe CSS. 2019-05-18 04:33:27 +00:00
l10n.php I18N: Allow the length of automatically generated excerpts to be localized. 2019-06-08 18:41:08 +00:00
link.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
locale.php Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
mail.php Code is Poetry. 2017-11-30 23:09:33 +00:00
media.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
meta.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
multisite.php Code is Poetry. 2017-11-30 23:09:33 +00:00
pluggable.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
post.php Permalinks: Add a pre_wp_unique_post_slug filter. 2019-01-08 03:46:58 +00:00
query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
rest-api.php REST API: Encourage proper usage of register_rest_route(). 2019-01-11 18:18:41 +00:00
rewrite.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
shortcode.php Coding Standards: Extract extract() from the codebase. 2019-01-12 03:19:23 +00:00
taxonomy.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
template.php PHPCS: Remove extra spaces added in [44966]. 2019-03-21 20:19:16 +00:00
term.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
theme.php Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:47:29 +00:00
upload.php Code is Poetry. 2017-11-30 23:09:33 +00:00
url.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
user.php Build Tools: Upgrade WPCS to 2.0.0. 2019-01-18 02:14:24 +00:00
walker.php Code is Poetry. 2017-11-30 23:09:33 +00:00
widgets.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wp.php Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00