• Resolved Pexle Chris

    (@pexlechris)


    Hello,

    I get this php warnings:

    PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/www/wp-includes/formatting.php on line 4494

    After some debugging, I’ve found out that this is because esc_url function called here:

    wp-content/plugins/amp/includes/class-amp-theme-support.php in line 710:

    $templates['is_front_page']['description'] = sprintf( __( 'Currently disabled at the <a href="%s">page level</a>.', 'amp' ), esc_url( get_edit_post_link( get_option( 'page_on_front' ) ) ) );

    And this is because for non logged in users function get_edit_post_link returns null

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

The topic ‘Deprecated warning in php 8.2’ is closed to new replies.