Skip to content

Commit

Permalink
Merge pull request #132 from dreamsicle-io/release/3.4.2
Browse files Browse the repository at this point in the history
Release/3.4.2
  • Loading branch information
theenoahmason committed Nov 23, 2022
2 parents f462d81 + fdc8379 commit 005f839
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 16 deletions.
12 changes: 11 additions & 1 deletion docs/reference/classes/WP-Backstage-Component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2697,7 +2697,7 @@ <h4 class="phpdocumentor-element__name" id="method_render_rest_api_preview">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage-component.php"><a href="files/includes-class-wp-backstage-component.html"><abbr title="includes/class-wp-backstage-component.php">class-wp-backstage-component.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3717</span>
<span class="phpdocumentor-element-found-in__line">3718</span>

</aside>

Expand Down Expand Up @@ -2738,6 +2738,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">3.4.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.4.2</span>

<section class="phpdocumentor-description"><p>Fixes bug where event listeners were being added instead of removed on destroy.</p>
</section>

</dd>
</dl>

Expand Down
12 changes: 11 additions & 1 deletion docs/reference/classes/WP-Backstage-Nav-Menu-Item.html
Original file line number Diff line number Diff line change
Expand Up @@ -3309,7 +3309,7 @@ <h4 class="phpdocumentor-element__name" id="method_render_rest_api_preview">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage-component.php"><a href="files/includes-class-wp-backstage-component.html"><abbr title="includes/class-wp-backstage-component.php">class-wp-backstage-component.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3717</span>
<span class="phpdocumentor-element-found-in__line">3718</span>

</aside>

Expand Down Expand Up @@ -3350,6 +3350,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">3.4.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.4.2</span>

<section class="phpdocumentor-description"><p>Fixes bug where event listeners were being added instead of removed on destroy.</p>
</section>

</dd>
</dl>

Expand Down
12 changes: 11 additions & 1 deletion docs/reference/classes/WP-Backstage-Options.html
Original file line number Diff line number Diff line change
Expand Up @@ -3396,7 +3396,7 @@ <h4 class="phpdocumentor-element__name" id="method_render_rest_api_preview">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage-component.php"><a href="files/includes-class-wp-backstage-component.html"><abbr title="includes/class-wp-backstage-component.php">class-wp-backstage-component.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3717</span>
<span class="phpdocumentor-element-found-in__line">3718</span>

</aside>

Expand Down Expand Up @@ -3437,6 +3437,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">3.4.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.4.2</span>

<section class="phpdocumentor-description"><p>Fixes bug where event listeners were being added instead of removed on destroy.</p>
</section>

</dd>
</dl>

Expand Down
12 changes: 11 additions & 1 deletion docs/reference/classes/WP-Backstage-Post-Type.html
Original file line number Diff line number Diff line change
Expand Up @@ -5284,7 +5284,7 @@ <h4 class="phpdocumentor-element__name" id="method_render_rest_api_preview">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage-component.php"><a href="files/includes-class-wp-backstage-component.html"><abbr title="includes/class-wp-backstage-component.php">class-wp-backstage-component.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3717</span>
<span class="phpdocumentor-element-found-in__line">3718</span>

</aside>

Expand Down Expand Up @@ -5325,6 +5325,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">3.4.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.4.2</span>

<section class="phpdocumentor-description"><p>Fixes bug where event listeners were being added instead of removed on destroy.</p>
</section>

</dd>
</dl>

Expand Down
12 changes: 11 additions & 1 deletion docs/reference/classes/WP-Backstage-Taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -4334,7 +4334,7 @@ <h4 class="phpdocumentor-element__name" id="method_render_rest_api_preview">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage-component.php"><a href="files/includes-class-wp-backstage-component.html"><abbr title="includes/class-wp-backstage-component.php">class-wp-backstage-component.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3717</span>
<span class="phpdocumentor-element-found-in__line">3718</span>

</aside>

Expand Down Expand Up @@ -4375,6 +4375,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">3.4.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.4.2</span>

<section class="phpdocumentor-description"><p>Fixes bug where event listeners were being added instead of removed on destroy.</p>
</section>

</dd>
</dl>

Expand Down
12 changes: 11 additions & 1 deletion docs/reference/classes/WP-Backstage-User.html
Original file line number Diff line number Diff line change
Expand Up @@ -3757,7 +3757,7 @@ <h4 class="phpdocumentor-element__name" id="method_render_rest_api_preview">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage-component.php"><a href="files/includes-class-wp-backstage-component.html"><abbr title="includes/class-wp-backstage-component.php">class-wp-backstage-component.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3717</span>
<span class="phpdocumentor-element-found-in__line">3718</span>

