diff --git a/core/core.api.php b/core/core.api.php
index ef04faf2d798fa4bde4d7bac4ee44adae386b108..83d822c270046167731d09cf089beb793b0c0da7 100644
--- a/core/core.api.php
+++ b/core/core.api.php
@@ -79,9 +79,9 @@
* Web services make it possible for applications and web sites to read and
* update information from other web sites. There are several standard
* techniques for providing web services, including:
- * - SOAP: http://en.wikipedia.org/wiki/SOAP SOAP
- * - XML-RPC: http://en.wikipedia.org/wiki/XML-RPC
- * - REST: http://en.wikipedia.org/wiki/Representational_state_transfer
+ * - SOAP: http://wikipedia.org/wiki/SOAP
+ * - XML-RPC: http://wikipedia.org/wiki/XML-RPC
+ * - REST: http://wikipedia.org/wiki/Representational_state_transfer
* Drupal sites can both provide web services and integrate third-party web
* services.
*
@@ -254,7 +254,7 @@
* - Exporting and importing configuration.
*
* The file storage format for configuration information in Drupal is
- * @link http://en.wikipedia.org/wiki/YAML YAML files. @endlink Configuration is
+ * @link http://wikipedia.org/wiki/YAML YAML files. @endlink Configuration is
* divided into files, each containing one configuration object. The file name
* for a configuration object is equal to the unique name of the configuration,
* with a '.yml' extension. The default configuration files for each module are
@@ -1120,7 +1120,7 @@
*
* A runtime assertion is a statement that is expected to always be true at
* the point in the code it appears at. They are tested using PHP's internal
- * @link http://www.php.net/assert assert() @endlink statement. If an
+ * @link http://php.net/assert assert() @endlink statement. If an
* assertion is ever FALSE it indicates an error in the code or in module or
* theme configuration files. User-provided configuration files should be
* verified with standard control structures at all times, not just checked in
diff --git a/core/includes/file.inc b/core/includes/file.inc
index b9c217b9745b0f46dad45677fc266d871ed9d450..3e5eb8c96be84d406cf537f56938422f88c5f2a0 100644
--- a/core/includes/file.inc
+++ b/core/includes/file.inc
@@ -630,7 +630,8 @@ function file_munge_filename($filename, $extensions, $alerts = TRUE) {
// Allow potentially insecure uploads for very savvy users and admin
if (!\Drupal::config('system.file')->get('allow_insecure_uploads')) {
- // Remove any null bytes. See http://php.net/manual/en/security.filesystem.nullbytes.php
+ // Remove any null bytes. See
+ // http://php.net/manual/security.filesystem.nullbytes.php
$filename = str_replace(chr(0), '', $filename);
$whitelist = array_unique(explode(' ', strtolower(trim($extensions))));
diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index cdfaaa9d7af5b53667f020b4bbd4d97c25106f5f..b71e437dcbab51af7031f1de04a5793a3877f225 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -416,7 +416,7 @@ function theme_render_and_autoescape($arg) {
$return = (string) $arg;
}
// You can't throw exceptions in the magic PHP __toString methods, see
- // http://php.net/manual/en/language.oop5.magic.php#object.tostring so
+ // http://php.net/manual/language.oop5.magic.php#object.tostring so
// we also support a toString method.
elseif (method_exists($arg, 'toString')) {
$return = $arg->toString();
diff --git a/core/includes/unicode.inc b/core/includes/unicode.inc
index 216d112c0c08ee275bd5a869d5e388d0636e2422..f0df33ede2cb0d076def46723092fc733c27ee26 100644
--- a/core/includes/unicode.inc
+++ b/core/includes/unicode.inc
@@ -29,26 +29,25 @@ function unicode_requirements() {
'value' => $libraries[$library],
'severity' => $severities[$library],
);
- $t_args = array(':url' => 'http://www.php.net/mbstring');
switch ($failed_check) {
case 'mb_strlen':
- $requirements['unicode']['description'] = t('Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.', $t_args);
+ $requirements['unicode']['description'] = t('Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.');
break;
case 'mbstring.func_overload':
- $requirements['unicode']['description'] = t('Multibyte string function overloading in PHP is active and must be disabled. Check the php.ini mbstring.func_overload setting. Please refer to the PHP mbstring documentation for more information.', $t_args);
+ $requirements['unicode']['description'] = t('Multibyte string function overloading in PHP is active and must be disabled. Check the php.ini mbstring.func_overload setting. Please refer to the PHP mbstring documentation for more information.');
break;
case 'mbstring.encoding_translation':
- $requirements['unicode']['description'] = t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.encoding_translation setting. Please refer to the PHP mbstring documentation for more information.', $t_args);
+ $requirements['unicode']['description'] = t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.encoding_translation setting. Please refer to the PHP mbstring documentation for more information.');
break;
case 'mbstring.http_input':
- $requirements['unicode']['description'] = t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentation for more information.', $t_args);
+ $requirements['unicode']['description'] = t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentation for more information.');
break;
case 'mbstring.http_output':
- $requirements['unicode']['description'] = t('Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_output setting. Please refer to the PHP mbstring documentation for more information.', $t_args);
+ $requirements['unicode']['description'] = t('Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_output setting. Please refer to the PHP mbstring documentation for more information.');
break;
}
diff --git a/core/lib/Drupal/Component/Datetime/DateTimePlus.php b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
index 4540b3b615d4395dfc75bffae18c90831f0a9516..530a63e285cd7c17f73ebece18ae3073971d522a 100644
--- a/core/lib/Drupal/Component/Datetime/DateTimePlus.php
+++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
@@ -177,7 +177,7 @@ public static function createFromTimestamp($timestamp, $timezone = NULL, $settin
* to use things like negative years, which php's parser fails on, or
* any other specialized input with a known format. If provided the
* date will be created using the createFromFormat() method.
- * @see http://us3.php.net/manual/en/datetime.createfromformat.php
+ * @see http://php.net/manual/datetime.createfromformat.php
* @param mixed $time
* @see __construct()
* @param mixed $timezone
@@ -389,7 +389,7 @@ protected function prepareFormat($format) {
* PHP creates a valid date from invalid data with only a warning,
* 2011-02-30 becomes 2011-03-03, for instance, but we don't want that.
*
- * @see http://us3.php.net/manual/en/time.getlasterrors.php
+ * @see http://php.net/manual/time.getlasterrors.php
*/
public function checkErrors() {
$errors = \DateTime::getLastErrors();
diff --git a/core/lib/Drupal/Component/Utility/Bytes.php b/core/lib/Drupal/Component/Utility/Bytes.php
index 0bcac31ed3f0534490a1be570c6fc492c57aab03..4d331eaaacd686425ea382d10032599a6eacea54 100644
--- a/core/lib/Drupal/Component/Utility/Bytes.php
+++ b/core/lib/Drupal/Component/Utility/Bytes.php
@@ -15,7 +15,7 @@ class Bytes {
/**
* The number of bytes in a kilobyte.
*
- * @see http://en.wikipedia.org/wiki/Kilobyte
+ * @see http://wikipedia.org/wiki/Kilobyte
*/
const KILOBYTE = 1024;
diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php
index 0c811f28522fa794ce3bc14e475710ff2a64cb21..d13c134bcb4795ca259bc1dd4a6897fb74e08d5c 100644
--- a/core/lib/Drupal/Component/Utility/Html.php
+++ b/core/lib/Drupal/Component/Utility/Html.php
@@ -334,7 +334,7 @@ public static function escapeCdataElement(\DOMNode $node, $comment_start = '//',
// Prevent invalid cdata escaping as this would throw a DOM error.
// This is the same behavior as found in libxml2.
// Related W3C standard: http://www.w3.org/TR/REC-xml/#dt-cdsection
- // Fix explanation: http://en.wikipedia.org/wiki/CDATA#Nesting
+ // Fix explanation: http://wikipedia.org/wiki/CDATA#Nesting
$data = str_replace(']]>', ']]]]>', $child_node->data);
$fragment = $node->ownerDocument->createDocumentFragment();
diff --git a/core/lib/Drupal/Core/Config/ConfigBase.php b/core/lib/Drupal/Core/Config/ConfigBase.php
index 8263e9a6228f52b81e6381ae3baa1a6355bddf56..77460f9c4537190f85f14f576139f3701a83a4a7 100644
--- a/core/lib/Drupal/Core/Config/ConfigBase.php
+++ b/core/lib/Drupal/Core/Config/ConfigBase.php
@@ -55,7 +55,7 @@ abstract class ConfigBase implements RefinableCacheableDependencyInterface {
* incompatible with this limitation are created, we enforce a maximum name
* length of 250 characters (leaving 5 characters for the file extension).
*
- * @see http://en.wikipedia.org/wiki/Comparison_of_file_systems
+ * @see http://wikipedia.org/wiki/Comparison_of_file_systems
*
* Configuration objects not stored on the filesystem should still be
* restricted in name length so name can be used as a cache key.
diff --git a/core/lib/Drupal/Core/Database/Log.php b/core/lib/Drupal/Core/Database/Log.php
index e45a3be214e070dc9d25bacf34ae9fd7415a4a43..ffcf03eba61dae627db01addee4a3911b822a063 100644
--- a/core/lib/Drupal/Core/Database/Log.php
+++ b/core/lib/Drupal/Core/Database/Log.php
@@ -136,7 +136,9 @@ public function log(StatementInterface $statement, $args, $time) {
* climbing logic very simple, and handles the variable stack depth caused by
* the query builders.
*
- * @link http://www.php.net/debug_backtrace
+ * See the @link http://php.net/debug_backtrace debug_backtrace() @endlink
+ * function.
+ *
* @return
* This method returns a stack trace entry similar to that generated by
* debug_backtrace(). However, it flattens the trace entry and the trace
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php
index e7030844d77ac69c5cac221c63c8e282db2d80c5..c117a09ebd688fa3eb7519a4b0585a358a6edced 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php
@@ -126,7 +126,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
$elements['custom_date_format'] = array(
'#type' => 'textfield',
'#title' => $this->t('Custom date format'),
- '#description' => $this->t('See the documentation for PHP date formats.', [':url' => 'http://php.net/manual/function.date.php']),
+ '#description' => $this->t('See the documentation for PHP date formats.'),
'#default_value' => $this->getSetting('custom_date_format') ?: '',
);
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
index e3867d4baf65f80f64faeab76dfede967fa3a3ae..b7f32eeb857c8661d6c2f60646fadcbc828f685a 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
@@ -152,7 +152,7 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
$scale = rand($decimal_digits, $scale);
// @see "Example #1 Calculate a random floating-point number" in
- // http://php.net/manual/en/function.mt-getrandmax.php
+ // http://php.net/manual/function.mt-getrandmax.php
$random_decimal = $min + mt_rand() / mt_getrandmax() * ($max - $min);
$values['value'] = self::truncateDecimal($random_decimal, $scale);
return $values;
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php
index 34eebe9476f89ed69645610393d323f87be0c37c..9bc552d5f475cc039a7ea440e180ef69225ac80e 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php
@@ -72,7 +72,7 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
$max = is_numeric($settings['max']) ?: pow(10, ($precision - $scale)) - 1;
$min = is_numeric($settings['min']) ?: -pow(10, ($precision - $scale)) + 1;
// @see "Example #1 Calculate a random floating-point number" in
- // http://php.net/manual/en/function.mt-getrandmax.php
+ // http://php.net/manual/function.mt-getrandmax.php
$random_decimal = $min + mt_rand() / mt_getrandmax() * ($max - $min);
$values['value'] = self::truncateDecimal($random_decimal, $scale);
return $values;
diff --git a/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php b/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php
index 9dcb582da46b7a2f86aee12a175807cded70276f..c9395650ebf0fecfa28a709b8213b80b777ef577 100644
--- a/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php
+++ b/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php
@@ -53,7 +53,7 @@ public function format(array $message) {
* @return bool
* TRUE if the mail was successfully accepted, otherwise FALSE.
*
- * @see http://php.net/manual/en/function.mail.php
+ * @see http://php.net/manual/function.mail.php
* @see \Drupal\Core\Mail\MailManagerInterface::mail()
*/
public function mail(array $message) {
diff --git a/core/lib/Drupal/Core/Render/Element/HtmlTag.php b/core/lib/Drupal/Core/Render/Element/HtmlTag.php
index 5ec0d3f774b6748866b58c8f83fde6840f1e8624..1d0a2433ef65044c2e3ae49ed9d3966df7ddb21c 100644
--- a/core/lib/Drupal/Core/Render/Element/HtmlTag.php
+++ b/core/lib/Drupal/Core/Render/Element/HtmlTag.php
@@ -165,7 +165,7 @@ public static function preRenderConditionalComments($element) {
// conditional comment markup. The conditional comment expression is
// evaluated by Internet Explorer only. To control the rendering by other
// browsers, use either the "downlevel-hidden" or "downlevel-revealed"
- // technique. See http://en.wikipedia.org/wiki/Conditional_comment
+ // technique. See http://wikipedia.org/wiki/Conditional_comment
// for details.
// Ensure what we are dealing with is safe.
diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
index 4013d0f068bcf1107895162f574547850ba37535..ad4636c219e68916b137b82663f5b71d71a61802 100644
--- a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
@@ -104,7 +104,7 @@ public function stream_lock($operation) {
* @return bool
* FALSE as data will not be written.
*
- * @see http://php.net/manual/en/streamwrapper.stream-write.php
+ * @see http://php.net/manual/streamwrapper.stream-write.php
*/
public function stream_write($data) {
trigger_error('stream_write() not supported for read-only stream wrappers', E_USER_WARNING);
@@ -158,7 +158,7 @@ public function stream_truncate($new_size) {
* TRUE so that file_delete() will remove db reference to file. File is not
* actually deleted.
*
- * @see http://php.net/manual/en/streamwrapper.unlink.php
+ * @see http://php.net/manual/streamwrapper.unlink.php
*/
public function unlink($uri) {
trigger_error('unlink() not supported for read-only stream wrappers', E_USER_WARNING);
@@ -178,7 +178,7 @@ public function unlink($uri) {
* @return bool
* FALSE as file will never be renamed.
*
- * @see http://php.net/manual/en/streamwrapper.rename.php
+ * @see http://php.net/manual/streamwrapper.rename.php
*/
public function rename($from_uri, $to_uri) {
trigger_error('rename() not supported for read-only stream wrappers', E_USER_WARNING);
@@ -200,7 +200,7 @@ public function rename($from_uri, $to_uri) {
* @return bool
* FALSE as directory will never be created.
*
- * @see http://php.net/manual/en/streamwrapper.mkdir.php
+ * @see http://php.net/manual/streamwrapper.mkdir.php
*/
public function mkdir($uri, $mode, $options) {
trigger_error('mkdir() not supported for read-only stream wrappers', E_USER_WARNING);
@@ -220,7 +220,7 @@ public function mkdir($uri, $mode, $options) {
* @return bool
* FALSE as directory will never be deleted.
*
- * @see http://php.net/manual/en/streamwrapper.rmdir.php
+ * @see http://php.net/manual/streamwrapper.rmdir.php
*/
public function rmdir($uri, $options) {
trigger_error('rmdir() not supported for read-only stream wrappers', E_USER_WARNING);
diff --git a/core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php b/core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php
index de6d66e3b06d2e7d0a16e1ee60777a2c187fa898..5091b8fce060609d900d23c97acc72458f78b74f 100644
--- a/core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php
+++ b/core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php
@@ -10,7 +10,7 @@
/**
* Defines a generic PHP stream wrapper interface.
*
- * @see http://www.php.net/manual/class.streamwrapper.php
+ * @see http://php.net/manual/class.streamwrapper.php
*/
interface PhpStreamWrapperInterface {
@@ -116,7 +116,7 @@ public function stream_lock($operation);
* Returns TRUE on success or FALSE on failure. If $option is not
* implemented, FALSE should be returned.
*
- * @see http://www.php.net/manual/streamwrapper.stream-metadata.php
+ * @see http://php.net/manual/streamwrapper.stream-metadata.php
*/
public function stream_metadata($path, $option, $value);
diff --git a/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php b/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
index a7201d289de70ac587fa4f1665a83d5d177fc32e..cc6da4bd287c163f3c472959e9d9381bd62bae87 100644
--- a/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
@@ -138,7 +138,7 @@ public function stream_lock($operation) {
* @return bool
* FALSE as data will not be written.
*
- * @see http://php.net/manual/en/streamwrapper.stream-write.php
+ * @see http://php.net/manual/streamwrapper.stream-write.php
*/
public function stream_write($data) {
trigger_error('stream_write() not supported for read-only stream wrappers', E_USER_WARNING);
@@ -192,7 +192,7 @@ public function stream_truncate($new_size) {
* TRUE so that file_delete() will remove db reference to file. File is not
* actually deleted.
*
- * @see http://php.net/manual/en/streamwrapper.unlink.php
+ * @see http://php.net/manual/streamwrapper.unlink.php
*/
public function unlink($uri) {
trigger_error('unlink() not supported for read-only stream wrappers', E_USER_WARNING);
@@ -212,7 +212,7 @@ public function unlink($uri) {
* @return bool
* FALSE as file will never be renamed.
*
- * @see http://php.net/manual/en/streamwrapper.rename.php
+ * @see http://php.net/manual/streamwrapper.rename.php
*/
public function rename($from_uri, $to_uri) {
trigger_error('rename() not supported for read-only stream wrappers', E_USER_WARNING);
@@ -234,7 +234,7 @@ public function rename($from_uri, $to_uri) {
* @return bool
* FALSE as directory will never be created.
*
- * @see http://php.net/manual/en/streamwrapper.mkdir.php
+ * @see http://php.net/manual/streamwrapper.mkdir.php
*/
public function mkdir($uri, $mode, $options) {
trigger_error('mkdir() not supported for read-only stream wrappers', E_USER_WARNING);
@@ -254,7 +254,7 @@ public function mkdir($uri, $mode, $options) {
* @return bool
* FALSE as directory will never be deleted.
*
- * @see http://php.net/manual/en/streamwrapper.rmdir.php
+ * @see http://php.net/manual/streamwrapper.rmdir.php
*/
public function rmdir($uri, $options) {
trigger_error('rmdir() not supported for read-only stream wrappers', E_USER_WARNING);
diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php
index 69f329805120a5be6b4d6f7eb426a94d0f969aca..5b71c5290bdc10e1c267ddfe1ce7547a13b2b53c 100644
--- a/core/lib/Drupal/Core/Template/TwigExtension.php
+++ b/core/lib/Drupal/Core/Template/TwigExtension.php
@@ -432,7 +432,7 @@ public function escapeFilter(\Twig_Environment $env, $arg, $strategy = 'html', $
$return = (string) $arg;
}
// You can't throw exceptions in the magic PHP __toString methods, see
- // http://php.net/manual/en/language.oop5.magic.php#object.tostring so
+ // http://php.net/manual/language.oop5.magic.php#object.tostring so
// we also support a toString method.
elseif (method_exists($arg, 'toString')) {
$return = $arg->toString();
@@ -510,7 +510,7 @@ public function renderVar($arg) {
return (string) $arg;
}
// You can't throw exceptions in the magic PHP __toString methods, see
- // http://php.net/manual/en/language.oop5.magic.php#object.tostring so
+ // http://php.net/manual/language.oop5.magic.php#object.tostring so
// we also support a toString method.
elseif (method_exists($arg, 'toString')) {
return $arg->toString();
diff --git a/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php b/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
index e9a3abc8d1c134ef11b86c5a921029e88e909c91..882bc7b6e27a19e421bff9dbfd4d4f54df552437 100644
--- a/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
+++ b/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
@@ -14,7 +14,7 @@
* The binary data type.
*
* The plain value of binary data is a PHP file resource, see
- * http://php.net/manual/en/language.types.resource.php. For setting the value
+ * http://php.net/manual/language.types.resource.php. For setting the value
* a PHP file resource or a (absolute) stream resource URI may be passed.
*
* @DataType(
diff --git a/core/modules/aggregator/aggregator.install b/core/modules/aggregator/aggregator.install
index a763639f8880758712a0e62fbc7302a6556ff701..e236628953d587b43b8566b18106246db619c880 100644
--- a/core/modules/aggregator/aggregator.install
+++ b/core/modules/aggregator/aggregator.install
@@ -17,7 +17,7 @@ function aggregator_requirements($phase) {
);
if (!$has_curl) {
$requirements['curl']['severity'] = REQUIREMENT_ERROR;
- $requirements['curl']['description'] = t('The Aggregator module could not be installed because the PHP cURL library is not available.', array(':curl_url' => 'http://php.net/manual/curl.setup.php'));
+ $requirements['curl']['description'] = t('The Aggregator module could not be installed because the PHP cURL library is not available.');
}
return $requirements;
}
diff --git a/core/modules/color/color.install b/core/modules/color/color.install
index aa2dd4719ee1bf98ceda6af42f2ef818e2a2ede7..7f6133819debf83d9623dbc4fea8367dcc5b8ff3 100644
--- a/core/modules/color/color.install
+++ b/core/modules/color/color.install
@@ -22,14 +22,14 @@ function color_requirements($phase) {
// Check for PNG support.
if (!function_exists('imagecreatefrompng')) {
$requirements['color_gd']['severity'] = REQUIREMENT_WARNING;
- $requirements['color_gd']['description'] = t('The GD library for PHP is enabled, but was compiled without PNG support. Check the PHP image documentation for information on how to correct this.', array(':url' => 'http://www.php.net/manual/ref.image.php'));
+ $requirements['color_gd']['description'] = t('The GD library for PHP is enabled, but was compiled without PNG support. Check the PHP image documentation for information on how to correct this.');
}
}
else {
$requirements['color_gd'] = array(
'value' => t('Not installed'),
'severity' => REQUIREMENT_ERROR,
- 'description' => t('The GD library for PHP is missing or outdated. Check the PHP image documentation for information on how to correct this.', array(':url' => 'http://www.php.net/manual/book.image.php')),
+ 'description' => t('The GD library for PHP is missing or outdated. Check the PHP image documentation for information on how to correct this.'),
);
}
$requirements['color_gd']['title'] = t('GD library PNG support');
diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index 15619ff4c023d85399060e0dde6f78d3fb859332..2fbef3034083babad17687e56bd464f39262a00a 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -413,7 +413,7 @@ function color_scheme_form_submit($form, FormStateInterface $form_state) {
$memory_limit = ini_get('memory_limit');
$size = Bytes::toInt($memory_limit);
if (!Environment::checkMemoryLimit($usage + $required, $memory_limit)) {
- drupal_set_message(t('There is not enough memory available to PHP to change this theme\'s color scheme. You need at least %size more. Check the PHP documentation for more information.', array('%size' => format_size($usage + $required - $size), ':url' => 'http://www.php.net/manual/ini.core.php#ini.sect.resource-limits')), 'error');
+ drupal_set_message(t('There is not enough memory available to PHP to change this theme\'s color scheme. You need at least %size more. Check the PHP documentation for more information.', array('%size' => format_size($usage + $required - $size))), 'error');
return;
}
}
diff --git a/core/modules/config_translation/src/FormElement/DateFormat.php b/core/modules/config_translation/src/FormElement/DateFormat.php
index 6395a924e975b21a4b39130bd7bf77748d07d761..a39da178f92e09f21380b2f7e041f3bbc601c135 100644
--- a/core/modules/config_translation/src/FormElement/DateFormat.php
+++ b/core/modules/config_translation/src/FormElement/DateFormat.php
@@ -20,7 +20,7 @@ class DateFormat extends FormElementBase {
public function getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) {
/** @var \Drupal\Core\Datetime\DateFormatterInterface $date_formatter */
$date_formatter = \Drupal::service('date.formatter');
- $description = $this->t('A user-defined date format. See the PHP manual for available options.', array(':url' => 'http://php.net/manual/function.date.php'));
+ $description = $this->t('A user-defined date format. See the PHP manual for available options.');
$format = $this->t('Displayed as %date_format', array('%date_format' => $date_formatter->format(REQUEST_TIME, 'custom', $translation_config)));
return [
diff --git a/core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php b/core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php
index af6fd37e463faf382051940a94f533e242cab2f2..5b53a8f79169f68c325fbe791d7975832802f001 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php
@@ -84,7 +84,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
$form['date_format'] = array(
'#type' => 'textfield',
'#title' => $this->t('Date/time format'),
- '#description' => $this->t('See the documentation for PHP date formats.', [':url' => 'http://php.net/manual/function.date.php']),
+ '#description' => $this->t('See the documentation for PHP date formats.'),
'#default_value' => $this->getSetting('date_format'),
);
diff --git a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
index e277c149747fbce0782ff88adfd52170034cb437..399890047708de414fd35a5aef49ab3e9aaa8493 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
@@ -51,7 +51,7 @@ public function defaultValuesForm(array &$form, FormStateInterface $form_state)
'default_date' => array(
'#type' => 'textfield',
'#title' => t('Relative default value'),
- '#description' => t("Describe a time by reference to the current day, like '+90 days' (90 days from the day the field is created) or '+1 Saturday' (the next Saturday). See @strtotime for more details.", array('@strtotime' => 'strtotime', '@url' => 'http://www.php.net/manual/en/function.strtotime.php')),
+ '#description' => t("Describe a time by reference to the current day, like '+90 days' (90 days from the day the field is created) or '+1 Saturday' (the next Saturday). See strtotime for more details."),
'#default_value' => (isset($default_value[0]['default_date_type']) && $default_value[0]['default_date_type'] == static::DEFAULT_VALUE_CUSTOM) ? $default_value[0]['default_date'] : '',
'#states' => array(
'visible' => array(
diff --git a/core/modules/file/file.install b/core/modules/file/file.install
index 35a57373b86637d85b090c10a168f7e8eb81f8da..05eedf0f953310cb29537e7946a551253ceac29a 100644
--- a/core/modules/file/file.install
+++ b/core/modules/file/file.install
@@ -98,18 +98,18 @@ function file_requirements($phase) {
}
elseif (!$implementation && extension_loaded('apcu')) {
$value = t('Not enabled');
- $description = t('Your server is capable of displaying file upload progress through APC, but it is not enabled. Add apc.rfc1867 = 1
to your php.ini configuration. Alternatively, it is recommended to use PECL uploadprogress, which supports more than one simultaneous upload.', array(':url' => 'http://pecl.php.net/package/uploadprogress'));
+ $description = t('Your server is capable of displaying file upload progress through APC, but it is not enabled. Add apc.rfc1867 = 1
to your php.ini configuration. Alternatively, it is recommended to use PECL uploadprogress, which supports more than one simultaneous upload.');
}
elseif (!$implementation) {
$value = t('Not enabled');
- $description = t('Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.', array(':uploadprogress_url' => 'http://pecl.php.net/package/uploadprogress', ':apc_url' => 'http://php.net/apcu'));
+ $description = t('Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.');
}
elseif ($implementation == 'apc') {
- $value = t('Enabled (APC RFC1867)', array(':url' => 'http://php.net/manual/en/apcu.configuration.php#ini.apcu.rfc1867'));
- $description = t('Your server is capable of displaying file upload progress using APC RFC1867. Note that only one upload at a time is supported. It is recommended to use the PECL uploadprogress library if possible.', array(':url' => 'http://pecl.php.net/package/uploadprogress'));
+ $value = t('Enabled (APC RFC1867)');
+ $description = t('Your server is capable of displaying file upload progress using APC RFC1867. Note that only one upload at a time is supported. It is recommended to use the PECL uploadprogress library if possible.');
}
elseif ($implementation == 'uploadprogress') {
- $value = t('Enabled (PECL uploadprogress)', array(':url' => 'http://pecl.php.net/package/uploadprogress'));
+ $value = t('Enabled (PECL uploadprogress)');
}
$requirements['file_progress'] = array(
'title' => t('Upload progress'),
diff --git a/core/modules/file/src/Plugin/Field/FieldFormatter/RSSEnclosureFormatter.php b/core/modules/file/src/Plugin/Field/FieldFormatter/RSSEnclosureFormatter.php
index ad3418f8f2df7539e277193ed24521b97b1da4fa..ab479f32f3c61ad07e85d09f359479f40959af44 100644
--- a/core/modules/file/src/Plugin/Field/FieldFormatter/RSSEnclosureFormatter.php
+++ b/core/modules/file/src/Plugin/Field/FieldFormatter/RSSEnclosureFormatter.php
@@ -28,7 +28,7 @@ class RSSEnclosureFormatter extends FileFormatterBase {
public function viewElements(FieldItemListInterface $items, $langcode) {
$entity = $items->getEntity();
// Add the first file as an enclosure to the RSS item. RSS allows only one
- // enclosure per item. See: http://en.wikipedia.org/wiki/RSS_enclosure
+ // enclosure per item. See: http://wikipedia.org/wiki/RSS_enclosure
foreach ($this->getEntitiesToView($items, $langcode) as $delta => $file) {
$entity->rss_elements[] = array(
'key' => 'enclosure',
diff --git a/core/modules/file/src/Tests/DownloadTest.php b/core/modules/file/src/Tests/DownloadTest.php
index 997eb560a63ce67f03cfd3b2da5b84e51cf102b1..20289e7f6600c8ba4ecd55e8368dfe9d9775e5dc 100644
--- a/core/modules/file/src/Tests/DownloadTest.php
+++ b/core/modules/file/src/Tests/DownloadTest.php
@@ -95,7 +95,7 @@ function testFileCreateUrl() {
// Tilde (~) is excluded from this test because it is encoded by
// rawurlencode() in PHP 5.2 but not in PHP 5.3, as per RFC 3986.
- // @see http://www.php.net/manual/function.rawurlencode.php#86506
+ // @see http://php.net/manual/function.rawurlencode.php#86506
$basename = " -._!$'\"()*@[]?&+%#,;=:\n\x00" . // "Special" ASCII characters.
"%23%25%26%2B%2F%3F" . // Characters that look like a percent-escaped string.
"éøïвβ中國書۞"; // Characters from various non-ASCII alphabets.
diff --git a/core/modules/hal/hal.module b/core/modules/hal/hal.module
index 90696d4f44e8344d8c817d939bc5111893a0c7a2..eaf06c104f65da68f1113c35bf733f8af58678aa 100644
--- a/core/modules/hal/hal.module
+++ b/core/modules/hal/hal.module
@@ -16,7 +16,7 @@ function hal_help($route_name, RouteMatchInterface $route_match) {
$output = '';
$output .= '
' . t('Hypertext Application Language (HAL) is a format that supports the linking required for hypermedia APIs.', array(':hal_spec' => 'http://stateless.co/hal_specification.html')) . '
'; - $output .= '' . t('Hypermedia APIs are a style of Web API that uses URIs to identify resources and the link relations between them, enabling API consumers to follow links to discover API functionality.', array(':link_rel' => 'http://en.wikipedia.org/wiki/Link_relation')) . '
'; + $output .= '' . t('Hypermedia APIs are a style of Web API that uses URIs to identify resources and the link relations between them, enabling API consumers to follow links to discover API functionality.') . '
'; $output .= '' . t('This module adds support for serializing entities (such as content items, taxonomy terms, etc.) to the JSON version of HAL. For more information, see the online documentation for the HAL module.', array(':hal_do' => 'https://www.drupal.org/documentation/modules/hal')) . '
'; return $output; } diff --git a/core/modules/image/image.module b/core/modules/image/image.module index aa6060d0fe4d58a8f8ece28f0329a083eb4bc267..7f8314a6d783a14e66df580863ef9b7e7feb74c5 100644 --- a/core/modules/image/image.module +++ b/core/modules/image/image.module @@ -76,7 +76,7 @@ function image_help($route_name, RouteMatchInterface $route_match) { $output .= '' . t('The Syslog module logs events by sending messages to the logging facility of your web server\'s operating system. Syslog is an operating system administrative logging tool that provides valuable information for use in system management and security auditing. Most suited to medium and large sites, Syslog provides filtering tools that allow messages to be routed by type and severity. For more information, see the online documentation for the Syslog module, as well as PHP\'s documentation pages for the openlog and syslog functions.', array(':syslog' => 'https://www.drupal.org/documentation/modules/syslog', ':php_openlog' => 'http://www.php.net/manual/function.openlog.php', ':php_syslog' => 'http://www.php.net/manual/function.syslog.php')) . '
'; + $output .= '' . t('The Syslog module logs events by sending messages to the logging facility of your web server\'s operating system. Syslog is an operating system administrative logging tool that provides valuable information for use in system management and security auditing. Most suited to medium and large sites, Syslog provides filtering tools that allow messages to be routed by type and severity. For more information, see the online documentation for the Syslog module, as well as PHP\'s documentation pages for the openlog and syslog functions.', array(':syslog' => 'https://www.drupal.org/documentation/modules/syslog')) . '
'; $output .= '