Skip to content

Commit

Permalink
Merge pull request #23 from imath/1.5
Browse files Browse the repository at this point in the history
Prepare 1.5.3 release
  • Loading branch information
imath authored Jan 25, 2019
2 parents 6dc6230 + f0d0d26 commit 29b8764
Show file tree
Hide file tree
Showing 10 changed files with 193 additions and 89 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Change Log

## 1.5.3

_Requires WordPress 4.8_
_Tested up to WordPress 5.1_

### Bug fixes

- Fix 2 warnings into `Entrepot_REST_Blocks_Controller->prepare_item_for_response()`

### Newly Registered Block

- [Section](https://github.com/imath/section/)

---

## 1.5.2

_Requires WordPress 4.8_
Expand Down
4 changes: 2 additions & 2 deletions entrepot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Entrepôt
* Plugin URI: https://github.com/imath/entrepot/
* Description: Une liste d'extensions, de blocs et de thèmes gratuits hébergés sur GitHub.com.
* Version: 1.5.2
* Version: 1.5.3
* Requires at least: 4.8
* Tested up to: 5.0
* License: GNU/GPL 2
Expand Down Expand Up @@ -69,7 +69,7 @@ public static function start() {
*/
private function globals() {
// Version
$this->version = '1.5.2';
$this->version = '1.5.3';

// Domain
$this->domain = 'entrepot';
Expand Down
4 changes: 2 additions & 2 deletions inc/classes/class-entrepot-rest-blocks-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function prepare_item_for_response( $block, $request ) {

if ( in_array( $property, array( 'icon', 'releases', 'README', 'urls' ) ) ) {
if ( 'urls' === $property ) {
foreach ( $property as $property_key => $property_value ) {
foreach ( (array) $property as $property_key => $property_value ) {
$block[ $property ]->{$property_key} = esc_url_raw( $property_value );
}
} else {
Expand All @@ -282,7 +282,7 @@ public function prepare_item_for_response( $block, $request ) {

$block[ $property ] = strip_tags( $property_value );
} elseif ( 'tags' === $property ) {
$block[ $property ] = array_map( 'santize_text_field', $block[ $property ] );
$block[ $property ] = array_map( 'sanitize_text_field', $block[ $property ] );
} elseif ( 'dependencies' === $property ) {
$block[ $property ] = entrepot_get_repository_dependencies( $block[ $property ] );
}
Expand Down
Binary file modified languages/entrepot-en_US.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions languages/entrepot-en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# This file is distributed under the GNU/GPL 2.
msgid ""
msgstr ""
"Project-Id-Version: Entrepôt 1.5.2\n"
"Project-Id-Version: Entrepôt 1.5.3\n"
"Report-Msgid-Bugs-To: https://github.com/imath/entrepot/issues\n"
"POT-Creation-Date: 2019-01-17 00:33:00+00:00\n"
"PO-Revision-Date: 2019-01-17 01:34+0100\n"
"Last-Translator: imath <mathchristo@yahoo.fr>\n"
"POT-Creation-Date: 2019-01-25 12:28:03+00:00\n"
"PO-Revision-Date: 2019-01-25 13:32+0100\n"
"Last-Translator: imath <contact@imathi.eu>\n"
"Language-Team: imath <contact@imathi.eu>\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
Expand Down
4 changes: 2 additions & 2 deletions languages/entrepot.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the GNU/GPL 2.
msgid ""
msgstr ""
"Project-Id-Version: Entrepôt 1.5.2\n"
"Project-Id-Version: Entrepôt 1.5.3\n"
"Report-Msgid-Bugs-To: https://github.com/imath/entrepot/issues\n"
"POT-Creation-Date: 2019-01-17 00:33:00+00:00\n"
"POT-Creation-Date: 2019-01-25 12:28:03+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
Loading

0 comments on commit 29b8764

Please sign in to comment.