Skip to content

Commit

Permalink
Merge pull request #146 from dreamsicle-io/release/3.7.0
Browse files Browse the repository at this point in the history
Release/3.7.0
  • Loading branch information
theenoahmason committed Nov 28, 2022
2 parents 0187734 + f55e1c9 commit c9bb19c
Show file tree
Hide file tree
Showing 7 changed files with 165 additions and 216 deletions.
111 changes: 47 additions & 64 deletions docs/reference/classes/WP-Backstage.html
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,6 @@ <h3 id="toc">
</dt>
<dd>Inline User Script</dd>

<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/WP-Backstage.html#method_inline_widget_customizer_script">inline_widget_customizer_script()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Inline Widget Customizer Script</dd>

<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/WP-Backstage.html#method_inline_widget_script">inline_widget_script()</a>
<span>
Expand Down Expand Up @@ -417,7 +410,7 @@ <h4 class="phpdocumentor-element__name" id="property_kses_label">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">100</span>
<span class="phpdocumentor-element-found-in__line">107</span>

</aside>

Expand Down Expand Up @@ -484,7 +477,7 @@ <h4 class="phpdocumentor-element__name" id="property_kses_p">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">49</span>
<span class="phpdocumentor-element-found-in__line">56</span>

</aside>

Expand Down Expand Up @@ -600,7 +593,7 @@ <h4 class="phpdocumentor-element__name" id="property_plugin_dependencies">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">38</span>
<span class="phpdocumentor-element-found-in__line">45</span>

</aside>

Expand All @@ -612,7 +605,14 @@ <h4 class="phpdocumentor-element__name" id="property_plugin_dependencies">
<span class="phpdocumentor-signature__name">$plugin_dependencies</span>
= <span class="phpdocumentor-signature__default-value">array()</span></code>


<section class="phpdocumentor-description"><p>Example:
array(
'key' =&gt; 'classic-editor/classic-editor.php', // The key will be passed to <code class="prettyprint">is_plugin_active()</code> to check.
'name' =&gt; _x( 'Classic Editor', 'plugin dependency - classic editor', 'wp_backstage' ),
'url' =&gt; 'https://wordpress.org/plugins/classic-editor/',
)</p>
</section>

<section class="phpdocumentor-description"><p>The array of all errors on the instance.</p>
</section>

Expand Down Expand Up @@ -661,7 +661,7 @@ <h4 class="phpdocumentor-element__name" id="method___construct">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">139</span>
<span class="phpdocumentor-element-found-in__line">147</span>

</aside>

Expand All @@ -686,6 +686,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">2.0.0</span>


</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">since</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link">3.7.0</span>

<section class="phpdocumentor-description"><p>Removes plugin dependencies.</p>
</section>

</dd>
</dl>

Expand All @@ -708,7 +718,7 @@ <h4 class="phpdocumentor-element__name" id="method_ajax_render_media">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2980</span>
<span class="phpdocumentor-element-found-in__line">2939</span>

</aside>

Expand Down Expand Up @@ -925,7 +935,7 @@ <h4 class="phpdocumentor-element__name" id="method_init">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">169</span>
<span class="phpdocumentor-element-found-in__line">171</span>

</aside>

Expand Down Expand Up @@ -1026,6 +1036,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<section class="phpdocumentor-description"><p>Adds filter to disable block editor for widgets.</p>
</section>

</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">since</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link">3.7.0</span>

<section class="phpdocumentor-description"><p>Removes filter to disable block editor for widgets.</p>
</section>

</dd>
</dl>

Expand Down Expand Up @@ -2342,7 +2362,7 @@ <h4 class="phpdocumentor-element__name" id="method_inline_user_script">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2811</span>
<span class="phpdocumentor-element-found-in__line">2770</span>

</aside>

Expand All @@ -2355,53 +2375,6 @@ <h4 class="phpdocumentor-element__name" id="method_inline_user_script">



<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">since</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link">2.0.0</span>


</dd>
</dl>

<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">void</span>
&mdash;


</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_inline_widget_customizer_script">
inline_widget_customizer_script()
<a href="classes/WP-Backstage.html#method_inline_widget_customizer_script" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2730</span>

</aside>

<p class="phpdocumentor-summary">Inline Widget Customizer Script</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">inline_widget_customizer_script</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>




<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
Expand Down Expand Up @@ -2436,7 +2409,7 @@ <h4 class="phpdocumentor-element__name" id="method_inline_widget_script">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2606</span>
<span class="phpdocumentor-element-found-in__line">2607</span>

</aside>

Expand All @@ -2461,6 +2434,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">2.0.0</span>


</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">since</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link">3.7.0</span>

<section class="phpdocumentor-description"><p>Refactors to use the jQuery events for <code class="prettyprint">widget-added</code> and <code class="prettyprint">widget-updated</code> for support accross legacy, customizer, and block editing screens.</p>
</section>

</dd>
</dl>

Expand Down Expand Up @@ -2538,7 +2521,7 @@ <h4 class="phpdocumentor-element__name" id="method_render_media_item">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage.php"><a href="files/includes-class-wp-backstage.html"><abbr title="includes/class-wp-backstage.php">class-wp-backstage.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2850</span>
<span class="phpdocumentor-element-found-in__line">2809</span>

</aside>

Expand Down
5 changes: 0 additions & 5 deletions docs/reference/js/searchIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -1350,11 +1350,6 @@ Search.appendIndex(
"name": "inline_widget_script",
"summary": "Inline\u0020Widget\u0020Script",
"url": "classes/WP-Backstage.html#method_inline_widget_script"
}, {
"fqsen": "\\WP_Backstage\u003A\u003Ainline_widget_customizer_script\u0028\u0029",
"name": "inline_widget_customizer_script",
"summary": "Inline\u0020Widget\u0020Customizer\u0020Script",
"url": "classes/WP-Backstage.html#method_inline_widget_customizer_script"
}, {
"fqsen": "\\WP_Backstage\u003A\u003Ainline_user_script\u0028\u0029",
"name": "inline_user_script",
Expand Down
17 changes: 17 additions & 0 deletions examples/tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,3 +841,20 @@ function wp_backstage_init() {
}

add_action( 'after_setup_theme', 'wp_backstage_init', 10 );

/**
* WP Backstage Test Widget
*
* @since 3.7.0
* @param array $args The widget arguments.
* @param array $instance The widget's saved instance settings.
* @return void
*/
function wp_backstage_test_widget( $args = array(), $instance = array() ) { ?>
<textarea readonly rows="20" style="display:block;margin:0;white-space:pre;max-width:100%;max-height:400px;overflow:auto;font-size:10px;background-color:rgba(0, 0, 0, 0.05);padding:4px 8px;box-sizing:border-box;min-width:0;"><?php
// phpcs:ignore WordPress.PHP.DevelopmentFunctions
print_r( $instance );
?></textarea>
<?php }

add_action( 'wp_backstage_widget_output_wp_backstage_widget', 'wp_backstage_test_widget', 10, 2 );
Loading

0 comments on commit c9bb19c

Please sign in to comment.