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

Fix set $content optionnal #895

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Commits on Feb 23, 2023

  1. Fix set $content optionnal

    This fix the following fatal error appearing on all pages of the plugin :
    
    ```
    Fatal error: Uncaught TypeError: WP2Static\WordPressAdmin::wp2staticAdminFooterText(): Argument elementor#1 ($content) must be of type string, null given, called in /var/www/html/wp-includes/class-wp-hook.php on line 308 and defined in /var/www/html/wp-content/plugins/wp2static/src/WordPressAdmin.php:427 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(308): WP2Static\WordPressAdmin::wp2staticAdminFooterText(NULL) elementor#1 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) elementor#2 /var/www/html/wp-admin/admin-footer.php(48): apply_filters('admin_footer_te...', '<span id="foote...') elementor#3 /var/www/html/wp-admin/admin.php(297): require_once('/var/www/html/w...') elementor#4 {main} thrown in /var/www/html/wp-content/plugins/wp2static/src/WordPressAdmin.php on line 427
    
    ```
    Olwyne authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    f5dd6ad View commit details
    Browse the repository at this point in the history