Changeset 16712 for trunk/wp-admin/theme-editor.php
- Timestamp:
- 12/03/2010 10:58:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r16431 r16712 225 225 226 226 <div> 227 <?php 228 if ( is_writeable($file) ) : 227 <?php if ( is_child_theme() ) : 228 if ( strpos( $file, $themes[$theme]['Template Dir'] ) === 0 ) { ?> 229 <p><?php if ( is_writeable( $file ) ) { ?><strong><?php _e( 'Caution:' ); ?></strong><?php } ?> 230 <?php printf( __( 'This is a file in your parent theme, “%s.”' ), $themes[$theme]['Parent Theme'] ); ?></p> 231 <?php } else { ?> 232 <p><?php printf( __( 'This is a file in your child theme, “%s.”' ), $themes[$theme]['Name'] ); ?></p> 233 <?php } ?> 234 <?php endif; ?> 235 <?php 236 if ( is_writeable( $file ) ) : 229 237 submit_button( __( 'Update File' ), 'primary', 'submit', true, array( 'tabindex' => '2' ) ); 230 238 else : ?>
Note: See TracChangeset
for help on using the changeset viewer.