<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[32547] trunk/src/wp-includes: Add missing doc blocks to `class-wp-theme.php`.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/32547">32547</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/32547","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>wonderboymusic</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-05-22 17:30:44 +0000 (Fri, 22 May 2015)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Add missing doc blocks to `class-wp-theme.php`.
See <a href="https://core.trac.wordpress.org/ticket/32444">#32444</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesclasswpthemephp">trunk/src/wp-includes/class-wp-theme.php</a></li>
<li><a href="#trunksrcwpincludescommentphp">trunk/src/wp-includes/comment.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesclasswpthemephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-theme.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-theme.php 2015-05-22 06:17:16 UTC (rev 32546)
+++ trunk/src/wp-includes/class-wp-theme.php 2015-05-22 17:30:44 UTC (rev 32547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,6 +49,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Renamed theme tags.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @static
+ * @access private
+ * @var array
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private static $tag_map = array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'fixed-width' => 'fixed-layout',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -83,6 +87,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Header name from the theme's style.css after being translated.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Cached due to sorting functions running over the translated name.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @access private
+ * @var string
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private $name_translated;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -153,6 +160,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Default is false. Can be set with the wp_cache_themes_persistently filter.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @static
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><span class="cx" style="display: block; padding: 0 10px"> * @var bool
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -163,6 +171,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * By default the bucket is not cached, so this value is useless.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @static
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><span class="cx" style="display: block; padding: 0 10px"> * @var bool
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -171,6 +180,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Constructor for WP_Theme.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global array $wp_theme_directories
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $theme_dir Directory of the theme within the theme_root.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $theme_root Theme root.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_Error|null $_child If this theme is a parent theme, the child may be passed for validation purposes.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -310,6 +321,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * __isset() magic method for properties formerly returned by current_theme_info()
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @staticvar array $properties
+ *
+ * @return bool
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function __isset( $offset ) {
</span><span class="cx" style="display: block; padding: 0 10px"> static $properties = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -322,6 +337,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * __get() magic method for properties formerly returned by current_theme_info()
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @return mixed
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function __get( $offset ) {
</span><span class="cx" style="display: block; padding: 0 10px"> switch ( $offset ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -361,16 +378,26 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Method to implement ArrayAccess for keys formerly returned by get_themes()
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param mixed $offset
+ * @param mixed $value
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function offsetSet( $offset, $value ) {}
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Method to implement ArrayAccess for keys formerly returned by get_themes()
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param mixed $offset
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function offsetUnset( $offset ) {}
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Method to implement ArrayAccess for keys formerly returned by get_themes()
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @staticvar array $keys
+ *
+ * @param mixed $offset
+ * @return bool
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function offsetExists( $offset ) {
</span><span class="cx" style="display: block; padding: 0 10px"> static $keys = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -391,6 +418,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * untranslated for back compatibility. This means that ['Name'] is not ideal,
</span><span class="cx" style="display: block; padding: 0 10px"> * and care should be taken to use $theme->display('Name') to get a properly
</span><span class="cx" style="display: block; padding: 0 10px"> * translated header.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param mixed $offset
+ * @return mixed
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function offsetGet( $offset ) {
</span><span class="cx" style="display: block; padding: 0 10px"> switch ( $offset ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -443,7 +473,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return WP_Error|bool WP_Error if there are errors, or false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return WP_Error|false WP_Error if there are errors, or false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function errors() {
</span><span class="cx" style="display: block; padding: 0 10px"> return is_wp_error( $this->errors ) ? $this->errors : false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -470,7 +500,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return WP_Theme|bool Parent theme, or false if the current theme is not a child theme.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return WP_Theme|false Parent theme, or false if the current theme is not a child theme.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function parent() {
</span><span class="cx" style="display: block; padding: 0 10px"> return isset( $this->parent ) ? $this->parent : false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -481,8 +511,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Cache entries keyed by the theme and the type of data.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 3.4.0
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 3.4.0
</del><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $key Type of data to store (theme, screenshot, headers, page_templates)
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $data Data to store
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -497,8 +527,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Cache entries are keyed by the theme and the type of data.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 3.4.0
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 3.4.0
</del><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $key Type of data to retrieve (theme, screenshot, headers, page_templates)
</span><span class="cx" style="display: block; padding: 0 10px"> * @return mixed Retrieved data
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -510,8 +540,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Clears the cache for the theme.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 3.4.0
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 3.4.0
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function cache_delete() {
</span><span class="cx" style="display: block; padding: 0 10px"> foreach ( array( 'theme', 'screenshot', 'headers', 'page_templates' ) as $key )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -532,11 +562,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * get_template() takes into account where WordPress actually located the theme and
</span><span class="cx" style="display: block; padding: 0 10px"> * whether it is actually valid.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 3.4.0
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 3.4.0
</del><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string|bool String on success, false on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false String on success, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get( $header ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! isset( $this->headers[ $header ] ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -566,13 +596,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Gets a theme header, formatted and translated for display.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 3.4.0
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 3.4.0
</del><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $markup Optional. Whether to mark up the header. Defaults to true.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $translate Optional. Whether to translate the header. Defaults to true.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string|bool Processed header, false on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Processed header, false on failure.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function display( $header, $markup = true, $translate = true ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $value = $this->get( $header );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -595,8 +625,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Sanitize a theme header.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 3.4.0
+ * @access private
+ *
+ * @staticvar array $header_tags
+ * @staticvar array $header_tags_with_a
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $value Value to sanitize.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return mixed
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private function sanitize_header( $header, $value ) {
</span><span class="cx" style="display: block; padding: 0 10px"> switch ( $header ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -647,9 +684,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Mark up a theme header.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 3.4.0
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 3.4.0
</del><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @stativar string $comma
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $value Value to mark up.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $translate Whether the header has been translated.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -691,9 +730,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Translate a theme header.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 3.4.0
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 3.4.0
</del><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar array $tags_list
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $value Value to translate.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string Translated value.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -881,7 +922,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $uri Type of URL to return, either 'relative' or an absolute URI. Defaults to absolute URI.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return mixed Screenshot file. False if the theme does not have a screenshot.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|false Screenshot file. False if the theme does not have a screenshot.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_screenshot( $uri = 'uri' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $screenshot = $this->cache_get( 'screenshot' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -916,7 +957,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). -1 depth is infinite.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $search_parent Optional. Whether to return parent files. Defaults to false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array Array of files, keyed by the path to the file relative to the theme's directory, with the values
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * being absolute paths.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * being absolute paths.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_files( $type = null, $depth = 0, $search_parent = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $files = (array) self::scandir( $this->get_stylesheet_directory(), $type, $depth );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -987,6 +1028,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Scans a directory for files of a certain extension.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @static
</span><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1104,6 +1146,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Returns array of stylesheet names of themes allowed on the site or network.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @static
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $blog_id Optional. Defaults to current blog.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1125,8 +1169,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Returns array of stylesheet names of themes allowed on the network.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @static
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar array $allowed_themes
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array Array of stylesheet names.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public static function get_allowed_on_network() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1140,8 +1188,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Returns array of stylesheet names of themes allowed on the site.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @static
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @staticvar array $allowed_themes
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param int $blog_id Optional. Defaults to current blog.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array Array of stylesheet names.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1207,6 +1259,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Sort themes by name.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @static
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public static function sort_by_name( &$themes ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1224,7 +1278,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Would choke on HTML but we don't care enough to slow it down with strip_tags().
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @static
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @return int
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private static function _name_sort( $a, $b ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return strnatcasecmp( $a->headers['Name'], $b->headers['Name'] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1234,7 +1292,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Name sort (with translation).
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @static
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @return int
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private static function _name_sort_i18n( $a, $b ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Don't mark up; Do translate.
</span></span></pre></div>
<a id="trunksrcwpincludescommentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/comment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/comment.php 2015-05-22 06:17:16 UTC (rev 32546)
+++ trunk/src/wp-includes/comment.php 2015-05-22 17:30:44 UTC (rev 32547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -454,7 +454,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $query Array or URL query string of parameters.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array List of comments.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|int List of comments, or number of comments when 'count' is passed as a query var.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function query( $query ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->query_vars = wp_parse_args( $query );
</span></span></pre>
</div>
</div>
</body>
</html>