Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #53910, comment 8


Ignore:
Timestamp:
08/11/2021 12:34:43 AM (3 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53910, comment 8

    v1 v2  
    1919<?php
    2020    if ( have_posts() ) : while( have_posts() ) : the_post();
    21         if ( get_post_field( 'post_name', get_the_ID() ) === sanitize_title_with_dashes( get_the_title() ) {
     21        if ( get_post_field( 'post_name', get_the_ID() ) === sanitize_title_with_dashes( get_the_title() ) ) {
    2222            echo 'Yes';
    2323        } else {