Skip to content

Commit

Permalink
Release 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
goncaloasimoes committed Jul 3, 2024
1 parent ecfe5fe commit ce51d25
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
2 changes: 2 additions & 0 deletions 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.0] - 2024-07-03

### Added

- Changing post's language via bulk edit (#66).
Expand Down
2 changes: 1 addition & 1 deletion lib/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public static function is_block_editor( WP_Screen $screen = null ) : bool {
*
* Stop enqueuing scripts if the current screen is for an untranslatable post type.
*
* @since 0.3.2
* @since 0.4.0
*
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/LangInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ public static function translate_current_url( string $lang ) : string {
* 'account/address'. Only the top route 'account' needs to be added to this filter,
* since WordPress will match the top route in the rewrite rules.
*
* @since 0.3.2
* @since 0.4.0
*
* @param array $routes Translatable routes.
* @param string $lang Language code to translate route to.
Expand Down
18 changes: 9 additions & 9 deletions lib/Posts/BulkEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
/**
* For hooks related to bulk actions for posts.
*
* @since 0.3.2
* @since 0.4.0
*/
class BulkEdit {

/**
* Register hooks.
*
* @since 0.3.2
* @since 0.4.0
*
* @return void
*/
Expand All @@ -37,7 +37,7 @@ public function register() {
/**
* Adds custom columns.
*
* @since 0.3.2
* @since 0.4.0
*
* @return void
*/
Expand All @@ -54,7 +54,7 @@ public function add_custom_columns() : void {
/**
* Adds admin columns.
*
* @since 0.3.2
* @since 0.4.0
*
* @param array $columns Columns.
* @return array
Expand All @@ -67,7 +67,7 @@ public function add_admin_columns( array $columns ) : array {
/**
* Populates custom columns.
*
* @since 0.3.2
* @since 0.4.0
*
* @param string $column Column name.
* @param int $post_id Post ID.
Expand All @@ -94,7 +94,7 @@ public function populate_custom_columns( string $column, int $post_id ) : void {
/**
* Adds bulk edit custom box.
*
* @since 0.3.2
* @since 0.4.0
*
* @param string $column_name Column name.
* @param string $post_type Post type.
Expand Down Expand Up @@ -163,7 +163,7 @@ public function bulk_edit_custom_box( string $column_name, string $post_type ) :
/**
* Saves the bulk edit.
*
* @since 0.3.2
* @since 0.4.0
*
* @param int $post_id Post ID.
* @return void
Expand Down Expand Up @@ -219,7 +219,7 @@ public function save_bulk_edit( int $post_id ) : void {
/**
* Adds a message to the bulk edit update message.
*
* @since 0.3.2
* @since 0.4.0
*
* @param array $bulk_messages Bulk messages.
* @param array $bulk_counts Bulk counts.
Expand Down Expand Up @@ -268,7 +268,7 @@ public function bulk_edit_messages( array $bulk_messages, array $bulk_counts ) :
/**
* Add language update fail count to bulk edit redirect.
*
* @since 0.3.2
* @since 0.4.0
*
* @param string $location
* @return string
Expand Down
4 changes: 2 additions & 2 deletions lib/Posts/EditFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function filter_posts_without_language( string $where, \WP_Query $query )
/**
* Returns whether the filtering of posts should happen.
*
* @since 0.3.2
* @since 0.4.0
*
* @param WP_Query $query
* @return bool
Expand Down Expand Up @@ -126,7 +126,7 @@ private function allow_filter( \WP_Query $query ) : bool {
/**
* Filters whether posts should be filtered by having an unknown language or having no language.
*
* @since 0.3.2
* @since 0.4.0
*
* @param bool $apply_filter
* @param WP_Query $query
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.3.1
* Version: 0.4.0
* Author: 26B
* Author URI: https://26b.io/
* License: GPL-2.0+
Expand Down Expand Up @@ -34,7 +34,7 @@
*/
\register_deactivation_hook( __FILE__, '\TwentySixB\WP\Plugin\Unbabble\Deactivator::deactivate' );

$plugin = new TwentySixB\WP\Plugin\Unbabble\Plugin( 'unbabble', '0.3.1' );
$plugin = new TwentySixB\WP\Plugin\Unbabble\Plugin( 'unbabble', '0.4.0' );

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

0 comments on commit ce51d25

Please sign in to comment.