- 16023917F295E698F79C150EE79D54AC67115F2974BB25427927914748FF5873C5072DC3F7C7F30F7E78228D10A9751B0C2A600FB40F8A701ACEB1A1B88396A8
+ 70E37396B6D1248880F83859C3639DF7EA4E8C863BB1760466D73F86C8230C079EDFCE08C8A4D2DE557AF801965A5E0E1AFCA46B2EE28992D201201F84C94925
mp-wp/wp-admin/themes.php
(61 . 42)(61 . 6)
9030
9031 $themes = array_slice( $themes, $start, $per_page );
9032
9033 /**
9034 * Check if there is an update for a theme available.
9035 *
9036 * Will display link, if there is an update available.
9037 *
9038 * @since 2.7.0
9039 *
9040 * @param object $theme Theme data object.
9041 * @return bool False if no valid info was passed.
9042 */
9043 function theme_update_available( $theme ) {
9044 static $themes_update;
9045 if ( !isset($themes_update) )
9046 $themes_update = get_option('update_themes');
9047
9048 if ( is_object($theme) && isset($theme->stylesheet) )
9049 $stylesheet = $theme->stylesheet;
9050 elseif ( is_array($theme) && isset($theme['Stylesheet']) )
9051 $stylesheet = $theme['Stylesheet'];
9052 else
9053 return false; //No valid info passed.
9054
9055 if ( isset($themes_update->response[ $stylesheet ]) ) {
9056 $update = $themes_update->response[ $stylesheet ];
9057 $details_url = add_query_arg(array('TB_iframe' => 'true', 'width' => 1024, 'height' => 800), $update['url']); //Theme browser inside WP? replace this, Also, theme preview JS will override this on the available list.
9058 $update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet);
9059
9060 if ( ! current_user_can('update_themes') )
9061 printf( __('<p>There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a>.</p>'), $ct->name, $details_url, $update['new_version']);
9062 else if ( empty($update->package) )
9063 printf( __('<p>There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> <em>automatic upgrade unavailable for this theme</em>.</p>'), $ct->name, $details_url, $update['new_version']);
9064 else
9065 printf( __('<p>There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> or <a href="%4$s">upgrade automatically</a>.</p>'), $ct->name, $details_url, $update['new_version'], $update_url );
9066 }
9067 }
9068
9069 ?>
9070
9071 <div class="wrap">
(118 . 7)(82 . 6)
9073 <?php if ( $ct->tags ) : ?>
9074 <p><?php _e('Tags:'); ?> <?php echo join(', ', $ct->tags); ?></p>
9075 <?php endif; ?>
9076 <?php theme_update_available($ct); ?>
9077
9078 </div>
9079 <div class="clear"></div>
(188 . 7)(151 . 6)
9081 <?php if ( $tags ) : ?>
9082 <p><?php _e('Tags:'); ?> <?php echo join(', ', $tags); ?></p>
9083 <?php endif; ?>
9084 <?php theme_update_available( $themes[$theme_name] ); ?>
9085 <noscript><p class="themeactions"><a href="<?php echo $preview_link; ?>" title="<?php echo $preview_text; ?>"><?php _e('Preview'); ?></a> <a href="<?php echo $activate_link; ?>" title="<?php echo $activate_text; ?>"><?php _e('Activate'); ?></a></p></noscript>
9086 <div style="display:none;"><a class="previewlink" href="<?php echo $preview_link; ?>"><?php echo $preview_text; ?></a> <a class="activatelink" href="<?php echo $activate_link; ?>"><?php echo $activate_text; ?></a></div>
9087 <?php endif; // end if not empty theme_name ?>