</aside>

Expand Down Expand Up @@ -3798,6 +3798,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">3.4.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.4.2</span>

<section class="phpdocumentor-description"><p>Fixes bug where event listeners were being added instead of removed on destroy.</p>
</section>

</dd>
</dl>

Expand Down
12 changes: 11 additions & 1 deletion docs/reference/classes/WP-Backstage-Widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -3248,7 +3248,7 @@ <h4 class="phpdocumentor-element__name" id="method_render_rest_api_preview">
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="includes/class-wp-backstage-component.php"><a href="files/includes-class-wp-backstage-component.html"><abbr title="includes/class-wp-backstage-component.php">class-wp-backstage-component.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3717</span>
<span class="phpdocumentor-element-found-in__line">3718</span>

</aside>

Expand Down Expand Up @@ -3289,6 +3289,16 @@ <h5 class="phpdocumentor-tag-list__heading" id="tags">
<span class="phpdocumentor-tag-link">3.4.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.4.2</span>

<section class="phpdocumentor-description"><p>Fixes bug where event listeners were being added instead of removed on destroy.</p>
</section>

</dd>
</dl>

Expand Down
5 changes: 3 additions & 2 deletions includes/class-wp-backstage-component.php
Original file line number Diff line number Diff line change
Expand Up @@ -3711,6 +3711,7 @@ class="description"
* through api response checks.
*
* @since 3.4.0
* @since 3.4.2 Fixes bug where event listeners were being added instead of removed on destroy.
* @param string $path An API path to fetch.
* @return void
*/
Expand Down Expand Up @@ -3841,8 +3842,8 @@ function destroy() {
// Clear the value.
setValue('');
// Remove event listeners.
panelButton.addEventListener('click', handleRefreshtrigger);
helpButton.addEventListener('click', handleRefreshtrigger);
panelButton.removeEventListener('click', handleRefreshtrigger);
helpButton.removeEventListener('click', handleRefreshtrigger);
form.removeEventListener('submit', handleFormSubmit);
// Destory CodeMirror.
const codeMirrorInst = getCodeMirrorInstance();
Expand Down
10 changes: 5 additions & 5 deletions languages/wp-backstage.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPLv2.
msgid ""
msgstr ""
"Project-Id-Version: WP Backstage 3.4.1\n"
"Project-Id-Version: WP Backstage 3.4.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-backstage\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-11-23T14:48:20+00:00\n"
"POT-Creation-Date: 2022-11-23T16:58:56+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Domain: wp_backstage\n"
Expand Down Expand Up @@ -1437,17 +1437,17 @@ msgctxt "select users field - option label"
msgid "%1$s (%2$s)"
msgstr ""

#: includes/class-wp-backstage-component.php:3718
#: includes/class-wp-backstage-component.php:3719
msgctxt "rest api preview - loading"
msgid "Loading..."
msgstr ""

#: includes/class-wp-backstage-component.php:3719
#: includes/class-wp-backstage-component.php:3720
msgctxt "rest api preview - instructions"
msgid "<strong>No data fetched yet</strong> ― Click the fetch button to get started."
msgstr ""

#: includes/class-wp-backstage-component.php:3735
#: includes/class-wp-backstage-component.php:3736
msgctxt "rest api preview - form submit"
msgid "Fetch"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributors: noahmason
Tags: post-types, taxonomies, attachments, nav-menus, options, settings, widgets, meta-boxes, custom-fields
Stable tag: 3.4.1
Stable tag: 3.4.2
Requires PHP: 7.4.0
Requires at least: 5.8.0
Tested up to: 6.0.0
Expand Down
2 changes: 1 addition & 1 deletion wp-backstage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Plugin Name: WP Backstage
* Plugin URI: https://github.com/dreamsicle-io/wp-backstage
* Description: Create standardized and deployable WordPress objects like post types with meta boxes and custom fields, taxonomy terms with custom fields, options pages with custom fields and widgets with custom fields; and extend existing WordPress objects like pages, posts, attachments, categories, tags, users and nav menu items.
* Version: 3.4.1
* Version: 3.4.2
* Requires PHP: 7.4.0
* Requires at least: 5.8.0
* Author: Dreamsicle
Expand Down

0 comments on commit 005f839

Please sign in to comment.