WordPress.org

Make WordPress Core

Ticket #17874: diffpatch

File diffpatch, 886 bytes (added by SidHarrell, 9 years ago)

my hackish attempt. How do the pros do it?

Line 
1# This patch file was generated by NetBeans IDE
2# Following Index: paths are relative to: /home/sidney/www/wordpress_trunk/wp-admin/includes
3# This patch can be applied using context Tools: Patch action on respective folder.
4# It uses platform neutral UTF-8 encoding and \n newlines.
5# Above lines and this line are ignored by the patching process.
6Index: post.php
7--- post.php Base (BASE)
8+++ post.php Locally Modified (Based On LOCAL)
9@@ -1757,7 +1757,7 @@
10        $width = isset($content_width) && 800 > $content_width ? $content_width : 800;
11        $width = $width + 10; // compensate for the padding
12        $dfw_width = get_user_setting( 'dfw_width', $width );
13-       $save = $post->post_status == 'publish' ? __('Update') : __('Save');
14+       $save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');
15 ?>
16 <div id="wp-fullscreen-body">
17 <div id="fullscreen-topbar">