Changeset 3063834
- Timestamp:
- 04/03/2024 02:42:25 PM (23 months ago)
- Location:
- glotpress
- Files:
-
- 14 edited
- 1 copied
-
tags/4.0.1 (copied) (copied from glotpress/trunk)
-
tags/4.0.1/CHANGELOG.md (modified) (3 diffs)
-
tags/4.0.1/glotpress.php (modified) (2 diffs)
-
tags/4.0.1/gp-includes/routes/glossary.php (modified) (1 diff)
-
tags/4.0.1/gp-includes/routes/project.php (modified) (1 diff)
-
tags/4.0.1/gp-includes/routes/translation-set.php (modified) (1 diff)
-
tags/4.0.1/gp-includes/routes/translation.php (modified) (2 diffs)
-
tags/4.0.1/readme.txt (modified) (1 diff)
-
trunk/CHANGELOG.md (modified) (3 diffs)
-
trunk/glotpress.php (modified) (2 diffs)
-
trunk/gp-includes/routes/glossary.php (modified) (1 diff)
-
trunk/gp-includes/routes/project.php (modified) (1 diff)
-
trunk/gp-includes/routes/translation-set.php (modified) (1 diff)
-
trunk/gp-includes/routes/translation.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
glotpress/tags/4.0.1/CHANGELOG.md
r3047175 r3063834 1 1 All notable changes to this project will be documented in this file. 2 2 This project adheres to [Semantic Versioning](http://semver.org/). 3 4 ## [4.0.1] (April 3, 2024) 5 6 **Bugfixes** 7 * Fix errors when URL parameters like "filter[status]" aren't strings ([#1814]) 3 8 4 9 ## [4.0.0] (March 7, 2024) … … 650 655 * Initial release. 651 656 652 [Unreleased]: https://github.com/GlotPress/GlotPress/compare/4.0.0...HEAD 657 [Unreleased]: https://github.com/GlotPress/GlotPress/compare/4.0.1...HEAD 658 [4.0.1]: https://github.com/GlotPress/GlotPress/compare/4.0.0...4.0.1 653 659 [4.0.0]: https://github.com/GlotPress/GlotPress/compare/4.0.0-rc.1...4.0.0 654 660 [4.0.0-rc.1]: https://github.com/GlotPress/GlotPress/compare/4.0.0-beta.3...4.0.0-rc.1 … … 828 834 [#1786]: https://github.com/GlotPress/GlotPress/pull/1786 829 835 [#1792]: https://github.com/GlotPress/GlotPress/pull/1792 836 [#1803]: https://github.com/GlotPress/GlotPress/pull/1803 837 [#1814]: https://github.com/GlotPress/GlotPress/pull/1814 838 [#1815]: https://github.com/GlotPress/GlotPress/pull/1815 839 [#1820]: https://github.com/GlotPress/GlotPress/pull/1820 840 [#1821]: https://github.com/GlotPress/GlotPress/pull/1821 841 [#1819]: https://github.com/GlotPress/GlotPress/pull/1819 842 [#1818]: https://github.com/GlotPress/GlotPress/pull/1818 843 [#1809]: https://github.com/GlotPress/GlotPress/pull/1809 844 [#1807]: https://github.com/GlotPress/GlotPress/pull/1807 845 [#1773]: https://github.com/GlotPress/GlotPress/pull/1773 -
glotpress/tags/4.0.1/glotpress.php
r3047175 r3063834 4 4 * Plugin URI: https://wordpress.org/plugins/glotpress/ 5 5 * Description: GlotPress is a tool to help translators collaborate. 6 * Version: 4.0. 06 * Version: 4.0.1 7 7 * Requires at least: 4.6 8 * Tested up to: 6. 48 * Tested up to: 6.5 9 9 * Requires PHP: 7.4 10 10 * Author: the GlotPress team … … 30 30 */ 31 31 32 define( 'GP_VERSION', '4.0. 0' );32 define( 'GP_VERSION', '4.0.1' ); 33 33 define( 'GP_DB_VERSION', '980' ); 34 34 define( 'GP_CACHE_VERSION', '3.0' ); -
glotpress/tags/4.0.1/gp-includes/routes/glossary.php
r2290426 r3063834 16 16 17 17 public function new_get() { 18 $glossary = new GP_Glossary(); 19 $glossary->translation_set_id = gp_get( 'translation_set_id' ); 18 $glossary = new GP_Glossary(); 19 20 $translation_set_id = gp_get( 'translation_set_id' ); 21 22 // Make sure 'translation_set_id' is a numeric string and convert to int ID. Defaults to null. 23 $translation_set_id = is_numeric( $translation_set_id ) ? intval( $translation_set_id ) : null; 24 25 if ( is_null( $translation_set_id ) ) { 26 $this->redirect_with_error( __( 'Couldn’t find translation set with this ID.', 'glotpress' ) ); 27 return; 28 } 29 30 $glossary->translation_set_id = $translation_set_id; 20 31 21 32 $translation_set = $glossary->translation_set_id ? GP::$translation_set->get( $glossary->translation_set_id ) : null; -
glotpress/tags/4.0.1/gp-includes/routes/project.php
r2872254 r3063834 289 289 290 290 public function new_get() { 291 $project = new GP_Project(); 292 $project->active = 1; 293 $project->parent_project_id = gp_get( 'parent_project_id', null ); 291 $project = new GP_Project(); 292 $project->active = 1; 293 294 $parent_project_id = gp_get( 'parent_project_id' ); 295 296 // Make sure 'parent_project_id' is a numeric string and convert to int ID. Defaults to null. 297 $project->parent_project_id = is_numeric( $parent_project_id ) ? intval( $parent_project_id ) : null; 294 298 295 299 if ( $this->cannot_and_redirect( 'write', 'project', $project->parent_project_id ) ) { -
glotpress/tags/4.0.1/gp-includes/routes/translation-set.php
r2290426 r3063834 15 15 class GP_Route_Translation_Set extends GP_Route_Main { 16 16 public function new_get() { 17 $set = new GP_Translation_Set(); 18 $set->project_id = gp_get( 'project_id' ); 19 $project = $set->project_id ? GP::$project->get( $set->project_id ) : null; 17 $set = new GP_Translation_Set(); 18 $project_id = gp_get( 'project_id' ); 19 20 // Make sure 'project_id' is a numeric string and convert to int ID. Defaults to null. 21 $set->project_id = is_numeric( $project_id ) ? intval( $project_id ) : null; 22 23 $project = $set->project_id ? GP::$project->get( $set->project_id ) : null; 20 24 if ( $this->cannot_edit_set_and_redirect( $set ) ) { 21 25 return; -
glotpress/tags/4.0.1/gp-includes/routes/translation.php
r2943118 r3063834 162 162 $filename = apply_filters( 'gp_export_translations_filename', $filename, $format, $locale, $project, $translation_set ); 163 163 164 $entries = GP::$translation->for_export( $project, $translation_set, gp_get( 'filters' ) ); 164 $filters = gp_get( 'filters', array() ); 165 $filters = array_filter( $filters, 'is_scalar' ); 166 167 $entries = GP::$translation->for_export( $project, $translation_set, $filters ); 165 168 166 169 if ( gp_has_translation_been_updated( $translation_set ) ) { … … 193 196 194 197 $page = gp_get( 'page', 1 ); 198 $page = is_numeric( $page ) ? intval( $page ) : 1; 195 199 $filters = gp_get( 'filters', array() ); 200 $filters = array_filter( $filters, 'is_scalar' ); 196 201 $sort = gp_get( 'sort', array() ); 202 $sort = array_filter( $sort, 'is_scalar' ); 197 203 198 204 if ( is_array( $sort ) && 'random' === gp_array_get( $sort, 'by' ) ) { -
glotpress/tags/4.0.1/readme.txt
r3047216 r3063834 3 3 Tags: translation 4 4 Requires at least: 4.6 5 Tested up to: 6. 4.25 Tested up to: 6.5 6 6 Requires PHP: 7.4 7 Stable tag: 4.0. 07 Stable tag: 4.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
glotpress/trunk/CHANGELOG.md
r3047175 r3063834 1 1 All notable changes to this project will be documented in this file. 2 2 This project adheres to [Semantic Versioning](http://semver.org/). 3 4 ## [4.0.1] (April 3, 2024) 5 6 **Bugfixes** 7 * Fix errors when URL parameters like "filter[status]" aren't strings ([#1814]) 3 8 4 9 ## [4.0.0] (March 7, 2024) … … 650 655 * Initial release. 651 656 652 [Unreleased]: https://github.com/GlotPress/GlotPress/compare/4.0.0...HEAD 657 [Unreleased]: https://github.com/GlotPress/GlotPress/compare/4.0.1...HEAD 658 [4.0.1]: https://github.com/GlotPress/GlotPress/compare/4.0.0...4.0.1 653 659 [4.0.0]: https://github.com/GlotPress/GlotPress/compare/4.0.0-rc.1...4.0.0 654 660 [4.0.0-rc.1]: https://github.com/GlotPress/GlotPress/compare/4.0.0-beta.3...4.0.0-rc.1 … … 828 834 [#1786]: https://github.com/GlotPress/GlotPress/pull/1786 829 835 [#1792]: https://github.com/GlotPress/GlotPress/pull/1792 836 [#1803]: https://github.com/GlotPress/GlotPress/pull/1803 837 [#1814]: https://github.com/GlotPress/GlotPress/pull/1814 838 [#1815]: https://github.com/GlotPress/GlotPress/pull/1815 839 [#1820]: https://github.com/GlotPress/GlotPress/pull/1820 840 [#1821]: https://github.com/GlotPress/GlotPress/pull/1821 841 [#1819]: https://github.com/GlotPress/GlotPress/pull/1819 842 [#1818]: https://github.com/GlotPress/GlotPress/pull/1818 843 [#1809]: https://github.com/GlotPress/GlotPress/pull/1809 844 [#1807]: https://github.com/GlotPress/GlotPress/pull/1807 845 [#1773]: https://github.com/GlotPress/GlotPress/pull/1773 -
glotpress/trunk/glotpress.php
r3047175 r3063834 4 4 * Plugin URI: https://wordpress.org/plugins/glotpress/ 5 5 * Description: GlotPress is a tool to help translators collaborate. 6 * Version: 4.0. 06 * Version: 4.0.1 7 7 * Requires at least: 4.6 8 * Tested up to: 6. 48 * Tested up to: 6.5 9 9 * Requires PHP: 7.4 10 10 * Author: the GlotPress team … … 30 30 */ 31 31 32 define( 'GP_VERSION', '4.0. 0' );32 define( 'GP_VERSION', '4.0.1' ); 33 33 define( 'GP_DB_VERSION', '980' ); 34 34 define( 'GP_CACHE_VERSION', '3.0' ); -
glotpress/trunk/gp-includes/routes/glossary.php
r2290426 r3063834 16 16 17 17 public function new_get() { 18 $glossary = new GP_Glossary(); 19 $glossary->translation_set_id = gp_get( 'translation_set_id' ); 18 $glossary = new GP_Glossary(); 19 20 $translation_set_id = gp_get( 'translation_set_id' ); 21 22 // Make sure 'translation_set_id' is a numeric string and convert to int ID. Defaults to null. 23 $translation_set_id = is_numeric( $translation_set_id ) ? intval( $translation_set_id ) : null; 24 25 if ( is_null( $translation_set_id ) ) { 26 $this->redirect_with_error( __( 'Couldn’t find translation set with this ID.', 'glotpress' ) ); 27 return; 28 } 29 30 $glossary->translation_set_id = $translation_set_id; 20 31 21 32 $translation_set = $glossary->translation_set_id ? GP::$translation_set->get( $glossary->translation_set_id ) : null; -
glotpress/trunk/gp-includes/routes/project.php
r2872254 r3063834 289 289 290 290 public function new_get() { 291 $project = new GP_Project(); 292 $project->active = 1; 293 $project->parent_project_id = gp_get( 'parent_project_id', null ); 291 $project = new GP_Project(); 292 $project->active = 1; 293 294 $parent_project_id = gp_get( 'parent_project_id' ); 295 296 // Make sure 'parent_project_id' is a numeric string and convert to int ID. Defaults to null. 297 $project->parent_project_id = is_numeric( $parent_project_id ) ? intval( $parent_project_id ) : null; 294 298 295 299 if ( $this->cannot_and_redirect( 'write', 'project', $project->parent_project_id ) ) { -
glotpress/trunk/gp-includes/routes/translation-set.php
r2290426 r3063834 15 15 class GP_Route_Translation_Set extends GP_Route_Main { 16 16 public function new_get() { 17 $set = new GP_Translation_Set(); 18 $set->project_id = gp_get( 'project_id' ); 19 $project = $set->project_id ? GP::$project->get( $set->project_id ) : null; 17 $set = new GP_Translation_Set(); 18 $project_id = gp_get( 'project_id' ); 19 20 // Make sure 'project_id' is a numeric string and convert to int ID. Defaults to null. 21 $set->project_id = is_numeric( $project_id ) ? intval( $project_id ) : null; 22 23 $project = $set->project_id ? GP::$project->get( $set->project_id ) : null; 20 24 if ( $this->cannot_edit_set_and_redirect( $set ) ) { 21 25 return; -
glotpress/trunk/gp-includes/routes/translation.php
r2943118 r3063834 162 162 $filename = apply_filters( 'gp_export_translations_filename', $filename, $format, $locale, $project, $translation_set ); 163 163 164 $entries = GP::$translation->for_export( $project, $translation_set, gp_get( 'filters' ) ); 164 $filters = gp_get( 'filters', array() ); 165 $filters = array_filter( $filters, 'is_scalar' ); 166 167 $entries = GP::$translation->for_export( $project, $translation_set, $filters ); 165 168 166 169 if ( gp_has_translation_been_updated( $translation_set ) ) { … … 193 196 194 197 $page = gp_get( 'page', 1 ); 198 $page = is_numeric( $page ) ? intval( $page ) : 1; 195 199 $filters = gp_get( 'filters', array() ); 200 $filters = array_filter( $filters, 'is_scalar' ); 196 201 $sort = gp_get( 'sort', array() ); 202 $sort = array_filter( $sort, 'is_scalar' ); 197 203 198 204 if ( is_array( $sort ) && 'random' === gp_array_get( $sort, 'by' ) ) { -
glotpress/trunk/readme.txt
r3047216 r3063834 3 3 Tags: translation 4 4 Requires at least: 4.6 5 Tested up to: 6. 4.25 Tested up to: 6.5 6 6 Requires PHP: 7.4 7 Stable tag: 4.0. 07 Stable tag: 4.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.