Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP 8.2 fixes #700

Merged
merged 5 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions common/php/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class EF_Module {
'private',
);

public $module_url;

public $module;

function __construct() {}

/**
Expand Down Expand Up @@ -437,7 +441,7 @@ function timesince( $original ) {
}
}

return sprintf( _n( "1 $name ago", "$count ${name}s ago", $count), $count);
return sprintf( _n( "1 $name ago", "$count {$name}s ago", $count), $count);
}

/**
Expand Down Expand Up @@ -478,7 +482,7 @@ function users_select_form( $selected = null, $args = null ) {

<?php if( !empty($users) ) : ?>
<ul class="<?php echo esc_attr( $list_class ) ?>">
<?php foreach( $users as $user ) :
<?php foreach( $users as $user ) :
$checked = ( in_array($user->ID, $selected) ) ? 'checked="checked"' : '';
// Add a class to checkbox of current user so we know not to add them in notified list during notifiedMessage() js function
$current_user_class = ( get_current_user_id() == $user->ID ) ? 'class="post_following_list-current_user" ' : '';
Expand Down
20 changes: 20 additions & 0 deletions edit_flow.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function _ef_print_php_version_admin_notice() {
define( 'EDIT_FLOW_SETTINGS_PAGE' , add_query_arg( 'page', 'ef-settings', get_admin_url( null, 'admin.php' ) ) );

// Core class
#[\AllowDynamicProperties]
class edit_flow {

// Unique identified added as a prefix to all options
Expand All @@ -64,6 +65,25 @@ class edit_flow {
*/
private static $instance;

/**
* Active modules.
*
* @var \stdClass
*/
public $modules;

/**
* Number of active modules.
*
* @var int
*/
public $modules_count;

/**
* @var EF_Module
*/
public $helpers;

/**
* Main EditFlow Instance
*
Expand Down
Loading
Loading