Make WordPress Core

Changeset 16651


Ignore:
Timestamp:
12/01/2010 05:16:22 PM (14 years ago)
Author:
ryan
Message:

Don’t nag to Change Permalinks if permalink structure is defined. Props demetris. fixes #13918

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r16535 r16651  
    11181118    if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) {
    11191119        $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $permalink . "</span>\n";
    1120         if ( current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) )
     1120        if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) )
    11211121            $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button" target="_blank">' . __('Change Permalinks') . "</a></span>\n";
    11221122        if ( isset($view_post) )
Note: See TracChangeset for help on using the changeset viewer.