Changeset 22136 for trunk/wp-admin/options-reading.php
- Timestamp:
- 10/08/2012 09:25:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-reading.php
r22127 r22136 33 33 if ( checked ) 34 34 $('#page_for_posts').prop('checked', true).change(); 35 else 36 section.removeClass('page-for-posts'); 35 37 }); 36 38 $('#page_for_posts').change( function() { … … 117 119 // Otherwise, we must assume they cannot create pages (throughout), and thus 118 120 // should fall back to the dropdown. 119 if ( ! $page_for_posts = get_page_by_path( sanitize_title( $title ) ) ) { 121 $page_for_posts = get_page_by_path( sanitize_title( $title ) ); 122 if ( ! $page_for_posts || $page_for_posts->ID == get_option( 'page_on_front' ) ) { 120 123 $page_for_posts = get_default_post_to_edit( 'page', true ); 121 124 $page_for_posts->post_title = $title;
Note: See TracChangeset
for help on using the changeset viewer.