• I have https:// but when i create or edit post, permalink shows image https://

    Found this code in wp-admin/includes/post.php but how to fix this? Or is it a .htaccess problem?

    if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) {
    		$return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $permalink . "</span>\n";
    		if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) )
    			$return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button" target="_blank">' . __('Change Permalinks') . "</a></span>\n";
    		if ( isset($view_post) )
    			$return .= "<span id='view-post-btn'><a href='$permalink' class='button' target='_blank'>$view_post</a></span>\n";
    
    		$return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug);
    
    		return $return;
    	}
Viewing 4 replies - 1 through 4 (of 4 total)
  • Is it https:// or https:// when you actually try to visit the page on the front end? In other words, is this a display issue or a more serious permalink generation problem?

    Thread Starter ak47marx

    (@ak47marx)

    it’s a display issue, everything else is working fine.

    Ok. Since it is not a functional issue, unless you are decently competent in PHP and can fix the issue, I’d bring it up on the WordPress Trac and see if you can get the fix scheduled for a future release. If you were to fix it you would be hacking core files, which is discouraged. It will end up a source of recurring frustrations as well, as you will need to redo the work with every update.

    Thread Starter ak47marx

    (@ak47marx)

    Thanks anyway, i used this solution for now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit post – Permalink problem’ is closed to new replies.