<!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>[48473] trunk/src: Docs: Correct and improve inline docs for parameters that accept a callback function.</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/48473">48473</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/48473","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>johnbillion</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-07-14 11:54:26 +0000 (Tue, 14 Jul 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: Correct and improve inline docs for parameters that accept a callback function.
See <a href="https://core.trac.wordpress.org/ticket/49572">#49572</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesajaxactionsphp">trunk/src/wp-admin/includes/ajax-actions.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpscreenphp">trunk/src/wp-admin/includes/class-wp-screen.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpsitehealthphp">trunk/src/wp-admin/includes/class-wp-site-health.php</a></li>
<li><a href="#trunksrcwpadminincludesnavmenuphp">trunk/src/wp-admin/includes/nav-menu.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizecontrolphp">trunk/src/wp-includes/class-wp-customize-control.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizesettingphp">trunk/src/wp-includes/class-wp-customize-setting.php</a></li>
<li><a href="#trunksrcwpincludescommenttemplatephp">trunk/src/wp-includes/comment-template.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
<li><a href="#trunksrcwpincludesmetaphp">trunk/src/wp-includes/meta.php</a></li>
<li><a href="#trunksrcwpincludeswidgetsphp">trunk/src/wp-includes/widgets.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesajaxactionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/ajax-actions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/ajax-actions.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-admin/includes/ajax-actions.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4778,11 +4778,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array {
</span><span class="cx" style="display: block; padding: 0 10px"> * Array of personal data exporters.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $callback Callable exporter function that accepts an
- * email address and a page and returns an array
- * of name => value pairs of personal data.
- * @type string $exporter_friendly_name Translated user facing friendly name for the
- * exporter.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type callable $callback Callable exporter function that accepts an
+ * email address and a page and returns an array
+ * of name => value pairs of personal data.
+ * @type string $exporter_friendly_name Translated user facing friendly name for the
+ * exporter.
</ins><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"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4968,12 +4968,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array {
</span><span class="cx" style="display: block; padding: 0 10px"> * Array of personal data exporters.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $callback Callable eraser that accepts an email address and
- * a page and returns an array with boolean values for
- * whether items were removed or retained and any messages
- * from the eraser, as well as if additional pages are
- * available.
- * @type string $exporter_friendly_name Translated user facing friendly name for the eraser.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type callable $callback Callable eraser that accepts an email address and
+ * a page and returns an array with boolean values for
+ * whether items were removed or retained and any messages
+ * from the eraser, as well as if additional pages are
+ * available.
+ * @type string $exporter_friendly_name Translated user facing friendly name for the eraser.
</ins><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"> */
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpscreenphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-screen.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-screen.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-admin/includes/class-wp-screen.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -620,12 +620,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args {
</span><span class="cx" style="display: block; padding: 0 10px"> * Array of arguments used to display the help tab.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $title Title for the tab. Default false.
- * @type string $id Tab ID. Must be HTML-safe and should be unique for this menu.
- * It is NOT allowed to contain any empty spaces. Default false.
- * @type string $content Optional. Help tab content in plain text or HTML. Default empty string.
- * @type string $callback Optional. A callback to generate the tab content. Default false.
- * @type int $priority Optional. The priority of the tab, used for ordering. Default 10.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $title Title for the tab. Default false.
+ * @type string $id Tab ID. Must be HTML-safe and should be unique for this menu.
+ * It is NOT allowed to contain any empty spaces. Default false.
+ * @type string $content Optional. Help tab content in plain text or HTML. Default empty string.
+ * @type callable $callback Optional. A callback to generate the tab content. Default false.
+ * @type int $priority Optional. The priority of the tab, used for ordering. Default 10.
</ins><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"> public function add_help_tab( $args ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpsitehealthphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-site-health.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-site-health.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-admin/includes/class-wp-site-health.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -147,7 +147,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.4.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 $callback
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param callable $callback
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return mixed|void
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private function perform_test( $callback ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesnavmenuphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/nav-menu.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/nav-menu.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-admin/includes/nav-menu.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -332,7 +332,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $id Meta box 'id' attribute.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $title Meta box title.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $callback Meta box display callback.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type callable $callback Meta box display callback.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type WP_Post_Type $args Extra meta box arguments (the post type object for this meta box).
</span><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -684,10 +684,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $box {
</span><span class="cx" style="display: block; padding: 0 10px"> * Taxonomy menu item meta box arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $id Meta box 'id' attribute.
- * @type string $title Meta box title.
- * @type string $callback Meta box display callback.
- * @type object $args Extra meta box arguments (the taxonomy object for this meta box).
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $id Meta box 'id' attribute.
+ * @type string $title Meta box title.
+ * @type callable $callback Meta box display callback.
+ * @type object $args Extra meta box arguments (the taxonomy object for this meta box).
</ins><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"> function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizecontrolphp"></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-customize-control.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-control.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-includes/class-wp-customize-control.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -204,7 +204,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * 'textarea', 'radio', 'select', and 'dropdown-pages'. Additional
</span><span class="cx" style="display: block; padding: 0 10px"> * input types such as 'email', 'url', 'number', 'hidden', and
</span><span class="cx" style="display: block; padding: 0 10px"> * 'date' are supported implicitly. Default 'text'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type callback $active_callback Active callback.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type callable $active_callback Active callback.
</ins><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"> public function __construct( $manager, $id, $args = array() ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizesettingphp"></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-customize-setting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-setting.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-includes/class-wp-customize-setting.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -97,7 +97,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Callback to convert a Customize PHP setting value to a value that is JSON serializable.
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @var string
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @var callable
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public $sanitize_js_callback = '';
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludescommenttemplatephp"></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-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/comment-template.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-includes/comment-template.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2007,22 +2007,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $args {
</span><span class="cx" style="display: block; padding: 0 10px"> * Optional. Formatting options.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type object $walker Instance of a Walker class to list comments. Default null.
- * @type int $max_depth The maximum comments depth. Default empty.
- * @type string $style The style of list ordering. Default 'ul'. Accepts 'ul', 'ol'.
- * @type string $callback Callback function to use. Default null.
- * @type string $end-callback Callback function to use at the end. Default null.
- * @type string $type Type of comments to list.
- * Default 'all'. Accepts 'all', 'comment', 'pingback', 'trackback', 'pings'.
- * @type int $page Page ID to list comments for. Default empty.
- * @type int $per_page Number of comments to list per page. Default empty.
- * @type int $avatar_size Height and width dimensions of the avatar size. Default 32.
- * @type bool $reverse_top_level Ordering of the listed comments. If true, will display newest comments first.
- * @type bool $reverse_children Whether to reverse child comments in the list. Default null.
- * @type string $format How to format the comments list.
- * Default 'html5' if the theme supports it. Accepts 'html5', 'xhtml'.
- * @type bool $short_ping Whether to output short pings. Default false.
- * @type bool $echo Whether to echo the output or return it. Default true.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type object $walker Instance of a Walker class to list comments. Default null.
+ * @type int $max_depth The maximum comments depth. Default empty.
+ * @type string $style The style of list ordering. Default 'ul'. Accepts 'ul', 'ol'.
+ * @type callable $callback Callback function to use. Default null.
+ * @type callable $end-callback Callback function to use at the end. Default null.
+ * @type string $type Type of comments to list.
+ * Default 'all'. Accepts 'all', 'comment', 'pingback', 'trackback', 'pings'.
+ * @type int $page Page ID to list comments for. Default empty.
+ * @type int $per_page Number of comments to list per page. Default empty.
+ * @type int $avatar_size Height and width dimensions of the avatar size. Default 32.
+ * @type bool $reverse_top_level Ordering of the listed comments. If true, will display newest comments first.
+ * @type bool $reverse_children Whether to reverse child comments in the list. Default null.
+ * @type string $format How to format the comments list.
+ * Default 'html5' if the theme supports it. Accepts 'html5', 'xhtml'.
+ * @type bool $short_ping Whether to output short pings. Default false.
+ * @type bool $echo Whether to echo the output or return it. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_Comment[] $comments Optional. Array of WP_Comment objects.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return void|string Void if 'echo' argument is true, or no comments to list.
</span></span></pre></div>
<a id="trunksrcwpincludesfunctionsphp"></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/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/functions.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-includes/functions.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4149,7 +4149,7 @@
</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"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Checks that a JSONP callback is a valid JavaScript callback.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Checks that a JSONP callback is a valid JavaScript callback name.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Only allows alphanumeric characters and the dot character in callback
</span><span class="cx" style="display: block; padding: 0 10px"> * function names. This helps to mitigate XSS attacks caused by directly
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4157,8 +4157,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.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 $callback Supplied JSONP callback function.
- * @return bool True if valid callback, otherwise false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $callback Supplied JSONP callback function name.
+ * @return bool Whether the callback function name is valid.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_check_jsonp_callback( $callback ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_string( $callback ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludesmetaphp"></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/meta.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/meta.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-includes/meta.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1240,8 +1240,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * When using a non-single meta key, the default value is for the first entry.
</span><span class="cx" style="display: block; padding: 0 10px"> * In other words, when calling get_metadata() with `$single` set to `false`,
</span><span class="cx" style="display: block; padding: 0 10px"> * the default value given here will be wrapped in an array.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $sanitize_callback A function or method to call when sanitizing `$meta_key` data.
- * @type string $auth_callback Optional. A function or method to call when performing edit_post_meta,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type callable $sanitize_callback A function or method to call when sanitizing `$meta_key` data.
+ * @type callable $auth_callback Optional. A function or method to call when performing edit_post_meta,
</ins><span class="cx" style="display: block; padding: 0 10px"> * add_post_meta, and delete_post_meta capability checks.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool|array $show_in_rest Whether data associated with this meta key can be considered public and
</span><span class="cx" style="display: block; padding: 0 10px"> * should be accessible via the REST API. A custom post type must also declare
</span></span></pre></div>
<a id="trunksrcwpincludeswidgetsphp"></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/widgets.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/widgets.php 2020-07-14 11:52:43 UTC (rev 48472)
+++ trunk/src/wp-includes/widgets.php 2020-07-14 11:54:26 UTC (rev 48473)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -787,16 +787,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $widget_id {
</span><span class="cx" style="display: block; padding: 0 10px"> * An associative array of widget arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $name Name of the widget.
- * @type string $id Widget ID.
- * @type array|callable $callback When the hook is fired on the front end, $callback is an array
- * containing the widget object. Fired on the back end, $callback
- * is 'wp_widget_control', see $_callback.
- * @type array $params An associative array of multi-widget arguments.
- * @type string $classname CSS class applied to the widget container.
- * @type string $description The widget description.
- * @type array $_callback When the hook is fired on the back end, $_callback is populated
- * with an array containing the widget object, see $callback.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $name Name of the widget.
+ * @type string $id Widget ID.
+ * @type callable $callback When the hook is fired on the front end, $callback is an array
+ * containing the widget object. Fired on the back end, $callback
+ * is 'wp_widget_control', see $_callback.
+ * @type array $params An associative array of multi-widget arguments.
+ * @type string $classname CSS class applied to the widget container.
+ * @type string $description The widget description.
+ * @type array $_callback When the hook is fired on the back end, $_callback is populated
+ * with an array containing the widget object, see $callback.
</ins><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"> do_action( 'dynamic_sidebar', $wp_registered_widgets[ $id ] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -857,10 +857,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @global array $wp_registered_widgets
</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|false $callback Optional, Widget callback to check. Default false.
- * @param int|false $widget_id Optional. Widget ID. Optional, but needed for checking. Default false.
- * @param string|false $id_base Optional. The base ID of a widget created by extending WP_Widget. Default false.
- * @param bool $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'. Default true.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param callable|false $callback Optional, Widget callback to check. Default false.
+ * @param int|false $widget_id Optional. Widget ID. Optional, but needed for checking. Default false.
+ * @param string|false $id_base Optional. The base ID of a widget created by extending WP_Widget. Default false.
+ * @param bool $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|false False if widget is not active or id of sidebar in which the widget is active.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function is_active_widget( $callback = false, $widget_id = false, $id_base = false, $skip_inactive = true ) {
</span></span></pre>
</div>
</div>
</body>
</html>