Skip to content

Commit

Permalink
Release 0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
goncaloasimoes committed Jul 18, 2024
1 parent 8f2b829 commit 877b985
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 20 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.5] - 2024-07-18

### Added

- Search filter for link translations.
Expand Down Expand Up @@ -408,7 +410,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

First Release!

[unreleased]: https://github.com/26b/unbabble/compare/0.4.4...HEAD
[unreleased]: https://github.com/26b/unbabble/compare/0.4.5...HEAD
[0.4.5]: https://github.com/26b/unbabble/compare/0.4.4...0.4.5
[0.4.4]: https://github.com/26b/unbabble/compare/0.4.3...0.4.4
[0.4.3]: https://github.com/26b/unbabble/compare/0.4.2...0.4.3
[0.4.2]: https://github.com/26b/unbabble/compare/0.4.1...0.4.2
Expand Down
4 changes: 2 additions & 2 deletions lib/Admin/Customize.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Customize {
/**
* Register hooks.
*
* @since Unreleased Add check for translatable nav_menu.
* @since 0.4.5 Add check for translatable nav_menu.
* @since 0.0.3
*/
public function register() {
Expand Down Expand Up @@ -54,7 +54,7 @@ public function register() {
/**
* Add lang metaboxes to nav menu edit.
*
* @since Unreleased Add hidden input `ubb_source` for new menu's when linking.
* @since 0.4.5 Add hidden input `ubb_source` for new menu's when linking.
* @since 0.4.2 Added surrounding <table> and <tbody> to the term meta box. Changed ob_get_flush to ob_get_clean.
* @since 0.0.3
*
Expand Down
6 changes: 3 additions & 3 deletions lib/Integrations/SearchWP.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
/**
* For hooks related to the SearchWP plugin.
*
* @since Unreleased
* @since 0.4.5
*/
class SearchWP {

/**
* Register hooks.
*
* @since Unreleased
* @since 0.4.5
*
* @return void
*/
Expand All @@ -26,7 +26,7 @@ public function register() {
/**
* Filters the SearchWP query to include the language filter.
*
* @since Unreleased
* @since 0.4.5
*
* @param array $query SearchWP query.
* @param array $args SearchWP arguments.
Expand Down
4 changes: 2 additions & 2 deletions lib/LangInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ public static function set_term_source( int $term_id, string $source_id, bool $f
/**
* Returns the term's source ID.
*
* @since Unreleased Delete empty string `ubb_source`'s from the DB.
* @since 0.4.5 Delete empty string `ubb_source`'s from the DB.
* @since 0.0.1
*
* @param int $term_id ID of the term to get source for.
Expand Down Expand Up @@ -823,7 +823,7 @@ public static function change_term_language( int $term_id, string $lang ) : bool
/**
* Returns the terms for a source ID.
*
* @since Unreleased Added missing return when terms are empty.
* @since 0.4.5 Added missing return when terms are empty.
* @since 0.0.1
*
* @param string $source_id The source ID to get translations map.
Expand Down
2 changes: 1 addition & 1 deletion lib/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static function validate( array $options ) : array {
* Updates the Unbabble options if the value returned from the filter `ubb_options` is
* different from the saved options.
*
* @since Unreleased Force 'nav_menu' and 'nav_menu_item' to be translatable if one of them is.
* @since 0.4.5 Force 'nav_menu' and 'nav_menu_item' to be translatable if one of them is.
* @since 0.0.11
*
* @return void
Expand Down
4 changes: 2 additions & 2 deletions lib/Posts/BulkEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function bulk_edit_custom_box( string $column_name, string $post_type ) :
/**
* Saves the bulk edit.
*
* @since Unreleased Fix $_GET['bulk_edit'] check.
* @since 0.4.5 Fix $_GET['bulk_edit'] check.
* @since 0.4.0
*
* @param int $post_id Post ID.
Expand Down Expand Up @@ -269,7 +269,7 @@ public function bulk_edit_messages( array $bulk_messages, array $bulk_counts ) :
/**
* Add language update fail count to bulk edit redirect.
*
* @since Unreleased Fix $_GET['bulk_edit'] check.
* @since 0.4.5 Fix $_GET['bulk_edit'] check.
* @since 0.4.0
*
* @param string $location
Expand Down
4 changes: 2 additions & 2 deletions lib/Posts/EditFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class EditFilters {
/**
* Register hooks.
*
* @since Unreleased Add views-edit-{$post_type} filter for all translatable post types.
* @since 0.4.5 Add views-edit-{$post_type} filter for all translatable post types.
* @since 0.4.2 Remove filter in $_GET when not in admin. Only add filter hook when $_GET filter is set. Stop post lang filter from being applied.
* @since 0.0.1
*/
Expand All @@ -43,7 +43,7 @@ public function register() {
/**
* Adds a filter to show posts without language.
*
* @since Unreleased Get post type via $_GET instead of `get_post`.
* @since 0.4.5 Get post type via $_GET instead of `get_post`.
* @since 0.4.2 Fixed the query not considering posts with unknown language.
* @since 0.4.0
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Posts/LinkTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function unlink( int $post_id ) : bool {
/**
* Get possible links for post $post_id.
*
* @since Unreleased Add search argument and search filter to query.
* @since 0.4.5 Add search argument and search filter to query.
* @since 0.1.0
*
* @param WP_Post $post
Expand Down
4 changes: 2 additions & 2 deletions lib/Router/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Directory {
* directory is removed and the lang query argument is added. This procedure needs to be done as
* early as possible in order to avoid problems.
*
* @since Unreleased Remove check for directory, already done inside current_lang_from_uri.
* @since 0.4.5 Remove check for directory, already done inside current_lang_from_uri.
* @since 0.0.1
*
* @return void
Expand All @@ -45,7 +45,7 @@ public function init() : void {
* If the $uri does not contain a known directory (language), then the first argument $curr_lang
* is returned.
*
* @since Unreleased Add check for routes like `{directory}?{key}={value}`.
* @since 0.4.5 Add check for routes like `{directory}?{key}={value}`.
* @since 0.0.1
*
* @param string $curr_lang
Expand Down
2 changes: 1 addition & 1 deletion lib/Terms/ChangeLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function register() {
/**
* Change the language of the saved term.
*
* @since Unreleased Add handling for nav_menu language change.
* @since 0.4.5 Add handling for nav_menu language change.
* @since 0.0.1
*
* @param int $term_id
Expand Down
2 changes: 1 addition & 1 deletion lib/Terms/CreateTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function register() {
/**
* Redirect to new term creation page to make a new translation.
*
* @since Unreleased Add redirect for nav_menu translation create.
* @since 0.4.5 Add redirect for nav_menu translation create.
* @since 0.0.1
*
* @param int $term_id
Expand Down
4 changes: 2 additions & 2 deletions unbabble.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Unbabble
* Plugin URI: https://github.com/26B/unbabble
* Description: A new and simple i18n system for WordPress
* Version: 0.4.4
* Version: 0.4.5
* Author: 26B
* Author URI: https://26b.io/
* License: GPL-2.0+
Expand Down Expand Up @@ -42,7 +42,7 @@
*/
\register_deactivation_hook( __FILE__, '\TwentySixB\WP\Plugin\Unbabble\Deactivator::deactivate' );

$plugin = new TwentySixB\WP\Plugin\Unbabble\Plugin( 'unbabble', '0.4.4' );
$plugin = new TwentySixB\WP\Plugin\Unbabble\Plugin( 'unbabble', '0.4.5' );

// Initialize plugin.
$plugin->init();
Expand Down

0 comments on commit 877b985

Please sign in to comment.