<!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>[47170] trunk/src/wp-includes: Docs: Improve documentation for `WP_Dependencies`, `WP_Scripts`, and `WP_Styles` methods.</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 { white-space: pre-line; 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/47170">47170</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/47170","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-02-03 00:17:38 +0000 (Mon, 03 Feb 2020)</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'>Docs: Improve documentation for `WP_Dependencies`, `WP_Scripts`, and `WP_Styles` methods.

See <a href="https://core.trac.wordpress.org/ticket/48303">#48303</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesclasswpdependencyphp">trunk/src/wp-includes/class-wp-dependency.php</a></li>
<li><a href="#trunksrcwpincludesclasswpdependenciesphp">trunk/src/wp-includes/class.wp-dependencies.php</a></li>
<li><a href="#trunksrcwpincludesclasswpscriptsphp">trunk/src/wp-includes/class.wp-scripts.php</a></li>
<li><a href="#trunksrcwpincludesclasswpstylesphp">trunk/src/wp-includes/class.wp-styles.php</a></li>
<li><a href="#trunksrcwpincludesl10nphp">trunk/src/wp-includes/l10n.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesclasswpdependencyphp"></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-dependency.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-dependency.php     2020-02-03 00:12:22 UTC (rev 47169)
+++ trunk/src/wp-includes/class-wp-dependency.php       2020-02-03 00:17:38 UTC (rev 47170)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -123,7 +123,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $domain The translation textdomain.
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $path   Optional. The full file path to the directory containing translation files.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         *
</del><span class="cx" style="display: block; padding: 0 10px">          * @return bool False if $domain is not a string, true otherwise.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_translations( $domain, $path = null ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpdependenciesphp"></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-dependencies.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class.wp-dependencies.php   2020-02-03 00:12:22 UTC (rev 47169)
+++ trunk/src/wp-includes/class.wp-dependencies.php     2020-02-03 00:17:38 UTC (rev 47170)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -83,8 +83,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.6.0
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.8.0 Added the `$group` parameter.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param mixed     $handles Optional. Items to be processed: Process queue (false), process item (string), process items (array of strings).
-        * @param int|false $group   Optional. Group level: level (int), no groups (false).
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|string[]|false $handles Optional. Items to be processed: queue (false),
+        *                                       single item (string), or multiple items (array of strings).
+        *                                       Default false.
+        * @param int|false             $group   Optional. Group level: level (int), no groups (false).
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return string[] Array of handles of items that have been processed.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function do_items( $handles = false, $group = false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -136,9 +138,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.6.0 Moved from `WP_Scripts`.
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.8.0 Added the `$group` parameter.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string|string[] $handles   Item handle and argument (string) or item handles and arguments (array of strings).
-        * @param bool            $recursion Internal flag that function is calling itself.
-        * @param int|false       $group     Group level: (int) level, (false) no groups.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|string[] $handles   Item handle (string) or item handles (array of strings).
+        * @param bool            $recursion Optional. Internal flag that function is calling itself.
+        *                                   Default false.
+        * @param int|false       $group     Optional. Group level: level (int), no groups (false).
+        *                                   Default false.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return bool True on success, false on failure.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function all_deps( $handles, $recursion = false, $group = false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -203,14 +207,18 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.6.0 Moved from `WP_Scripts`.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string           $handle Name of the item. Should be unique.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string|bool      $src    Full URL of the item, or path of the item relative to the WordPress root directory.
-        *                                 If source is set to false, item is an alias of other items it depends on.
-        * @param string[]         $deps   Optional. An array of registered item handles this item depends on. Default empty array.
-        * @param string|bool|null $ver    Optional. String specifying item version number, if it has one, which is added to the URL
-        *                                 as a query string for cache busting purposes. If version is set to false, a version
-        *                                 number is automatically added equal to current installed WordPress version.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|bool      $src    Full URL of the item, or path of the item relative
+        *                                 to the WordPress root directory. If source is set to false,
+        *                                 item is an alias of other items it depends on.
+        * @param string[]         $deps   Optional. An array of registered item handles this item depends on.
+        *                                 Default empty array.
+        * @param string|bool|null $ver    Optional. String specifying item version number, if it has one,
+        *                                 which is added to the URL as a query string for cache busting purposes.
+        *                                 If version is set to false, a version number is automatically added
+        *                                 equal to current installed WordPress version.
</ins><span class="cx" style="display: block; padding: 0 10px">          *                                 If set to null, no version is added.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param mixed            $args   Optional. Custom property of the item. NOT the class property $args. Examples: $media, $in_footer.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param mixed            $args   Optional. Custom property of the item. NOT the class property $args.
+        *                                 Examples: $media, $in_footer.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return bool Whether the item has been registered. True on success, false on failure.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -230,7 +238,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $handle Name of the item. Should be unique.
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $key    The data key.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param mixed  $value  The data value.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $value  The data value.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return bool True on success, false on failure.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function add_data( $handle, $key, $value ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -250,7 +258,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $handle Name of the item. Should be unique.
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $key    The data key.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @return mixed Extra item data (string), false otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @return string|false Extra item data (string), false otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function get_data( $handle, $key ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! isset( $this->registered[ $handle ] ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -270,8 +278,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.6.0 Moved from `WP_Scripts`.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings).
-        * @return void
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|string[] $handles Item handle (string) or item handles (array of strings).
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function remove( $handles ) {
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( (array) $handles as $handle ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -290,7 +297,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.6.0 Moved from `WP_Scripts`.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings).
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|string[] $handles Item handle (string) or item handles (array of strings).
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function enqueue( $handles ) {
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( (array) $handles as $handle ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -313,7 +320,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.6.0 Moved from `WP_Scripts`.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings).
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|string[] $handles Item handle (string) or item handles (array of strings).
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function dequeue( $handles ) {
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( (array) $handles as $handle ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -358,7 +365,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.6.0 Moved from `WP_Scripts`.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $handle Name of the item. Should be unique.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $list   Property name of list array.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $list   Optional. Property name of list array. Default 'registered'.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return bool|_WP_Dependency Found, or object Item data.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function query( $handle, $list = 'registered' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -393,10 +400,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.8.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $handle    Name of the item. Should be unique.
-        * @param bool   $recursion Internal flag that calling function was called recursively.
-        * @param mixed  $group     Group level.
-        * @return bool Not already in the group or a lower group
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string    $handle    Name of the item. Should be unique.
+        * @param bool      $recursion Internal flag that calling function was called recursively.
+        * @param int|false $group     Group level: level (int), no groups (false).
+        * @return bool Not already in the group or a lower group.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_group( $handle, $recursion, $group ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $group = (int) $group;
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpscriptsphp"></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-scripts.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class.wp-scripts.php        2020-02-03 00:12:22 UTC (rev 47169)
+++ trunk/src/wp-includes/class.wp-scripts.php  2020-02-03 00:17:38 UTC (rev 47170)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -175,10 +175,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.8.0 Added the `$group` parameter.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param mixed     $handles Optional. Scripts to be printed. (void) prints queue, (string) prints
-        *                           that script, (array of strings) prints those scripts. Default false.
-        * @param int|false $group   Optional. If scripts were queued in groups prints this group number.
-        *                           Default false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|string[]|false $handles Optional. Scripts to be printed: queue (false),
+        *                                       single script (string), or multiple scripts (array of strings).
+        *                                       Default false.
+        * @param int|false             $group   Optional. Group level: level (int), no groups (false).
+        *                                       Default false.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return string[] Handles of scripts that have been printed.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function print_scripts( $handles = false, $group = false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -195,9 +196,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @see print_extra_script()
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $handle The script's registered handle.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param bool   $echo   Optional. Whether to echo the extra script instead of just returning it.
-        *                       Default true.
-        * @return bool|string|void Void if no data exists, extra scripts if `$echo` is true, true otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param bool   $echo   Optional. Whether to echo the extra script
+        *                       instead of just returning it. Default true.
+        * @return bool|string|void Void if no data exists, extra scripts if `$echo` is true,
+        *                          true otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function print_scripts_l10n( $handle, $echo = true ) {
</span><span class="cx" style="display: block; padding: 0 10px">                _deprecated_function( __FUNCTION__, '3.3.0', 'WP_Scripts::print_extra_script()' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -210,9 +212,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 3.3.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $handle The script's registered handle.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param bool   $echo   Optional. Whether to echo the extra script instead of just returning it.
-        *                       Default true.
-        * @return bool|string|void Void if no data exists, extra scripts if `$echo` is true, true otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param bool   $echo   Optional. Whether to echo the extra script
+        *                       instead of just returning it. Default true.
+        * @return bool|string|void Void if no data exists, extra scripts if `$echo` is true,
+        *                          true otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function print_extra_script( $handle, $echo = true ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $output = $this->get_data( $handle, 'data' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -251,7 +254,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @see WP_Dependencies::do_item()
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string    $handle The script's registered handle.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param int|false $group  Optional. Group level: (int) level, (false) no groups. Default false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param int|false $group  Optional. Group level: level (int), no groups (false).
+        *                          Default false.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return bool True on success, false on failure.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function do_item( $handle, $group = false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -409,10 +413,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 4.5.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $handle   Name of the script to add the inline script to. Must be lowercase.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $handle   Name of the script to add the inline script to.
+        *                         Must be lowercase.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param string $data     String containing the javascript to be added.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $position Optional. Whether to add the inline script before the handle
-        *                         or after. Default 'after'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $position Optional. Whether to add the inline script
+        *                         before the handle or after. Default 'after'.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return bool True on success, false on failure.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function add_inline_script( $handle, $data, $position = 'after' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -435,11 +440,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 4.5.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $handle   Name of the script to add the inline script to. Must be lowercase.
-        * @param string $position Optional. Whether to add the inline script before the handle
-        *                         or after. Default 'after'.
-        * @param bool   $echo     Optional. Whether to echo the script instead of just returning it.
-        *                         Default true.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $handle   Name of the script to add the inline script to.
+        *                         Must be lowercase.
+        * @param string $position Optional. Whether to add the inline script
+        *                         before the handle or after. Default 'after'.
+        * @param bool   $echo     Optional. Whether to echo the script
+        *                         instead of just returning it. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return string|false Script on success, false otherwise.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function print_inline_script( $handle, $position = 'after', $echo = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -510,8 +516,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string    $handle    Name of the item. Should be unique.
</span><span class="cx" style="display: block; padding: 0 10px">         * @param bool      $recursion Internal flag that calling function was called recursively.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param int|false $group     Optional. Group level: (int) level, (false) no groups. Default false.
-        * @return bool Not already in the group or a lower group
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param int|false $group     Optional. Group level: level (int), no groups (false).
+        *                             Default false.
+        * @return bool Not already in the group or a lower group.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_group( $handle, $recursion, $group = false ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( isset( $this->registered[ $handle ]->args ) && $this->registered[ $handle ]->args === 1 ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -558,9 +565,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 5.0.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $handle Name of the script to add the inline script to. Must be lowercase.
-        * @param bool   $echo   Optional. Whether to echo the script instead of just returning it.
-        *                       Default true.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $handle Name of the script to add the inline script to.
+        *                       Must be lowercase.
+        * @param bool   $echo   Optional. Whether to echo the script
+        *                       instead of just returning it. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return string|false Script on success, false otherwise.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function print_translations( $handle, $echo = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -600,9 +608,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @see WP_Dependencies::all_deps()
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param mixed     $handles   Item handle and argument (string) or item handles and arguments (array of strings).
-        * @param bool      $recursion Internal flag that function is calling itself.
-        * @param int|false $group     Optional. Group level: (int) level, (false) no groups. Default false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|string[] $handles   Item handle (string) or item handles (array of strings).
+        * @param bool            $recursion Optional. Internal flag that function is calling itself.
+        *                                   Default false.
+        * @param int|false       $group     Optional. Group level: level (int), no groups (false).
+        *                                   Default false.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return bool True on success, false on failure.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function all_deps( $handles, $recursion = false, $group = false ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpstylesphp"></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-styles.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class.wp-styles.php 2020-02-03 00:12:22 UTC (rev 47169)
+++ trunk/src/wp-includes/class.wp-styles.php   2020-02-03 00:17:38 UTC (rev 47170)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -322,9 +322,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 3.3.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $handle The style's registered handle.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param bool   $echo   Optional. Whether to echo the inline style instead of just returning it.
-        *                       Default true.
-        * @return string|bool False if no data exists, inline styles if `$echo` is true, true otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param bool   $echo   Optional. Whether to echo the inline style
+        *                       instead of just returning it. Default true.
+        * @return string|bool False if no data exists, inline styles if `$echo` is true,
+        *                     true otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function print_inline_style( $handle, $echo = true ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $output = $this->get_data( $handle, 'after' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -356,9 +357,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @see WP_Dependencies::all_deps()
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string|string[] $handles   Item handle and argument (string) or item handles and arguments (array of strings).
-        * @param bool            $recursion Internal flag that function is calling itself.
-        * @param int|false       $group     Group level: (int) level, (false) no groups.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string|string[] $handles   Item handle (string) or item handles (array of strings).
+        * @param bool            $recursion Optional. Internal flag that function is calling itself.
+        *                                   Default false.
+        * @param int|false       $group     Optional. Group level: level (int), no groups (false).
+        *                                   Default false.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @return bool True on success, false on failure.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function all_deps( $handles, $recursion = false, $group = false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -381,8 +384,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 2.6.0
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * @param string $src The source of the enqueued style.
-        * @param string $ver The version of the enqueued style.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * @param string $src    The source of the enqueued style.
+        * @param string $ver    The version of the enqueued style.
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param string $handle The style's registered handle.
</span><span class="cx" style="display: block; padding: 0 10px">         * @return string Style's fully-qualified URL.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunksrcwpincludesl10nphp"></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/l10n.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/l10n.php    2020-02-03 00:12:22 UTC (rev 47169)
+++ trunk/src/wp-includes/l10n.php      2020-02-03 00:17:38 UTC (rev 47170)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -926,7 +926,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @param string $handle Name of the script to register a translation domain to.
</span><span class="cx" style="display: block; padding: 0 10px">  * @param string $domain Optional. Text domain. Default 'default'.
</span><span class="cx" style="display: block; padding: 0 10px">  * @param string $path   Optional. The full file path to the directory containing translation files.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
</del><span class="cx" style="display: block; padding: 0 10px">  * @return string|false False if the script textdomain could not be loaded, the translated strings
</span><span class="cx" style="display: block; padding: 0 10px">  *                      in JSON encoding otherwise.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span></span></pre>
</div>
</div>

</body>
</html>