• Resolved toto

    (@toto)


    Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/xxxxx/public_html/wp-content/plugins/jsm-show-post-meta/lib/com/util.php on line 984

    Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/xxxxx/public_html/wp-content/plugins/jsm-show-post-meta/lib/com/util.php on line 984

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxx/public_html/wp-content/plugins/jsm-show-post-meta/lib/com/util.php:984) in /home/xxxxx/public_html/wp-admin/includes/misc.php on line 1438

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxx/public_html/wp-content/plugins/jsm-show-post-meta/lib/com/util.php:984) in /home/xxxxx/public_html/wp-includes/functions.php on line 7137

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxx/public_html/wp-content/plugins/jsm-show-post-meta/lib/com/util.php:984) in /home/xxxxx/public_html/wp-admin/admin-header.php on line 9

Viewing 2 replies - 1 through 2 (of 2 total)
  • By replacing ${var} with {$var}, you make your code compatible with PHP 8.x and avoid deprecated warnings. This change does not affect functionality and ensures your code remains future-proof.

    return sprintf( "%.{$dec}f{$sep}%s", $bytes / pow( 1024, $factor ), $size[ $factor ] );

    Plugin Author JS Morisset

    (@jsmoriss)

    Yes, thank you, that change is already available in v4.6.2-dev.1.

    https://wordpress.org/plugins/jsm-show-post-meta/#developers

    I’ll probably have time later today to push out the stable version.

    js.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Some warnings and errors’ is closed to new replies.