WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#34968 closed defect (bug) (duplicate)

redirect post to post-1 in wordpress 4.4

Reported by: buy66 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: Rewrite Rules Keywords: has-patch reporter-feedback
Focuses: Cc:

Attachments (1)

34968.patch (719 bytes) - added by rommelxcastro 3 years ago.
define order by on redirect_guess_404_permalink

Download all attachments as: .zip

Change History (3)

@rommelxcastro
3 years ago

define order by on redirect_guess_404_permalink

#1 @rommelxcastro
3 years ago

  • Component changed from General to Rewrite Rules
  • Keywords has-patch dev-feedback needs-codex reporter-feedback added

@buy66 can you run this query and let me know if the first result it's the expected post?

SELECT 
    *
FROM
    wp_posts
WHERE
    post_name LIKE 'gelare-abasi%'
        AND post_type IN ('post' , 'page', 'attachment')
        AND post_status = 'publish'
        ORDER BY post_name ASC

#2 @SergeyBiryukov
3 years ago

  • Keywords dev-feedback needs-codex removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

@buy66, welcome to Trac!

Thanks for the report, we're already tracking this issue in #35031.

@rommelxcastro, could you add your patch to the other ticket? Thanks!

Note: See TracTickets for help on using tickets.