Ticket #36993: 36993.2.patch
File 36993.2.patch, 50.3 KB (added by , 8 years ago) |
---|
-
src/readme.html
53 53 54 54 <h2>System Requirements</h2> 55 55 <ul> 56 <li><a href="http ://php.net/">PHP</a> version <strong>5.2.4</strong> or higher.</li>57 <li><a href="http ://www.mysql.com/">MySQL</a> version <strong>5.0</strong> or higher.</li>56 <li><a href="https://secure.php.net/">PHP</a> version <strong>5.2.4</strong> or higher.</li> 57 <li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.0</strong> or higher.</li> 58 58 </ul> 59 59 60 60 <h3>Recommendations</h3> 61 61 <ul> 62 <li><a href="http ://php.net/">PHP</a> version <strong>5.6</strong> or higher.</li>63 <li><a href="http ://www.mysql.com/">MySQL</a> version <strong>5.6</strong> or higher.</li>64 <li>The <a href="http ://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>62 <li><a href="https://secure.php.net/">PHP</a> version <strong>5.6</strong> or higher.</li> 63 <li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.6</strong> or higher.</li> 64 <li>The <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li> 65 65 <li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</li> 66 66 </ul> 67 67 -
src/wp-admin/comment.php
197 197 <?php 198 198 /* translators: 1: comment date, 2: comment time */ 199 199 $submitted = sprintf( __( '%1$s at %2$s' ), 200 /* translators: comment date format. See http ://php.net/date */200 /* translators: comment date format. See https://secure.php.net/date */ 201 201 get_comment_date( __( 'Y/m/d' ), $comment ), 202 202 get_comment_date( __( 'g:i a' ), $comment ) 203 203 ); -
src/wp-admin/edit-form-advanced.php
129 129 130 130 } 131 131 132 /* translators: Publish box date format, see http ://php.net/date */132 /* translators: Publish box date format, see https://secure.php.net/date */ 133 133 $scheduled_date = date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ); 134 134 135 135 $messages['post'] = array( -
src/wp-admin/edit-form-comment.php
89 89 90 90 <div class="misc-pub-section curtime misc-pub-curtime"> 91 91 <?php 92 /* translators: Publish box date format, see http ://php.net/date */92 /* translators: Publish box date format, see https://secure.php.net/date */ 93 93 $datef = __( 'M j, Y @ H:i' ); 94 94 ?> 95 95 <span id="timestamp"><?php -
src/wp-admin/edit-tag-form.php
45 45 } 46 46 47 47 /** 48 * Use with caution, see http ://codex.wordpress.org/Function_Reference/wp_reset_vars48 * Use with caution, see https://codex.wordpress.org/Function_Reference/wp_reset_vars 49 49 */ 50 50 wp_reset_vars( array( 'wp_http_referer' ) ); 51 51 -
src/wp-admin/freedoms.php
47 47 48 48 printf( __( 'Every plugin and theme in WordPress.org’s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it’s GPL</a> first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); ?></p> 49 49 50 <p><?php _e( 'Don’t you wish all software came with these freedoms? So do we! For more information, check out the <a href="http ://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>50 <p><?php _e( 'Don’t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p> 51 51 52 52 </div> 53 53 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> -
src/wp-admin/includes/ajax-actions.php
1791 1791 if ( '0000-00-00 00:00:00' == $post->post_date ) { 1792 1792 $time = ''; 1793 1793 } else { 1794 /* translators: date format in table columns, see http ://php.net/date */1794 /* translators: date format in table columns, see https://secure.php.net/date */ 1795 1795 $time = mysql2date(__('Y/m/d'), $post->post_date); 1796 1796 } 1797 1797 -
src/wp-admin/includes/class-wp-comments-list-table.php
717 717 public function column_date( $comment ) { 718 718 /* translators: 1: comment date, 2: comment time */ 719 719 $submitted = sprintf( __( '%1$s at %2$s' ), 720 /* translators: comment date format. See http ://php.net/date */720 /* translators: comment date format. See https://secure.php.net/date */ 721 721 get_comment_date( __( 'Y/m/d' ), $comment ), 722 722 get_comment_date( __( 'g:i a' ), $comment ) 723 723 ); -
src/wp-admin/includes/class-wp-filesystem-base.php
316 316 * 317 317 * From the PHP documentation page for fileperms(). 318 318 * 319 * @link http ://docs.php.net/fileperms319 * @link https://secure.php.net/manual/en/function.fileperms.php 320 320 * 321 321 * @access public 322 322 * @since 2.5.0 … … 384 384 * Converts '-rw-r--r--' to 0644 385 385 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod() 386 386 * 387 * @link http ://docs.php.net/manual/en/function.chmod.php#49614387 * @link https://secure.php.net/manual/en/function.chmod.php#49614 388 388 * 389 389 * @access public 390 390 * @since 2.5.0 -
src/wp-admin/includes/dashboard.php
835 835 } elseif ( date( 'Y-m-d', $time ) == $tomorrow ) { 836 836 $relative = __( 'Tomorrow' ); 837 837 } elseif ( date( 'Y', $time ) !== date( 'Y', current_time( 'timestamp' ) ) ) { 838 /* translators: date and time format for recent posts on the dashboard, from a different calendar year, see http ://php.net/date */838 /* translators: date and time format for recent posts on the dashboard, from a different calendar year, see https://secure.php.net/date */ 839 839 $relative = date_i18n( __( 'M jS Y' ), $time ); 840 840 } else { 841 /* translators: date and time format for recent posts on the dashboard, see http ://php.net/date */841 /* translators: date and time format for recent posts on the dashboard, see https://secure.php.net/date */ 842 842 $relative = date_i18n( __( 'M jS' ), $time ); 843 843 } 844 844 -
src/wp-admin/includes/meta-boxes.php
170 170 </div><!-- .misc-pub-section --> 171 171 172 172 <?php 173 /* translators: Publish box date format, see http ://php.net/date */173 /* translators: Publish box date format, see https://secure.php.net/date */ 174 174 $datef = __( 'M j, Y @ H:i' ); 175 175 if ( 0 != $post->ID ) { 176 176 if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date … … 296 296 297 297 <div id="misc-publishing-actions"> 298 298 <?php 299 /* translators: Publish box date format, see http ://php.net/date */299 /* translators: Publish box date format, see https://secure.php.net/date */ 300 300 $datef = __( 'M j, Y @ H:i' ); 301 301 $stamp = __('Uploaded on: <b>%1$s</b>'); 302 302 $date = date_i18n( $datef, strtotime( $post->post_date ) ); -
src/wp-admin/includes/misc.php
881 881 } elseif ( empty( $saved ) ) { 882 882 $response['wp_autosave'] = array( 'success' => false, 'message' => __( 'Error while saving.' ) ); 883 883 } else { 884 /* translators: draft saved date format, see http ://php.net/date */884 /* translators: draft saved date format, see https://secure.php.net/date */ 885 885 $draft_saved_date_format = __( 'g:i:s a' ); 886 886 /* translators: %s: date and time */ 887 887 $response['wp_autosave'] = array( 'success' => true, 'message' => sprintf( __( 'Draft saved at %s.' ), date_i18n( $draft_saved_date_format ) ) ); -
src/wp-admin/includes/network.php
180 180 /* translators: 1: mod_rewrite, 2: mod_rewrite documentation URL, 3: Google search for mod_rewrite */ 181 181 printf( __( 'If %1$s is disabled, ask your administrator to enable that module, or look at the <a href="%2$s">Apache documentation</a> or <a href="%3$s">elsewhere</a> for help setting it up.' ), 182 182 '<code>mod_rewrite</code>', 183 'http ://httpd.apache.org/docs/mod/mod_rewrite.html',184 'http ://www.google.com/search?q=apache+mod_rewrite'183 'https://httpd.apache.org/docs/mod/mod_rewrite.html', 184 'https://www.google.com/search?q=apache+mod_rewrite' 185 185 ); 186 186 echo '</p></div>'; 187 187 } -
src/wp-admin/includes/schema.php
381 381 $timezone_string = ''; 382 382 $gmt_offset = 0; 383 383 /* translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14) 384 or a valid timezone string (America/New_York). See http ://us3.php.net/manual/en/timezones.php384 or a valid timezone string (America/New_York). See https://secure.php.net/manual/en/timezones.php 385 385 for all timezone strings supported by PHP. 386 386 */ 387 387 $offset_or_tz = _x( '0', 'default GMT offset or timezone string' ); … … 415 415 'default_ping_status' => 'open', 416 416 'default_pingback_flag' => 1, 417 417 'posts_per_page' => 10, 418 /* translators: default date format, see http ://php.net/date */418 /* translators: default date format, see https://secure.php.net/date */ 419 419 'date_format' => __('F j, Y'), 420 /* translators: default time format, see http ://php.net/date */420 /* translators: default time format, see https://secure.php.net/date */ 421 421 'time_format' => __('g:i a'), 422 /* translators: links last updated date format, see http ://php.net/date */422 /* translators: links last updated date format, see https://secure.php.net/date */ 423 423 'links_updated_date_format' => __('F j, Y g:i a'), 424 424 'comment_moderation' => 0, 425 425 'moderation_notify' => 1, -
src/wp-admin/options-discussion.php
195 195 196 196 <?php 197 197 $ratings = array( 198 /* translators: Content suitability rating: http ://bit.ly/89QxZA*/198 /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 199 199 'G' => __('G — Suitable for all audiences'), 200 /* translators: Content suitability rating: http ://bit.ly/89QxZA*/200 /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 201 201 'PG' => __('PG — Possibly offensive, usually for audiences 13 and above'), 202 /* translators: Content suitability rating: http ://bit.ly/89QxZA*/202 /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 203 203 'R' => __('R — Intended for adult audiences above 17'), 204 /* translators: Content suitability rating: http ://bit.ly/89QxZA*/204 /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 205 205 'X' => __('X — Even more mature than above') 206 206 ); 207 207 foreach ($ratings as $key => $rating) : -
src/wp-admin/options-general.php
17 17 18 18 $title = __('General Settings'); 19 19 $parent_file = 'options-general.php'; 20 /* translators: date and time format for exact current time, mainly about timezones, see http ://php.net/date */20 /* translators: date and time format for exact current time, mainly about timezones, see https://secure.php.net/date */ 21 21 $timezone_format = _x('Y-m-d H:i:s', 'timezone date format'); 22 22 23 23 add_action('admin_head', 'options_general_add_js'); -
src/wp-admin/theme-editor.php
112 112 $newcontent = wp_unslash( $_POST['newcontent'] ); 113 113 $location = 'theme-editor.php?file=' . urlencode( $relative_file ) . '&theme=' . urlencode( $stylesheet ) . '&scrollto=' . $scrollto; 114 114 if ( is_writeable( $file ) ) { 115 // is_writable() not always reliable, check return value. see comments @ http ://uk.php.net/is_writable115 // is_writable() not always reliable, check return value. see comments @ https://secure.php.net/is_writable 116 116 $f = fopen( $file, 'w+' ); 117 117 if ( $f !== false ) { 118 118 fwrite( $f, $newcontent ); -
src/wp-includes/class-http.php
700 700 * 701 701 * Based off the HTTP http_encoding_dechunk function. 702 702 * 703 * @link http ://tools.ietf.org/html/rfc2616#section-19.4.6 Process for chunked decoding.703 * @link https://tools.ietf.org/html/rfc2616#section-19.4.6 Process for chunked decoding. 704 704 * 705 705 * @access public 706 706 * @since 2.7.0 -
src/wp-includes/class-requests.php
71 71 /** 72 72 * PATCH method 73 73 * 74 * @link http ://tools.ietf.org/html/rfc578974 * @link https://tools.ietf.org/html/rfc5789 75 75 * @var string 76 76 */ 77 77 const PATCH = 'PATCH'; … … 287 287 * Note: Unlike {@see post} and {@see put}, `$headers` is required, as the 288 288 * specification recommends that should send an ETag 289 289 * 290 * @link http ://tools.ietf.org/html/rfc5789290 * @link https://tools.ietf.org/html/rfc5789 291 291 */ 292 292 public static function patch($url, $headers, $data = array(), $options = array()) { 293 293 return self::request($url, $headers, $data, self::PATCH, $options); … … 742 742 /** 743 743 * Decoded a chunked body as per RFC 2616 744 744 * 745 * @see http ://tools.ietf.org/html/rfc2616#section-3.6.1745 * @see https://tools.ietf.org/html/rfc2616#section-3.6.1 746 746 * @param string $data Chunked body 747 747 * @return string Decoded body 748 748 */ … … 848 848 * Warning: Magic numbers within. Due to the potential different formats that the compressed 849 849 * data may be returned in, some "magic offsets" are needed to ensure proper decompression 850 850 * takes place. For a simple progmatic way to determine the magic offset in use, see: 851 * http ://core.trac.wordpress.org/ticket/18273851 * https://core.trac.wordpress.org/ticket/18273 852 852 * 853 853 * @since 2.8.1 854 * @link http ://core.trac.wordpress.org/ticket/18273855 * @link http ://au2.php.net/manual/en/function.gzinflate.php#70875856 * @link http ://au2.php.net/manual/en/function.gzinflate.php#77336854 * @link https://core.trac.wordpress.org/ticket/18273 855 * @link https://secure.php.net/manual/en/function.gzinflate.php#70875 856 * @link https://secure.php.net/manual/en/function.gzinflate.php#77336 857 857 * 858 858 * @param string $gzData String to decompress. 859 859 * @return string|bool False on failure. … … 891 891 // java.util.zip.Deflater, Ruby’s Zlib::Deflate, and .NET's 892 892 // System.IO.Compression.DeflateStream. 893 893 // 894 // See http ://decompres.blogspot.com/ for a quick explanation of this894 // See https://decompres.blogspot.com/ for a quick explanation of this 895 895 // data type 896 896 $huffman_encoded = false; 897 897 -
src/wp-includes/class-wp-http-encoding.php
88 88 * 89 89 * @since 2.8.1 90 90 * @link https://core.trac.wordpress.org/ticket/18273 91 * @link http ://au2.php.net/manual/en/function.gzinflate.php#7087592 * @link http ://au2.php.net/manual/en/function.gzinflate.php#7733691 * @link https://secure.php.net/manual/en/function.gzinflate.php#70875 92 * @link https://secure.php.net/manual/en/function.gzinflate.php#77336 93 93 * 94 94 * @static 95 95 * -
src/wp-includes/class-wp-xmlrpc-server.php
1152 1152 * 1153 1153 * @since 3.4.0 1154 1154 * 1155 * @link http ://en.wikipedia.org/wiki/RSS_enclosure for information on RSS enclosures.1155 * @link https://en.wikipedia.org/wiki/RSS_enclosure for information on RSS enclosures. 1156 1156 * 1157 1157 * @param array $args { 1158 1158 * Method arguments. Note: top-level arguments must be ordered as documented. … … 4298 4298 } 4299 4299 4300 4300 /* Blogger API functions. 4301 * specs on http://plant.blogger.com/api and http ://groups.yahoo.com/group/bloggerDev/4301 * specs on http://plant.blogger.com/api and https://groups.yahoo.com/group/bloggerDev/ 4302 4302 */ 4303 4303 4304 4304 /** -
src/wp-includes/comment.php
2543 2543 * which reports that the pingback is already registered. 2544 2544 * 2545 2545 * @since 3.5.1 2546 * @link http ://www.hixie.ch/specs/pingback/pingback#TOC32546 * @link https://www.hixie.ch/specs/pingback/pingback#TOC3 2547 2547 * 2548 2548 * @param IXR_Error $ixr_error 2549 2549 * @return IXR_Error -
src/wp-includes/compat.php
421 421 * 422 422 * Compatibility shim for PHP <5.4 423 423 * 424 * @link http ://php.net/jsonserializable424 * @link https://secure.php.net/jsonserializable 425 425 * 426 426 * @since 4.4.0 427 427 */ -
src/wp-includes/default-constants.php
98 98 * For example, MONTH_IN_SECONDS wrongly assumes every month has 30 days and 99 99 * YEAR_IN_SECONDS does not take leap years into account. 100 100 * 101 * If you need more accuracy please consider using the DateTime class (http ://php.net/manual/class.datetime.php).101 * If you need more accuracy please consider using the DateTime class (https://secure.php.net/manual/en/class.datetime.php). 102 102 * 103 103 * @since 3.5.0 104 104 * @since 4.4.0 Introduced `MONTH_IN_SECONDS`. -
src/wp-includes/deprecated.php
2818 2818 * @deprecated 3.4.0 Use error_log() 2819 2819 * @see error_log() 2820 2820 * 2821 * @link http ://www.php.net/manual/en/function.error-log.php2821 * @link https://secure.php.net/manual/en/function.error-log.php 2822 2822 * 2823 2823 * @param string $filename File name. 2824 2824 * @param string $mode Type of access you required to the stream. … … 2836 2836 * @deprecated 3.4.0 Use error_log() 2837 2837 * @see error_log() 2838 2838 * 2839 * @link http ://www.php.net/manual/en/function.error-log.php2839 * @link https://secure.php.net/manual/en/function.error-log.php 2840 2840 * 2841 2841 * @param mixed $fp Unused. 2842 2842 * @param string $string Message to log. … … 2854 2854 * @deprecated 3.4.0 Use error_log() 2855 2855 * @see error_log() 2856 2856 * 2857 * @link http ://www.php.net/manual/en/function.error-log.php2857 * @link https://secure.php.net/manual/en/function.error-log.php 2858 2858 * 2859 2859 * @param mixed $fp Unused. 2860 2860 */ -
src/wp-includes/feed-atom-comments.php
91 91 <?php else : // post pass ?> 92 92 <content type="html" xml:base="<?php comment_link(); ?>"><![CDATA[<?php comment_text(); ?>]]></content> 93 93 <?php endif; // post pass 94 // Return comment threading information (http ://www.ietf.org/rfc/rfc4685.txt)94 // Return comment threading information (https://www.ietf.org/rfc/rfc4685.txt) 95 95 if ( $comment->comment_parent == 0 ) : // This comment is top level ?> 96 96 <thr:in-reply-to ref="<?php the_guid(); ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" /> 97 97 <?php else : // This comment is in reply to another comment -
src/wp-includes/formatting.php
2002 2002 * Adds slashes to escape strings. 2003 2003 * 2004 2004 * Slashes will first be removed if magic_quotes_gpc is set, see {@link 2005 * http ://www.php.net/magic_quotes} for more details.2005 * https://secure.php.net/magic_quotes} for more details. 2006 2006 * 2007 2007 * @since 0.71 2008 2008 * … … 2676 2676 * 2677 2677 * @since 1.5.0 2678 2678 * 2679 * @param string $date_string Date and time in ISO 8601 format {@link http ://en.wikipedia.org/wiki/ISO_8601}.2679 * @param string $date_string Date and time in ISO 8601 format {@link https://en.wikipedia.org/wiki/ISO_8601}. 2680 2680 * @param string $timezone Optional. If set to GMT returns the time minus gmt_offset. Default is 'user'. 2681 2681 * @return string The date and time in MySQL DateTime format - Y-m-d H:i:s. 2682 2682 */ … … 3473 3473 /** 3474 3474 * Convert entities, while preserving already-encoded entities. 3475 3475 * 3476 * @link http ://www.php.net/htmlentities Borrowed from the PHP Manual user notes.3476 * @link https://secure.php.net/htmlentities Borrowed from the PHP Manual user notes. 3477 3477 * 3478 3478 * @since 1.2.2 3479 3479 * … … 3915 3915 /** 3916 3916 * Parses a string into variables to be stored in an array. 3917 3917 * 3918 * Uses {@link http ://www.php.net/parse_str parse_str()} and stripslashes if3919 * {@link http ://www.php.net/magic_quotes magic_quotes_gpc} is on.3918 * Uses {@link https://secure.php.net/parse_str parse_str()} and stripslashes if 3919 * {@link https://secure.php.net/magic_quotes magic_quotes_gpc} is on. 3920 3920 * 3921 3921 * @since 2.2.1 3922 3922 * … … 3969 3969 * WordPress implementation of PHP sprintf() with filters. 3970 3970 * 3971 3971 * @since 2.5.0 3972 * @link http ://www.php.net/sprintf3972 * @link https://secure.php.net/sprintf 3973 3973 * 3974 3974 * @param string $pattern The string which formatted args are inserted. 3975 3975 * @param mixed $args ,... Arguments to be formatted into the $pattern string. -
src/wp-includes/functions.php
675 675 * @since 2.3.0 676 676 * 677 677 * @see _http_build_query() Used to build the query 678 * @link http ://us2.php.net/manual/en/function.http-build-query.php for more on what678 * @link https://secure.php.net/manual/en/function.http-build-query.php for more on what 679 679 * http_build_query() does. 680 680 * 681 681 * @param array $data URL-encode key/value pairs. … … 691 691 * @since 3.2.0 692 692 * @access private 693 693 * 694 * @see http ://us1.php.net/manual/en/function.http-build-query.php694 * @see https://secure.php.net/manual/en/function.http-build-query.php 695 695 * 696 696 * @param array|object $data An array or object of data. Converted to array. 697 697 * @param string $prefix Optional. Numeric index. If set, start parameter numbering with it. … … 1777 1777 * 1778 1778 * @since 2.8.0 1779 1779 * 1780 * @see http ://bugs.php.net/bug.php?id=276091781 * @see http ://bugs.php.net/bug.php?id=309311780 * @see https://bugs.php.net/bug.php?id=27609 1781 * @see https://bugs.php.net/bug.php?id=30931 1782 1782 * 1783 1783 * @param string $path Windows path to check for write-ability. 1784 1784 * @return bool Whether the path is writable. … … 4727 4727 * 4728 4728 * @since 3.0.0 4729 4729 * 4730 * @see http ://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx4731 * @see http ://src.chromium.org/viewvc/chrome?view=rev&revision=69854730 * @see https://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx 4731 * @see https://src.chromium.org/viewvc/chrome?view=rev&revision=6985 4732 4732 */ 4733 4733 function send_nosniff_header() { 4734 4734 @header( 'X-Content-Type-Options: nosniff' ); -
src/wp-includes/functions.wp-styles.php
100 100 * Register a CSS stylesheet. 101 101 * 102 102 * @see WP_Dependencies::add() 103 * @link http ://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types.103 * @link https://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types. 104 104 * 105 105 * @since 2.6.0 106 106 * @since 4.3.0 A return value was added. … … 145 145 * 146 146 * @see WP_Dependencies::add() 147 147 * @see WP_Dependencies::enqueue() 148 * @link http ://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types.148 * @link https://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types. 149 149 * 150 150 * @since 2.6.0 151 151 * -
src/wp-includes/general-template.php
2689 2689 /** 2690 2690 * Display the link to the Windows Live Writer manifest file. 2691 2691 * 2692 * @link http ://msdn.microsoft.com/en-us/library/bb463265.aspx2692 * @link https://msdn.microsoft.com/en-us/library/bb463265.aspx 2693 2693 * @since 2.3.1 2694 2694 */ 2695 2695 function wlwmanifest_link() { … … 2735 2735 * 2736 2736 * @since 4.3.0 2737 2737 * 2738 * @link http ://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#rel-icon HTML5 specification link icon.2738 * @link https://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#rel-icon HTML5 specification link icon. 2739 2739 */ 2740 2740 function wp_site_icon() { 2741 2741 if ( ! has_site_icon() && ! is_customize_preview() ) { -
src/wp-includes/locale.php
184 184 $this->meridiem['PM'] = __('PM'); 185 185 186 186 // Numbers formatting 187 // See http ://php.net/number_format187 // See https://secure.php.net/number_format 188 188 189 /* translators: $thousands_sep argument for http ://php.net/number_format, default is , */189 /* translators: $thousands_sep argument for https://secure.php.net/number_format, default is , */ 190 190 $thousands_sep = __( 'number_format_thousands_sep' ); 191 191 192 192 if ( version_compare( PHP_VERSION, '5.4', '>=' ) ) { … … 199 199 200 200 $this->number_format['thousands_sep'] = ( 'number_format_thousands_sep' === $thousands_sep ) ? ',' : $thousands_sep; 201 201 202 /* translators: $dec_point argument for http ://php.net/number_format, default is . */202 /* translators: $dec_point argument for https://secure.php.net/number_format, default is . */ 203 203 $decimal_point = __( 'number_format_decimal_point' ); 204 204 205 205 $this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point; … … 385 385 * @since 3.6.0 386 386 */ 387 387 public function _strings_for_pot() { 388 /* translators: localized date format, see http ://php.net/date */388 /* translators: localized date format, see https://secure.php.net/date */ 389 389 __( 'F j, Y' ); 390 /* translators: localized time format, see http ://php.net/date */390 /* translators: localized time format, see https://secure.php.net/date */ 391 391 __( 'g:i a' ); 392 /* translators: localized date and time format, see http ://php.net/date */392 /* translators: localized date and time format, see https://secure.php.net/date */ 393 393 __( 'F j, Y g:i a' ); 394 394 } 395 395 } -
src/wp-includes/plugin.php
8 8 * To hook methods, you'll need to pass an array one of two ways. 9 9 * 10 10 * Any of the syntaxes explained in the PHP documentation for the 11 * {@link http ://us2.php.net/manual/en/language.pseudo-types.php#language.types.callback 'callback'}11 * {@link https://secure.php.net/manual/en/language.pseudo-types.php#language.types.callback 'callback'} 12 12 * type are valid. 13 13 * 14 14 * Also see the {@link https://codex.wordpress.org/Plugin_API Plugin API} for -
src/wp-includes/post-template.php
1622 1622 if ( !in_array( $revision->post_type, array( 'post', 'page', 'revision' ) ) ) 1623 1623 return false; 1624 1624 1625 /* translators: revision date format, see http ://php.net/date */1625 /* translators: revision date format, see https://secure.php.net/date */ 1626 1626 $datef = _x( 'F j, Y @ H:i:s', 'revision date format' ); 1627 1627 /* translators: 1: date */ 1628 1628 $autosavef = _x( '%1$s [Autosave]', 'post revision title extra' ); … … 1658 1658 return false; 1659 1659 1660 1660 $author = get_the_author_meta( 'display_name', $revision->post_author ); 1661 /* translators: revision date format, see http ://php.net/date */1661 /* translators: revision date format, see https://secure.php.net/date */ 1662 1662 $datef = _x( 'F j, Y @ H:i:s', 'revision date format' ); 1663 1663 1664 1664 $gravatar = get_avatar( $revision->post_author, 24 ); -
src/wp-includes/Requests/Exception/HTTP/418.php
2 2 /** 3 3 * Exception for 418 I'm A Teapot responses 4 4 * 5 * @see http ://tools.ietf.org/html/rfc23245 * @see https://tools.ietf.org/html/rfc2324 6 6 * @package Requests 7 7 */ 8 8 … … 9 9 /** 10 10 * Exception for 418 I'm A Teapot responses 11 11 * 12 * @see http ://tools.ietf.org/html/rfc232412 * @see https://tools.ietf.org/html/rfc2324 13 13 * @package Requests 14 14 */ 15 15 class Requests_Exception_HTTP_418 extends Requests_Exception_HTTP { -
src/wp-includes/Requests/Exception/HTTP/428.php
2 2 /** 3 3 * Exception for 428 Precondition Required responses 4 4 * 5 * @see http ://tools.ietf.org/html/rfc65855 * @see https://tools.ietf.org/html/rfc6585 6 6 * @package Requests 7 7 */ 8 8 … … 9 9 /** 10 10 * Exception for 428 Precondition Required responses 11 11 * 12 * @see http ://tools.ietf.org/html/rfc658512 * @see https://tools.ietf.org/html/rfc6585 13 13 * @package Requests 14 14 */ 15 15 class Requests_Exception_HTTP_428 extends Requests_Exception_HTTP { -
src/wp-includes/Requests/Exception/HTTP/429.php
2 2 /** 3 3 * Exception for 429 Too Many Requests responses 4 4 * 5 * @see http ://tools.ietf.org/html/draft-nottingham-http-new-status-045 * @see https://tools.ietf.org/html/draft-nottingham-http-new-status-04 6 6 * @package Requests 7 7 */ 8 8 … … 9 9 /** 10 10 * Exception for 429 Too Many Requests responses 11 11 * 12 * @see http ://tools.ietf.org/html/draft-nottingham-http-new-status-0412 * @see https://tools.ietf.org/html/draft-nottingham-http-new-status-04 13 13 * @package Requests 14 14 */ 15 15 class Requests_Exception_HTTP_429 extends Requests_Exception_HTTP { -
src/wp-includes/Requests/Exception/HTTP/431.php
2 2 /** 3 3 * Exception for 431 Request Header Fields Too Large responses 4 4 * 5 * @see http ://tools.ietf.org/html/rfc65855 * @see https://tools.ietf.org/html/rfc6585 6 6 * @package Requests 7 7 */ 8 8 … … 9 9 /** 10 10 * Exception for 431 Request Header Fields Too Large responses 11 11 * 12 * @see http ://tools.ietf.org/html/rfc658512 * @see https://tools.ietf.org/html/rfc6585 13 13 * @package Requests 14 14 */ 15 15 class Requests_Exception_HTTP_431 extends Requests_Exception_HTTP { -
src/wp-includes/Requests/Exception/HTTP/511.php
2 2 /** 3 3 * Exception for 511 Network Authentication Required responses 4 4 * 5 * @see http ://tools.ietf.org/html/rfc65855 * @see https://tools.ietf.org/html/rfc6585 6 6 * @package Requests 7 7 */ 8 8 … … 9 9 /** 10 10 * Exception for 511 Network Authentication Required responses 11 11 * 12 * @see http ://tools.ietf.org/html/rfc658512 * @see https://tools.ietf.org/html/rfc6585 13 13 * @package Requests 14 14 */ 15 15 class Requests_Exception_HTTP_511 extends Requests_Exception_HTTP { -
src/wp-includes/Requests/IDNAEncoder.php
7 7 * 8 8 * @package Requests 9 9 * @subpackage Utilities 10 * @see http ://tools.ietf.org/html/rfc3490 IDNA specification11 * @see http ://tools.ietf.org/html/rfc3492 Punycode/Bootstrap specification10 * @see https://tools.ietf.org/html/rfc3490 IDNA specification 11 * @see https://tools.ietf.org/html/rfc3492 Punycode/Bootstrap specification 12 12 */ 13 13 class Requests_IDNAEncoder { 14 14 /** 15 15 * ACE prefix used for IDNA 16 16 * 17 * @see http ://tools.ietf.org/html/rfc3490#section-517 * @see https://tools.ietf.org/html/rfc3490#section-5 18 18 * @var string 19 19 */ 20 20 const ACE_PREFIX = 'xn--'; … … 22 22 /**#@+ 23 23 * Bootstrap constant for Punycode 24 24 * 25 * @see http ://tools.ietf.org/html/rfc3492#section-525 * @see https://tools.ietf.org/html/rfc3492#section-5 26 26 * @var int 27 27 */ 28 28 const BOOTSTRAP_BASE = 36; … … 333 333 /** 334 334 * Convert a digit to its respective character 335 335 * 336 * @see http ://tools.ietf.org/html/rfc3492#section-5336 * @see https://tools.ietf.org/html/rfc3492#section-5 337 337 * @throws Requests_Exception On invalid digit (`idna.invalid_digit`) 338 338 * 339 339 * @param int $digit Digit in the range 0-35 … … 353 353 /** 354 354 * Adapt the bias 355 355 * 356 * @see http ://tools.ietf.org/html/rfc3492#section-6.1356 * @see https://tools.ietf.org/html/rfc3492#section-6.1 357 357 * @param int $delta 358 358 * @param int $numpoints 359 359 * @param bool $firsttime -
src/wp-includes/Requests/Session.php
175 175 * Note: Unlike {@see post} and {@see put}, `$headers` is required, as the 176 176 * specification recommends that should send an ETag 177 177 * 178 * @link http ://tools.ietf.org/html/rfc5789178 * @link https://tools.ietf.org/html/rfc5789 179 179 */ 180 180 public function patch($url, $headers, $data = array(), $options = array()) { 181 181 return $this->request($url, $headers, $data, Requests::PATCH, $options); -
src/wp-includes/Requests/SSL.php
22 22 * names, leading things like 'https://www.github.com/' to be invalid. 23 23 * Instead 24 24 * 25 * @see http ://tools.ietf.org/html/rfc2818#section-3.1 RFC2818, Section 3.125 * @see https://tools.ietf.org/html/rfc2818#section-3.1 RFC2818, Section 3.1 26 26 * 27 27 * @throws Requests_Exception On not obtaining a match for the host (`fsockopen.ssl.no_match`) 28 28 * @param string $host Host name to verify against -
src/wp-includes/Requests/Transport/cURL.php
33 33 /** 34 34 * Information on the current request 35 35 * 36 * @var array cURL information array, see {@see http ://php.net/curl_getinfo}36 * @var array cURL information array, see {@see https://secure.php.net/curl_getinfo} 37 37 */ 38 38 public $info; 39 39 … … 481 481 * Format a URL given GET data 482 482 * 483 483 * @param string $url 484 * @param array|object $data Data to build query using, see {@see http ://php.net/http_build_query}484 * @param array|object $data Data to build query using, see {@see https://secure.php.net/http_build_query} 485 485 * @return string URL with data 486 486 */ 487 487 protected static function format_get($url, $data) { -
src/wp-includes/Requests/Transport/fsockopen.php
30 30 /** 31 31 * Stream metadata 32 32 * 33 * @var array Associative array of properties, see {@see http ://php.net/stream_get_meta_data}33 * @var array Associative array of properties, see {@see https://secure.php.net/stream_get_meta_data} 34 34 */ 35 35 public $info; 36 36 … … 341 341 * Format a URL given GET data 342 342 * 343 343 * @param array $url_parts 344 * @param array|object $data Data to build query using, see {@see http ://php.net/http_build_query}344 * @param array|object $data Data to build query using, see {@see https://secure.php.net/http_build_query} 345 345 * @return string URL with data 346 346 */ 347 347 protected static function format_get($url_parts, $data) { … … 391 391 * names, leading things like 'https://www.github.com/' to be invalid. 392 392 * Instead 393 393 * 394 * @see http ://tools.ietf.org/html/rfc2818#section-3.1 RFC2818, Section 3.1394 * @see https://tools.ietf.org/html/rfc2818#section-3.1 RFC2818, Section 3.1 395 395 * 396 396 * @throws Requests_Exception On failure to connect via TLS (`fsockopen.ssl.connect_error`) 397 397 * @throws Requests_Exception On not obtaining a match for the host (`fsockopen.ssl.no_match`) -
src/wp-includes/rest-api/class-wp-rest-request.php
183 183 * 184 184 * @link http://stackoverflow.com/q/18185366 185 185 * @link http://wiki.nginx.org/Pitfalls#Missing_.28disappearing.29_HTTP_headers 186 * @link http ://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers186 * @link https://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers 187 187 * 188 188 * @since 4.4.0 189 189 * @access public -
src/wp-includes/rest-api/class-wp-rest-response.php
51 51 * @since 4.4.0 52 52 * @access public 53 53 * 54 * @link http ://tools.ietf.org/html/rfc598855 * @link http ://www.iana.org/assignments/link-relations/link-relations.xml54 * @link https://tools.ietf.org/html/rfc5988 55 * @link https://www.iana.org/assignments/link-relations/link-relations.xml 56 56 * 57 57 * @param string $rel Link relation. Either an IANA registered type, 58 58 * or an absolute URL. … … 147 147 * @since 4.4.0 148 148 * @access public 149 149 * 150 * @link http ://tools.ietf.org/html/rfc5988151 * @link http ://www.iana.org/assignments/link-relations/link-relations.xml150 * @link https://tools.ietf.org/html/rfc5988 151 * @link https://www.iana.org/assignments/link-relations/link-relations.xml 152 152 * 153 153 * @param string $rel Link relation. Either an IANA registered type, or an absolute URL. 154 154 * @param string $link Target IRI for the link. -
src/wp-includes/rest-api/class-wp-rest-server.php
230 230 /* 231 231 * Mitigate possible JSONP Flash attacks. 232 232 * 233 * http ://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/233 * https://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/ 234 234 */ 235 235 $this->send_header( 'X-Content-Type-Options', 'nosniff' ); 236 236 $this->send_header( 'Access-Control-Expose-Headers', 'X-WP-Total, X-WP-TotalPages' ); … … 389 389 390 390 if ( $jsonp_callback ) { 391 391 // Prepend '/**/' to mitigate possible JSONP Flash attacks 392 // http ://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/392 // https://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/ 393 393 echo '/**/' . $jsonp_callback . '(' . $result . ')'; 394 394 } else { 395 395 echo $result; -
src/wp-includes/rss.php
63 63 # if PHP xml isn't compiled in, die 64 64 # 65 65 if ( !function_exists('xml_parser_create') ) 66 trigger_error( "Failed to load PHP's XML Extension. http ://www.php.net/manual/en/ref.xml.php" );66 trigger_error( "Failed to load PHP's XML Extension. https://secure.php.net/manual/en/ref.xml.php" ); 67 67 68 68 $parser = @xml_parser_create(); 69 69 70 70 if ( !is_resource($parser) ) 71 trigger_error( "Failed to create an instance of PHP's XML parser. http ://www.php.net/manual/en/ref.xml.php");71 trigger_error( "Failed to create an instance of PHP's XML parser. https://secure.php.net/manual/en/ref.xml.php"); 72 72 73 73 $this->parser = $parser; 74 74 -
src/wp-includes/theme.php
842 842 * Retrieve theme modification value for the current theme. 843 843 * 844 844 * If the modification name does not exist, then the $default will be passed 845 * through {@link http ://php.net/sprintf sprintf()} PHP function with the first845 * through {@link https://secure.php.net/sprintf sprintf()} PHP function with the first 846 846 * string the template directory URI and the second string the stylesheet 847 847 * directory URI. 848 848 * -
src/wp-includes/wp-db.php
1254 1254 * Does not support sign, padding, alignment, width or precision specifiers. 1255 1255 * Does not support argument numbering/swapping. 1256 1256 * 1257 * May be called like {@link http ://php.net/sprintf sprintf()} or like {@link http://php.net/vsprintf vsprintf()}.1257 * May be called like {@link https://secure.php.net/sprintf sprintf()} or like {@link https://secure.php.net/vsprintf vsprintf()}. 1258 1258 * 1259 1259 * Both %d and %s should be left unquoted in the query string. 1260 1260 * … … 1261 1261 * wpdb::prepare( "SELECT * FROM `table` WHERE `column` = %s AND `field` = %d", 'foo', 1337 ) 1262 1262 * wpdb::prepare( "SELECT DATE_FORMAT(`field`, '%%c') FROM `table` WHERE `column` = %s", 'foo' ); 1263 1263 * 1264 * @link http ://php.net/sprintf Description of syntax.1264 * @link https://secure.php.net/sprintf Description of syntax. 1265 1265 * @since 2.3.0 1266 1266 * 1267 1267 * @param string $query Query statement with sprintf()-like placeholders 1268 1268 * @param array|mixed $args The array of variables to substitute into the query's placeholders if being called like 1269 * {@link http ://php.net/vsprintf vsprintf()}, or the first variable to substitute into the query's placeholders if1270 * being called like {@link http ://php.net/sprintf sprintf()}.1269 * {@link https://secure.php.net/vsprintf vsprintf()}, or the first variable to substitute into the query's placeholders if 1270 * being called like {@link https://secure.php.net/sprintf sprintf()}. 1271 1271 * @param mixed $args,... further variables to substitute into the query's placeholders if being called like 1272 * {@link http ://php.net/sprintf sprintf()}.1272 * {@link https://secure.php.net/sprintf sprintf()}. 1273 1273 * @return string|void Sanitized query string, if there is a query to prepare. 1274 1274 */ 1275 1275 public function prepare( $query, $args ) { -
tools/i18n/not-gettexted.php
6 6 * @package wordpress-i18n 7 7 * @subpackage tools 8 8 */ 9 // see: http ://php.net/tokenizer9 // see: https://secure.php.net/tokenizer 10 10 if ( ! defined( 'T_ML_COMMENT' ) ) 11 11 define( 'T_ML_COMMENT', T_COMMENT ); 12 12 else -
tools/i18n/t/data/not-gettexted-0-result.php
8 8 require_once( dirname(__FILE__) . '/wp-includes/classes.php'); 9 9 require_once( dirname(__FILE__) . '/wp-includes/functions.php'); 10 10 require_once( dirname(__FILE__) . '/wp-includes/plugin.php'); 11 wp_die( sprintf(/*WP_I18N_CONFIG*/'Translation: There doesn\'t seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href=\'http ://codex.wordpress.org/Editing_wp-config.php\'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn\'t work for all server setups. The safest way is to manually create the file.</p><p><a href=\'%s\' class=\'button\'>Create a Configuration File</a>' /*/WP_I18N_CONFIG*/, $path.'setup-config.php'), /*WP_I18N_ERROR*/ 'Translation: WordPress › Error' /*/WP_I18N_ERROR*/);11 wp_die( sprintf(/*WP_I18N_CONFIG*/'Translation: There doesn\'t seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href=\'https://codex.wordpress.org/Editing_wp-config.php\'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn\'t work for all server setups. The safest way is to manually create the file.</p><p><a href=\'%s\' class=\'button\'>Create a Configuration File</a>' /*/WP_I18N_CONFIG*/, $path.'setup-config.php'), /*WP_I18N_ERROR*/ 'Translation: WordPress › Error' /*/WP_I18N_ERROR*/); 12 12 } 13 13 14 14 $wp_did_header = true; -
tools/i18n/t/data/not-gettexted-0.php
8 8 require_once( dirname(__FILE__) . '/wp-includes/classes.php'); 9 9 require_once( dirname(__FILE__) . '/wp-includes/functions.php'); 10 10 require_once( dirname(__FILE__) . '/wp-includes/plugin.php'); 11 wp_die( sprintf(/*WP_I18N_CONFIG*/" There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http ://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%s' class='button'>Create a Configuration File</a>" /*/WP_I18N_CONFIG*/, $path.'setup-config.php'), /*WP_I18N_ERROR*/ "WordPress › Error" /*/WP_I18N_ERROR*/);11 wp_die( sprintf(/*WP_I18N_CONFIG*/" There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='https://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%s' class='button'>Create a Configuration File</a>" /*/WP_I18N_CONFIG*/, $path.'setup-config.php'), /*WP_I18N_ERROR*/ "WordPress › Error" /*/WP_I18N_ERROR*/); 12 12 } 13 13 14 14 $wp_did_header = true; -
tools/i18n/t/ExtractTest.php
205 205 function test_find_function_calls_with_url_in_comment() { 206 206 $this->assertEquals( array( array( 207 207 'name' => '__', 'args' => array( 'F j, Y g:i a' ), 'line' => 3, 208 'comment' => 'translators: localized date and time format, see http ://php.net/date'208 'comment' => 'translators: localized date and time format, see https://secure.php.net/date' 209 209 ) ), 210 210 $this->extractor->find_function_calls( array( '__' ), 211 211 "<?php 212 /* translators: localized date and time format, see http ://php.net/date */212 /* translators: localized date and time format, see https://secure.php.net/date */ 213 213 __( 'F j, Y g:i a' );" 214 214 ) 215 215 );