• WordPress 5.3.2
    • PHP 7.4.4

    FYI – I’m getting some minor PHP deprecation notices when I run WP-CLI in PHP 7.4:

    PHP Deprecated:  define(): Declaration of case-insensitive constants is deprecated in /var/www/example.com/wp-content/themes/grace-news/functions.php on line 126
    Deprecated: define(): Declaration of case-insensitive constants is deprecated in /var/www/example.com/wp-content/themes/grace-news/functions.php on line 126
    PHP Deprecated:  define(): Declaration of case-insensitive constants is deprecated in /var/www/example.com/wp-content/themes/grace-news/functions.php on line 127
    Deprecated: define(): Declaration of case-insensitive constants is deprecated in /var/www/example.com/wp-content/themes/grace-news/functions.php on line 127
    PHP Deprecated:  define(): Declaration of case-insensitive constants is deprecated in /var/www/example.com/wp-content/themes/grace-news/functions.php on line 128
    Deprecated: define(): Declaration of case-insensitive constants is deprecated in /var/www/example.com/wp-content/themes/grace-news/functions.php on line 128
Viewing 1 replies (of 1 total)
  • Thread Starter Daniel Hendricks

    (@hendridm)

    The define() syntax is invalid on lines 126-128 in functions.php (third parameter expects boolean):

    define('GRACE_NEWS_THEME_DOC','https://www.gracethemesdemo.com/documentation/grace-news/#homepage-lite','grace-news');
    define('GRACE_NEWS_PROTHEME_URL','https://gracethemes.com/themes/magazine-style-wordpress-theme/','grace-news');
    define('GRACE_NEWS_LIVE_DEMO','https://www.gracethemesdemo.com/grace-news/','grace-news');

    …should be:

    define('GRACE_NEWS_THEME_DOC','https://www.gracethemesdemo.com/documentation/grace-news/#homepage-lite');
    define('GRACE_NEWS_PROTHEME_URL','https://gracethemes.com/themes/magazine-style-wordpress-theme/');
    define('GRACE_NEWS_LIVE_DEMO','https://www.gracethemesdemo.com/grace-news/');
Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7.4 Deprecation Notices’ is closed to new replies.