Skip to content

Commit

Permalink
Bump wpackagist-plugin/preferred-languages from 1.8.0 to 2.0.1 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion authored Oct 14, 2023
2 parents 5c38862 + e17adf2 commit 8c86869
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 43 deletions.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
],
"require": {
"php": ">=7.1",
"figuren-theater/ft-options": "^1",
"figuren-theater/ft-core-block-domaincheck": "^0.1",
"figuren-theater/install.php": "^1.1",
"stuttter/wp-user-profiles": "^2.6",
"stuttter/wp-multi-network":"^2.5",
"wpackagist-plugin/impressum":"^2.0",
"wpackagist-plugin/preferred-languages":"1.8.0",
"wpackagist-plugin/wp-approve-user": "^10"
"figuren-theater/ft-options": "*",
"figuren-theater/ft-core-block-domaincheck": "0.1.2",
"figuren-theater/install.php": "1.1.0",
"stuttter/wp-user-profiles": "2.6.2",
"stuttter/wp-multi-network":"2.5.2",
"wpackagist-plugin/impressum":"2.0.3",
"wpackagist-plugin/preferred-languages":"2.0.1",
"wpackagist-plugin/wp-approve-user": "10"
},
"extra": {
"altis": {
Expand Down
55 changes: 29 additions & 26 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions inc/sites/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ function bootstrap() {
function load() : void {

// allow subdomains with 3 chars only
add_filter( 'minimum_site_name_length', __NAMESPACE__ . '\\minimum_site_name_length' );
add_filter( 'minimum_site_name_length', __NAMESPACE__ . '\\minimum_site_name_length' );

if ( ! is_admin() )
return;

//
//
add_action( 'network_site_new_form', __NAMESPACE__ . '\\add_extra_field_on_blog_signup' ); // BE

// DEBUG
Expand All @@ -58,7 +58,7 @@ function add_extra_field_on_blog_signup() {

?>
<table class="form-table" role="presentation">
<tbody><!--
<tbody><!--
<tr class="form-field">
<th scope="row"><label for="ft_level"><?php _e( 'LEVEL ID von websites.fuer.f.t' ); ?> <span class="required">*</span></label></th>
<td><input style="max-width:25em;" name="ft_level" type="number" class="regular-text" id="ft_level" aria-describedby="site-ft_level" /></td>
Expand All @@ -74,7 +74,7 @@ function add_extra_field_on_blog_signup() {

function __get_ft_level_select() : string {
// 1. switch to (a) sitemanagement-blog, which has the required 'ft_level'-data
// TODO // find nice way to get (one of many) sitemanagement-blogs
// TODO #18 // find nice way to get (one of many) sitemanagement-blogs
$sitemanagement_blog = array_flip( FT_CORESITES )['webs'];
switch_to_blog( $sitemanagement_blog );

Expand All @@ -90,13 +90,13 @@ function __get_ft_level_select() : string {

function __ft_level_select() : string {

// not avail. via composer,
// not avail. via composer,
// so we have to require it usually
// if (file_exists( WPMU_PLUGIN_DIR . '/_ft_vendor/wp_dropdown_posts/wp_dropdown_posts.php' ) )
if (file_exists( Onboarding\DIRECTORY . '/inc/sites/wp_dropdown_posts/wp_dropdown_posts.php' ) )
// require_once WPMU_PLUGIN_DIR . '/_ft_vendor/wp_dropdown_posts/wp_dropdown_posts.php';
require_once Onboarding\DIRECTORY . '/inc/sites/wp_dropdown_posts/wp_dropdown_posts.php';

if ( ! function_exists( 'wp_dropdown_posts' ) )
return '';

Expand All @@ -120,7 +120,7 @@ function __ft_level_select() : string {
// 'value_field' => 'ID',
// 'order' => 'ASC',
// 'orderby' => 'post_title',


// WP_Query arguments
'post_type' => Post_Types\Post_Type__ft_level::NAME,
Expand All @@ -134,12 +134,12 @@ function __ft_level_select() : string {

function debug_ft_Site_Registration() {
// 1. switch to (a) sitemanagement-blog, which has the required 'ft_level'-data
// TODO // find nice way to get (one of many) sitemanagement-blogs
// TODO #18 // find nice way to get (one of many) sitemanagement-blogs
$sitemanagement_blog = array_flip( FT_CORESITES )['webs'];
// \switch_to_blog( $sitemanagement_blog );

// 4. get 'ft_level'-posts
//
//
// 4.1 Init our WP_Query wrapper
// $ft_level_query = \Figuren_Theater\FT_Query::init();

Expand Down

0 comments on commit 8c86869

Please sign in to comment.