From c35cb18040153593bac8e4f5730b9b33bc9e14d9 Mon Sep 17 00:00:00 2001 From: imath Date: Sun, 3 Apr 2022 11:39:23 +0200 Subject: [PATCH] Bump plugin version to 1.0.0-RC1 This commit also fix two missing translated strings --- CHANGELOG.md | 22 ++++++++++++ class-bp-rewrites.php | 2 +- inc/globals.php | 2 +- languages/bp-rewrites-fr_FR.mo | Bin 7371 -> 8205 bytes languages/bp-rewrites-fr_FR.po | 34 +++++++++++++++--- languages/bp-rewrites.pot | 17 +++++++-- package.json | 2 +- src/bp-core/bp-core-template.php | 2 +- .../classes/class-bp-group-extension.php | 2 +- 9 files changed, 71 insertions(+), 12 deletions(-) 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 bf4b8ff6255bdfd08e252666ae9e1a1d2ee232c5..6cb5fd01adebbee598117f68bff29047cccebe73 100644 GIT binary patch delta 2518 zcmcK4TWl3Y7{KundqHcpMOr8bjA#WZJ#8r#DHU3Ztw1d&QDfC;yFF)GHlFUD?xmz6 zuD3uF#Z((_kwlC>*kIJ8QDeM3v_>Qt6Ezw!$^$PxC>j%^zUlv4wuUGqeR0w`zuDQ@ znVtE*?eUEVTceW;3Z7P!F6tH3`{yZT@Vf$jDET6#N^ltW<33!41;t8Tj%)EUY{i|J z#!K-KZo(sY5&n?$|B5nR&5zfMR2hwpT-RbF4&pL=0ju!c#4m9X*Qap_7BZ`h)3_Kn zql~{jaTsO%V<_WaPW%uTa(x0TRixC<$&JE`m0HOSjdBw0C_C@NrI*&@N1MwbwN z1NY(`#E*F+^%ac_9ZT3wh!5c7_!~-+Jw%GH!u|LxzK(KI9i%!DWT8 zrEZ`~Qgu*oqRRge$%U(_)zs^#QfjEJ(%71wYAh-#jB>{EjoxF~fgW%@9qcx`uRq_L zw>;nU4u{4Y?bEwm_g)>iy5Hyl+cQ}jj5Rv&Mr~(M?hKkBezenb!@Saf6 z%%Lw6+rjzg@l6osdmU?JF0YsIj1?GdX~t`IX=y*~m$uy$n4y%um0b_GxtzO4mW^-F zul-y&=xd9e<~_GRXNIi6&NS<4KQ+}-k|``*Ut8a(8ycD$n`-LUO}tk2>cpevYpQx` zJB?#JD{#GLopw!@qisypry3@P$`?)47gbFiEx)ZGy4iRcTW3!__`DSa#>uh@$E|Zl zPal~+EJr?lc>2Bn2E%um&vpXijTk4?)`;Z<@ifNwtx@CYtkK@gWG2kdOnO}ASi#O3 zC$Ixo47+8Yp`&Leb2F1eY}J=T zAdL1P5px~whSK4?p`X!|t$efSZ+U{rrvLx| delta 1660 zcmXxk+iy%!6vy#JX9m@xo$8pnO^cS^bf$G_8EvVSG^&kA8rMuO5pk(V5g`T-sL-g1 zhy)QHloY9wXe8o6B}jzCLwS(KiwBoKzyrR&)6<=<`RudLKDV{k?!~Hi>k3VrL+61$Dn1)ku8?L}TI0^5%Et7%cx($%4^Z$vL{%OL-n(Be+q>v|YYi~mO5KP}EIUe>aZ>{v09U8_Wv%No$x4X8Ceiq&`-mGVzm zfs~g2hk=AWI zq4m|aQ&TF}5qeR*yc$Jq`A&~z#Fa#ds3Nr1S|&ARsff_W>G`&rP)gJ)39UCtasDNf zHK%DGs{qFutKl@&j_PI!v5Zj7u#0UKv4EIIX!#<9wt6|CRz^^R=B?nTI+5-3XV=nW zF`bP=j-4_Dr>)iRz&>A^ci>4%%$r(T6pn;S$}7Ul3rfO?ob=vcb5ULU{`P~h&W?i> mp~jB(w%whfNO4(lB$4V5B;KayCl2_615y8G&%lo0Bj0~}^^p|- 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 ) {