WordPress.org

Make WordPress Core

Ticket #24345: 24345.patch

File 24345.patch, 585 bytes (added by joeybvi, 11 months ago)
  • wp-admin/includes/meta-boxes.php

    diff --git wp-admin/includes/meta-boxes.php wp-admin/includes/meta-boxes.php
    index 2b0b286..559f1ce 100644
    function post_submit_meta_box($post) { 
    3838<div id="preview-action"> 
    3939<?php 
    4040if ( 'publish' == $post->post_status ) { 
    41         $preview_link = esc_url( get_permalink( $post->ID ) ); 
     41        $preview_link = esc_url( apply_filters( 'preview_post_link', get_permalink( $post->ID ) ) ); 
    4242        $preview_button = __( 'Preview Changes' ); 
    4343} else { 
    4444        $preview_link = set_url_scheme( get_permalink( $post->ID ) );