Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Add previewing of page title changes in wp_list_pages() #256

Merged
merged 3 commits into from
Sep 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions js/customize-post-field-partial.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
}
target.text( newPostData.post_title );
} );

// Add initial support for previewing title changes in wp_list_pages().
// @todo Add selective refresh for these.
if ( 'page' === partial.params.post_type ) {
$( '.page_item.page-item-' + partial.params.post_id + ':not(.menu-item) > a' ).text( newPostData.post_title );
}
} );
} );
}
Expand Down