Skip to content

Commit

Permalink
Release 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
goncaloasimoes committed Jul 18, 2024
1 parent ec1267c commit c0489cf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 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.6] - 2024-07-18

### Added

- Actions added to `LangInterface`:
Expand Down Expand Up @@ -428,7 +430,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.5...HEAD
[unreleased]: https://github.com/26b/unbabble/compare/0.4.6...HEAD
[0.4.6]: https://github.com/26b/unbabble/compare/0.4.5...0.4.6
[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
Expand Down
2 changes: 1 addition & 1 deletion lib/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private function should_enqueue_scripts() : bool {
/**
* Returns the current post type.
*
* @since Unreleased
* @since 0.4.6
*
* @return string|null
*/
Expand Down
36 changes: 18 additions & 18 deletions lib/LangInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static function is_post_type_translatable( string $post_type ) : bool {
* If the language is already set, nothing will happen and it will return `false`. Use the $force
* argument to force the language change.
*
* @since Unreleased Added `ubb_post_language_set` action.
* @since 0.4.6 Added `ubb_post_language_set` action.
* @since 0.0.1
*
* @param int $post_id The post that language is being set for.
Expand Down Expand Up @@ -226,7 +226,7 @@ public static function set_post_language( int $post_id, string $language, bool $
/**
* Fires after a post's language is set.
*
* @since Unreleased
* @since 0.4.6
*
* @param int $post_id ID of the post.
* @param string $language Language code of the post.
Expand Down Expand Up @@ -284,7 +284,7 @@ public static function get_post_language( int $post_id ) : ?string {
*
* A post's source, via a meta entry, is what links it to other posts (translations).
*
* @since Unreleased Added `ubb_post_source_set` action.
* @since 0.4.6 Added `ubb_post_source_set` action.
* @since 0.0.1
*
* @param int $post_id Post to set source for.
Expand Down Expand Up @@ -316,7 +316,7 @@ public static function set_post_source( int $post_id, string $source_id, bool $f
/**
* Fires after a post's source is set.
*
* @since Unreleased
* @since 0.4.6
*
* @param int $post_id ID of the post.
* @param string $source_id Source ID of the post.
Expand All @@ -332,7 +332,7 @@ public static function set_post_source( int $post_id, string $source_id, bool $f
/**
* Returns the post's source ID.
*
* @since Unreleased Delete empty string `ubb_source`'s from the DB.
* @since 0.4.6 Delete empty string `ubb_source`'s from the DB.
* @since 0.0.1
*
* @param int $post_id ID of the post to get source for.
Expand Down Expand Up @@ -389,7 +389,7 @@ public static function get_post_translation( int $post_id, string $lang ) : ?int
/**
* Returns a post's translations.
*
* @since Unreleased Change null check to empty check for $source_id to prevent errors from empty ubb_source's.
* @since 0.4.6 Change null check to empty check for $source_id to prevent errors from empty ubb_source's.
* @since 0.0.1
*
* @param int $post_id ID of post to get translatiosn for.
Expand Down Expand Up @@ -427,7 +427,7 @@ public static function get_post_translations( int $post_id ) : array {
* `ubb_change_language_post_meta_translate_keys` filter, more in-depth description on the
* filter documentation.
*
* @since Unreleased Add `ubb_post_language_change` action.
* @since 0.4.6 Add `ubb_post_language_change` action.
* @since 0.0.1
*
* @param int $post_id ID of the post being changed.
Expand Down Expand Up @@ -474,7 +474,7 @@ public static function change_post_language( int $post_id, string $lang ) : bool
*
* TODO: should this be the same action as the one in `set_post_language`?
*
* @since Unreleased
* @since 0.4.6
*
* @param int $post_id ID of the post.
* @param string $lang New language of the post.
Expand Down Expand Up @@ -608,7 +608,7 @@ public static function get_new_post_source_id() : string {
*
* Unlinks post from its translations.
*
* @since Unreleased Added `ubb_post_source_delete` action.
* @since 0.4.6 Added `ubb_post_source_delete` action.
* @since 0.0.1
*
* @param string $post_id ID of the post to delete source.
Expand All @@ -628,7 +628,7 @@ public static function delete_post_source( string $post_id ) : bool {
/**
* Fires before a post's source is deleted.
*
* @since Unreleased
* @since 0.4.6
*
* @param int $post_id ID of the post.
* @param string $post_source Source ID of the post.
Expand Down Expand Up @@ -668,7 +668,7 @@ public static function is_taxonomy_translatable( string $taxonomy ) : bool {
* If the language is already set, nothing will happen and it will return `false`. Use the $force
* argument to force the language change.
*
* @since Unreleased Added `ubb_term_language_set` action.
* @since 0.4.6 Added `ubb_term_language_set` action.
* @since 0.0.1
*
* @param int $term_id The term that language is being set for.
Expand Down Expand Up @@ -706,7 +706,7 @@ public static function set_term_language( int $term_id, string $language, bool $
/**
* Fires after a term's language is set.
*
* @since Unreleased
* @since 0.4.6
*
* @param int $term_id ID of the term.
* @param string $language Language code of the term.
Expand Down Expand Up @@ -753,7 +753,7 @@ public static function get_term_language( int $term_id ) : ?string {
*
* A term's source, via a meta entry, is what links it to other terms (translations).
*
* @since Unreleased Added `ubb_term_source_set` action.
* @since 0.4.6 Added `ubb_term_source_set` action.
* @since 0.0.1
*
* @param int $term_id Post to set source for.
Expand Down Expand Up @@ -784,7 +784,7 @@ public static function set_term_source( int $term_id, string $source_id, bool $f
/**
* Fires after a term's source is set.
*
* @since Unreleased
* @since 0.4.6
*
* @param int $term_id ID of the term.
* @param string $source_id Source ID of the term.
Expand Down Expand Up @@ -885,7 +885,7 @@ public static function get_term_translations( int $term_id ) : array {
*
* TODO: What to do when term language changes? How to handle post relationships?
*
* @since Unreleased Added `ubb_term_language_change` action.
* @since 0.4.6 Added `ubb_term_language_change` action.
* @since 0.0.1
*
* @param int $term_id ID of the term being changed.
Expand Down Expand Up @@ -926,7 +926,7 @@ public static function change_term_language( int $term_id, string $lang ) : bool
*
* TODO: should this be the same action as the one in `set_term_language`?
*
* @since Unreleased
* @since 0.4.6
*
* @param int $term_id ID of the term.
* @param string $lang New language of the term.
Expand Down Expand Up @@ -1016,7 +1016,7 @@ public static function get_new_term_source_id() : string {
*
* Unlinks term from its translations.
*
* @since Unreleased Added `ubb_term_source_delete` action.
* @since 0.4.6 Added `ubb_term_source_delete` action.
* @since 0.0.1
*
* @param string $term_id ID of the term to delete source.
Expand All @@ -1036,7 +1036,7 @@ public static function delete_term_source( string $term_id ) : bool {
/**
* Fires before a term's source is deleted.
*
* @since Unreleased
* @since 0.4.6
*
* @param int $term_id ID of the term.
* @param string $term_source Source ID of the term.
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.5
* Version: 0.4.6
* 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.5' );
$plugin = new TwentySixB\WP\Plugin\Unbabble\Plugin( 'unbabble', '0.4.6' );

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

0 comments on commit c0489cf

Please sign in to comment.