Changeset 41829 for trunk/src/wp-admin/post.php
- Timestamp:
- 10/11/2017 12:05:21 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r39756 r41829 145 145 } 146 146 147 /** 148 * Allows replacement of the editor. 149 * 150 * @since 4.9.0 151 * 152 * @param boolean Whether to replace the editor. Default false. 153 * @param object $post Post object. 154 */ 155 if ( apply_filters( 'replace_editor', false, $post ) === true ) { 156 break; 157 } 158 147 159 if ( ! wp_check_post_lock( $post->ID ) ) { 148 160 $active_post_lock = wp_set_post_lock( $post->ID ); … … 150 162 if ( 'attachment' !== $post_type ) 151 163 wp_enqueue_script('autosave'); 152 }153 154 if ( is_multisite() ) {155 add_action( 'admin_footer', '_admin_notice_post_locked' );156 } else {157 $check_users = get_users( array( 'fields' => 'ID', 'number' => 2 ) );158 159 if ( count( $check_users ) > 1 )160 add_action( 'admin_footer', '_admin_notice_post_locked' );161 162 unset( $check_users );163 164 } 164 165
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)