Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit 28e7058

Browse files
Use secure URIs in generated README
1 parent 1f52e37 commit 28e7058

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

class-wordpress-readme-parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function to_markdown( $params = array() ) {
9292
$general_section_formatter = function ( $body ) use ( $params ) {
9393
$body = preg_replace(
9494
'#\[youtube\s+(?:http://www\.youtube\.com/watch\?v=|http://youtu\.be/)(.+?)\]#',
95-
'[![Play video on YouTube](http://i1.ytimg.com/vi/$1/hqdefault.jpg)](http://www.youtube.com/watch?v=$1)',
95+
'[![Play video on YouTube](https://i1.ytimg.com/vi/$1/hqdefault.jpg)](https://www.youtube.com/watch?v=$1)',
9696
$body
9797
);
9898
// Convert <pre lang="php"> into GitHub-flavored ```php markdown blocks
@@ -145,7 +145,7 @@ function to_markdown( $params = array() ) {
145145
function ( $contributor ) {
146146
$contributor = strtolower( $contributor );
147147
// @todo Map to GitHub account
148-
return sprintf( '[%1$s](http://profiles.wordpress.org/%1$s)', $contributor );
148+
return sprintf( '[%1$s](https://profiles.wordpress.org/%1$s)', $contributor );
149149
},
150150
$this->metadata['Contributors']
151151
)
@@ -154,7 +154,7 @@ function ( $contributor ) {
154154
', ',
155155
array_map(
156156
function ( $tag ) {
157-
return sprintf( '[%1$s](http://wordpress.org/plugins/tags/%1$s)', $tag );
157+
return sprintf( '[%1$s](https://wordpress.org/plugins/tags/%1$s)', $tag );
158158
},
159159
$this->metadata['Tags']
160160
)

0 commit comments

Comments
 (0)