Changeset 26288
- Timestamp:
- 11/20/2013 02:08:17 PM (12 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r26141 r26288 466 466 467 467 // 'Add new theme' element shown at the end of the grid 468 this.$el.append( '<div id="add-new" class="theme add-new"><a href="' + themes.data.settings.install_uri + '"><div class="theme-screenshot"><span></span></div><h3 class="theme-name">' + themes.data.i18n.add_new + '</h3></a></div>' ); 468 if ( themes.data.settings.canInstall ) { 469 this.$el.append( '<div id="add-new" class="theme add-new"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h3 class="theme-name">' + themes.data.i18n.addNew + '</h3></a></div>' ); 470 } 469 471 470 472 this.parent.page++; -
trunk/src/wp-admin/themes.php
r26282 r26288 92 92 'themes' => $themes, 93 93 'settings' => array( 94 'install_uri' => admin_url( 'theme-install.php' ), 94 'canInstall' => ( ! is_multisite() && current_user_can( 'install_themes' ) ), 95 'installURI' => admin_url( 'theme-install.php' ), 95 96 'customizeURI' => ( current_user_can( 'edit_theme_options' ) ) ? wp_customize_url() : null, 96 97 'confirmDelete' => __( "Are you sure you want to delete this theme?\n\nClick 'Cancel' to go back, 'OK' to confirm the delete." ), … … 100 101 ), 101 102 'i18n' => array( 102 'add _new'=> __( 'Add New Theme' ),103 'addNew' => __( 'Add New Theme' ), 103 104 ), 104 105 ) );
Note: See TracChangeset
for help on using the changeset viewer.