diff --git a/CHANGELOG.md b/CHANGELOG.md index e26791f..1279c92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Change Log +## 1.0.0-RC1 + +_Requires WordPress 5.4_ +_Tested up to WordPress 6.0-alpha_ +_Requires BuddyPress 10.0_ +_Tested up to BuddyPress 11.0-alpha_ + +### Description + +This is the BuddyPress Rewrites feature as a plugin. Thanks to it you'll get full control on any BuddyPress URLs. Please note this plugin is still under active development: you should probably use a local/staging site to play with it 😉. + +### Bug fixes + +- Make sure BP Rewrites loads when BuddyPress is network activated. See #32. +- Avoid a fatar error when trying to access to a BP Core Nav too early. See #33. + +### Props + +@adiloztaser, @eha1, @imath. + +--- + ## 1.0.0-beta2 _Requires WordPress 5.4_ diff --git a/class-bp-rewrites.php b/class-bp-rewrites.php index 29cd21b..249b43c 100644 --- a/class-bp-rewrites.php +++ b/class-bp-rewrites.php @@ -11,7 +11,7 @@ * Plugin Name: BP Rewrites * Plugin URI: https://github.com/buddypress/bp-rewrites * Description: BuddyPress Rewrites development plugin. - * Version: 1.0.0-beta2 + * Version: 1.0.0-RC1 * Author: The BuddyPress Community * Author URI: https://buddypress.org * License: GPL-2.0+ diff --git a/inc/globals.php b/inc/globals.php index cbb708f..478e9e5 100644 --- a/inc/globals.php +++ b/inc/globals.php @@ -21,7 +21,7 @@ function globals() { $bpr = bp_rewrites(); - $bpr->version = '1.0.0-beta2'; + $bpr->version = '1.0.0-RC1'; // Path. $plugin_dir = plugin_dir_path( dirname( __FILE__ ) ); diff --git a/languages/bp-rewrites-fr_FR.mo b/languages/bp-rewrites-fr_FR.mo index bf4b8ff..6cb5fd0 100644 Binary files a/languages/bp-rewrites-fr_FR.mo and b/languages/bp-rewrites-fr_FR.mo differ diff --git a/languages/bp-rewrites-fr_FR.po b/languages/bp-rewrites-fr_FR.po index 93ccef3..2d7a63c 100644 --- a/languages/bp-rewrites-fr_FR.po +++ b/languages/bp-rewrites-fr_FR.po @@ -4,17 +4,17 @@ msgid "" msgstr "" "Project-Id-Version: BP Rewrites\n" "Report-Msgid-Bugs-To: https://github.com/buddypress/bp-rewrites/issues\n" -"POT-Creation-Date: 2022-03-12T08:17:23+00:00\n" -"PO-Revision-Date: 2022-03-12 09:18+0100\n" +"POT-Creation-Date: 2022-04-03T09:35:03+00:00\n" +"PO-Revision-Date: 2022-04-03 11:36+0200\n" "Last-Translator: \n" "Language-Team: ENGLISH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.4.2\n" -"X-Domain: bp-rewrites\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 3.0.1\n" +"X-Domain: bp-rewrites\n" #. Plugin Name of the plugin msgid "BP Rewrites" @@ -141,6 +141,22 @@ msgstr "Terminaison d’URL « %s »" msgid "Save Settings" msgstr "Enregistrer les rĂ©glages" +#: src/bp-core/bp-core-template.php:51 +msgid "Please wait for the `bp_parse_query` hook to be fired before using it." +msgstr "" +"Merci d’attendre que le « hook » `bp_parse_query` soit intervenu avant " +"d’essayer de l’utiliser." + +#. Translators: 1: the list of nav items that were not added. +#: src/bp-core/classes/class-core-nav-compat.php:47 +msgid "" +"Please wait for the `bp_setup_nav` hook to be fired before trying to create " +"a nav or a subnav item. The following nav item slugs are problematic: %s." +msgstr "" +"Merci d’attendre que le « hook » `bp_setup_nav` soit intervenu avant " +"d’essayer de crĂ©er un Ă©lĂ©ments de navigation ou de sous-navigation. Les " +"terminaisons d’url des Ă©lĂ©ments suivants sont problĂ©matique : %s." + #: src/bp-groups/actions/create.php:35 msgid "Sorry, you are not allowed to create groups." msgstr "DĂ©solĂ©, vous n’ĂȘtes pas autorisé·e Ă  crĂ©er des groupes." @@ -276,6 +292,14 @@ msgctxt "Group manage view" msgid "Delete" msgstr "Supprimer" +#: src/bp-groups/classes/class-bp-group-extension.php:517 +msgid "" +"Please wait for the `bp_parse_query` hook to be fired before trying to get " +"the Group ID." +msgstr "" +"Merci d’attendre que le « hook » `bp_parse_query` soit intervenu avant " +"d’essayer de rĂ©cupĂ©rer l’identifiant de groupe." + #: src/bp-groups/classes/class-bp-group-extension.php:565 msgid "Save Changes" msgstr "Enregistrer les changements" @@ -296,7 +320,7 @@ msgstr "Invitations en attente" msgid "Send Invites" msgstr "Inviter" -#: src/bp-members/classes/class-members-component.php:540 +#: src/bp-members/classes/class-members-component.php:567 msgid "" "This user has been marked as a spammer. Only site admins can view this " "profile." diff --git a/languages/bp-rewrites.pot b/languages/bp-rewrites.pot index a9b70e2..b2bcf59 100644 --- a/languages/bp-rewrites.pot +++ b/languages/bp-rewrites.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2022-03-12T08:17:23+00:00\n" +"POT-Creation-Date: 2022-04-03T09:35:03+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.5.0\n" "X-Domain: bp-rewrites\n" @@ -132,6 +132,15 @@ msgstr "" msgid "Save Settings" msgstr "" +#: src/bp-core/bp-core-template.php:51 +msgid "Please wait for the `bp_parse_query` hook to be fired before using it." +msgstr "" + +#. Translators: 1: the list of nav items that were not added. +#: src/bp-core/classes/class-core-nav-compat.php:47 +msgid "Please wait for the `bp_setup_nav` hook to be fired before trying to create a nav or a subnav item. The following nav item slugs are problematic: %s." +msgstr "" + #: src/bp-groups/actions/create.php:35 msgid "Sorry, you are not allowed to create groups." msgstr "" @@ -262,6 +271,10 @@ msgctxt "Group manage view" msgid "Delete" msgstr "" +#: src/bp-groups/classes/class-bp-group-extension.php:517 +msgid "Please wait for the `bp_parse_query` hook to be fired before trying to get the Group ID." +msgstr "" + #: src/bp-groups/classes/class-bp-group-extension.php:565 msgid "Save Changes" msgstr "" @@ -282,7 +295,7 @@ msgstr "" msgid "Send Invites" msgstr "" -#: src/bp-members/classes/class-members-component.php:540 +#: src/bp-members/classes/class-members-component.php:567 msgid "This user has been marked as a spammer. Only site admins can view this profile." msgstr "" diff --git a/package.json b/package.json index 16d8512..31567bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bp-rewrites", - "version": "1.0.0-beta2", + "version": "1.0.0-RC1", "description": "BuddyPress Rewrites development plugin", "scripts": { "pot": "wp i18n make-pot . languages/bp-rewrites.pot --exclude='.github,vendor' --headers='{\"Project-Id-Version\": \"BP Rewrites\", \"Report-Msgid-Bugs-To\": \"https://github.com/buddypress/bp-rewrites/issues\", \"Last-Translator\": \"JOHN JAMES JACOBY \", \"Language-Team\": \"ENGLISH \"}'" diff --git a/src/bp-core/bp-core-template.php b/src/bp-core/bp-core-template.php index d116fdf..ffc2c51 100644 --- a/src/bp-core/bp-core-template.php +++ b/src/bp-core/bp-core-template.php @@ -48,7 +48,7 @@ function _was_called_too_early( $function, $bp_global ) { */ if ( false === strpos( $debug_backtrace, 'BP_Core->setup_globals, bp_user_has_access' ) ) { ob_start(); - _doing_it_wrong( esc_html( $function ), esc_html__( 'Please wait for the `bp_parse_query` hook to be fired before using it.' ), 'BP Rewrites' ); + _doing_it_wrong( esc_html( $function ), esc_html__( 'Please wait for the `bp_parse_query` hook to be fired before using it.', 'bp-rewrites' ), 'BP Rewrites' ); $doing_it_wrong = ob_get_clean(); printf( diff --git a/src/bp-groups/classes/class-bp-group-extension.php b/src/bp-groups/classes/class-bp-group-extension.php index 794d44f..a34ee56 100644 --- a/src/bp-groups/classes/class-bp-group-extension.php +++ b/src/bp-groups/classes/class-bp-group-extension.php @@ -514,7 +514,7 @@ public static function get_group_id() { if ( self::query_parsed() ) { $group_id = bp_get_current_group_id(); } else { - _doing_it_wrong( __METHOD__, esc_html__( 'Please wait for the `bp_parse_query` hook to be fired before trying to get the Group ID.' ), 'BP Rewrites' ); + _doing_it_wrong( __METHOD__, esc_html__( 'Please wait for the `bp_parse_query` hook to be fired before trying to get the Group ID.', 'bp-rewrites' ), 'BP Rewrites' ); $current_group = BP\Rewrites\bp_core_get_from_uri( array( 'current_group' ) ); if ( isset( $current_group->id ) && $current_group->id ) {