Ticket #31950: no-unnecessary-concatenation.patch
| File no-unnecessary-concatenation.patch, 212.2 KB (added by , 11 years ago) |
|---|
-
I:\000_WP_SVN\wp-core\src\xmlrpc.php
31 31 if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html 32 32 header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); 33 33 ?> 34 <?php echo '<?xml version="1.0" encoding="' .get_option('blog_charset').'"?'.'>'; ?>34 <?php echo '<?xml version="1.0" encoding="', get_option( 'blog_charset' ), '"?>'; ?> 35 35 <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"> 36 36 <service> 37 37 <engineName>WordPress</engineName> -
I:\000_WP_SVN\wp-core\src\wp-links-opml.php
22 22 $link_cat = absint( (string)urldecode($link_cat) ); 23 23 } 24 24 25 echo '<?xml version="1.0"?' .">\n";25 echo '<?xml version="1.0"?', ">\n"; 26 26 ?> 27 27 <opml version="1.0"> 28 28 <head> -
I:\000_WP_SVN\wp-core\src\wp-mail.php
119 119 $author = trim($line); 120 120 $author = sanitize_email($author); 121 121 if ( is_email($author) ) { 122 echo '<p>' . sprintf(__('Author is %s'), $author) .'</p>';122 echo '<p>', sprintf( __( 'Author is %s' ), $author ), '</p>'; 123 123 $userdata = get_user_by('email', $author); 124 124 if ( ! empty( $userdata ) ) { 125 125 $post_author = $userdata->ID; … … 229 229 230 230 $post_ID = wp_insert_post($post_data); 231 231 if ( is_wp_error( $post_ID ) ) 232 echo "\n" .$post_ID->get_error_message();232 echo "\n", $post_ID->get_error_message(); 233 233 234 234 // We couldn't post, for whatever reason. Better move forward to the next email. 235 235 if ( empty( $post_ID ) ) … … 244 244 */ 245 245 do_action( 'publish_phone', $post_ID ); 246 246 247 echo "\n<p>" . sprintf(__('<strong>Author:</strong> %s'), esc_html($post_author)) . '</p>';248 echo "\n<p>" . sprintf(__('<strong>Posted title:</strong> %s'), esc_html($post_title)) .'</p>';247 echo "\n<p>", sprintf( __( '<strong>Author:</strong> %s' ), esc_html( $post_author ) ), '</p>', 248 "\n<p>", sprintf( __( '<strong>Posted title:</strong> %s' ), esc_html( $post_title ) ), '</p>'; 249 249 250 250 if(!$pop3->delete($i)) { 251 echo '<p>' . sprintf(__('Oops: %s'), esc_html($pop3->ERROR)) .'</p>';251 echo '<p>', sprintf( __( 'Oops: %s'), esc_html( $pop3->ERROR ) ), '</p>'; 252 252 $pop3->reset(); 253 253 exit; 254 254 } else { 255 echo '<p>' . sprintf(__('Mission complete. Message <strong>%s</strong> deleted.'), $i) .'</p>';255 echo '<p>', sprintf( __( 'Mission complete. Message <strong>%s</strong> deleted.' ), $i ), '</p>'; 256 256 } 257 257 258 258 } -
I:\000_WP_SVN\wp-core\src\wp-activate.php
102 102 ?> 103 103 <h2><?php _e('An error occurred during the activation'); ?></h2> 104 104 <?php 105 echo '<p>' .$result->get_error_message().'</p>';105 echo '<p>', $result->get_error_message(), '</p>'; 106 106 } 107 107 } else { 108 108 $url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : ''; -
I:\000_WP_SVN\wp-core\src\wp-trackback.php
27 27 function trackback_response($error = 0, $error_message = '') { 28 28 header('Content-Type: text/xml; charset=' . get_option('blog_charset') ); 29 29 if ($error) { 30 echo '<?xml version="1.0" encoding="utf-8"?' .">\n";31 echo "<response>\n";32 echo "<error>1</error>\n";33 echo "<message>$error_message</message>\n";34 echo "</response>";30 echo '<?xml version="1.0" encoding="utf-8"?', ">\n", 31 "<response>\n", 32 "<error>1</error>\n", 33 '<message>', $error_message, "</message>\n", 34 '</response>'; 35 35 die(); 36 36 } else { 37 echo '<?xml version="1.0" encoding="utf-8"?' .">\n";38 echo "<response>\n";39 echo "<error>0</error>\n";40 echo "</response>";37 echo '<?xml version="1.0" encoding="utf-8"?', ">\n", 38 "<response>\n", 39 "<error>0</error>\n", 40 '</response>'; 41 41 } 42 42 } 43 43 -
I:\000_WP_SVN\wp-core\src\wp-signup.php
91 91 $current_site = get_current_site(); 92 92 // Blog name 93 93 if ( !is_subdomain_install() ) 94 echo '<label for="blogname">' . __('Site Name:') .'</label>';94 echo '<label for="blogname">', __( 'Site Name:' ), '</label>'; 95 95 else 96 echo '<label for="blogname">' . __('Site Domain:') .'</label>';96 echo '<label for="blogname">', __( 'Site Domain:' ), '</label>'; 97 97 98 98 if ( $errmsg = $errors->get_error_message('blogname') ) { ?> 99 99 <p class="error"><?php echo $errmsg ?></p> 100 100 <?php } 101 101 102 102 if ( !is_subdomain_install() ) 103 echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="'. esc_attr($blogname) .'" maxlength="60" /><br />';103 echo '<span class="prefix_address">', $current_site->domain, $current_site->path, '</span><input name="blogname" type="text" id="blogname" value="', esc_attr( $blogname ), '" maxlength="60" /><br />'; 104 104 else 105 echo '<input name="blogname" type="text" id="blogname" value="' .esc_attr($blogname).'" maxlength="60" /><span class="suffix_address">.' . ( $site_domain = preg_replace( '|^www\.|', '', $current_site->domain ) ) .'</span><br />';105 echo '<input name="blogname" type="text" id="blogname" value="', esc_attr( $blogname ), '" maxlength="60" /><span class="suffix_address">.', ( $site_domain = preg_replace( '|^www\.|', '', $current_site->domain ) ), '</span><br />'; 106 106 107 107 if ( !is_user_logged_in() ) { 108 108 if ( !is_subdomain_install() ) 109 109 $site = $current_site->domain . $current_site->path . __( 'sitename' ); 110 110 else 111 111 $site = __( 'domain' ) . '.' . $site_domain . $current_site->path; 112 echo '<p>(<strong>' . sprintf( __('Your address will be %s.'), $site ) . '</strong>) ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) .'</p>';112 echo '<p>(<strong>', sprintf( __('Your address will be %s.'), $site ), '</strong>) ', __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ), '</p>'; 113 113 } 114 114 115 115 // Blog Title … … 118 118 <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?> 119 119 <p class="error"><?php echo $errmsg ?></p> 120 120 <?php } 121 echo '<input name="blog_title" type="text" id="blog_title" value="' .esc_attr($blog_title).'" />';121 echo '<input name="blog_title" type="text" id="blog_title" value="', esc_attr( $blog_title ), '" />'; 122 122 ?> 123 123 124 124 <div id="privacy"> … … 174 174 */ 175 175 function show_user_form($user_name = '', $user_email = '', $errors = '') { 176 176 // User name 177 echo '<label for="user_name">' . __('Username:') .'</label>';177 echo '<label for="user_name">', __( 'Username:' ), '</label>'; 178 178 if ( $errmsg = $errors->get_error_message('user_name') ) { 179 echo '<p class="error">' .$errmsg.'</p>';179 echo '<p class="error">', $errmsg, '</p>'; 180 180 } 181 echo '<input name="user_name" type="text" id="user_name" value="' . esc_attr($user_name) .'" maxlength="60" /><br />';181 echo '<input name="user_name" type="text" id="user_name" value="', esc_attr( $user_name ), '" maxlength="60" /><br />'; 182 182 _e( '(Must be at least 4 characters, letters and numbers only.)' ); 183 183 ?> 184 184 … … 189 189 <input name="user_email" type="email" id="user_email" value="<?php echo esc_attr($user_email) ?>" maxlength="200" /><br /><?php _e('We send your registration email to this address. (Double-check your email address before continuing.)') ?> 190 190 <?php 191 191 if ( $errmsg = $errors->get_error_message('generic') ) { 192 echo '<p class="error">' . $errmsg .'</p>';192 echo '<p class="error">', $errmsg, '</p>'; 193 193 } 194 194 /** 195 195 * Fires at the end of the user registration form on the site sign-up form. … … 253 253 $blog_title = $filtered_results['blog_title']; 254 254 $errors = $filtered_results['errors']; 255 255 256 echo '<h2>' . sprintf( __( 'Get <em>another</em> %s site in seconds' ), get_current_site()->site_name ) .'</h2>';256 echo '<h2>', sprintf( __( 'Get <em>another</em> %s site in seconds' ), get_current_site()->site_name ), '</h2>'; 257 257 258 258 if ( $errors->get_error_code() ) { 259 echo '<p>' . __( 'There was a problem, please correct the form below and try again.' ) .'</p>';259 echo '<p>', __( 'There was a problem, please correct the form below and try again.' ), '</p>'; 260 260 } 261 261 ?> 262 262 <p><?php printf( __( 'Welcome back, %s. By filling out the form below, you can <strong>add another site to your account</strong>. There is no limit to the number of sites you can have, so create to your heart’s content, but write responsibly!' ), $current_user->display_name ) ?></p> … … 269 269 <ul> 270 270 <?php foreach ( $blogs as $blog ) { 271 271 $home_url = get_home_url( $blog->userblog_id ); 272 echo '<li><a href="' . esc_url( $home_url ) . '">' . $home_url .'</a></li>';272 echo '<li><a href="', esc_url( $home_url ), '">', $home_url, '</a></li>'; 273 273 } ?> 274 274 </ul> 275 275 <?php } ?> … … 661 661 $i18n_signup['user'] = _x('user', 'Multisite active signup type'); 662 662 663 663 if ( is_super_admin() ) 664 echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” registrations. To change or disable registration go to your <a href="%s">Options page</a>.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'settings.php' ) ) ) .'</div>';664 echo '<div class="mu_alert">', sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” registrations. To change or disable registration go to your <a href="%s">Options page</a>.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'settings.php' ) ) ), '</div>'; 665 665 666 666 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 667 667 … … 670 670 _e( 'Registration has been disabled.' ); 671 671 } elseif ( $active_signup == 'blog' && !is_user_logged_in() ) { 672 672 $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( network_site_url( 'wp-signup.php' ) ) ); 673 echo sprintf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url );673 printf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url ); 674 674 } else { 675 675 $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default'; 676 676 switch ( $stage ) { -
I:\000_WP_SVN\wp-core\src\wp-login.php
163 163 */ 164 164 $message = apply_filters( 'login_message', $message ); 165 165 if ( !empty( $message ) ) 166 echo $message ."\n";166 echo $message, "\n"; 167 167 168 168 // In case a plugin uses $error rather than the $wp_errors object 169 169 if ( !empty( $error ) ) { … … 191 191 * 192 192 * @param string $errors Login error message. 193 193 */ 194 echo '<div id="login_error">' . apply_filters( 'login_errors', $errors ) ."</div>\n";194 echo '<div id="login_error">', apply_filters( 'login_errors', $errors ), "</div>\n"; 195 195 } 196 196 if ( ! empty( $messages ) ) { 197 197 /** … … 201 201 * 202 202 * @param string $messages Login messages. 203 203 */ 204 echo '<p class="message">' . apply_filters( 'login_messages', $messages ) ."</p>\n";204 echo '<p class="message">', apply_filters( 'login_messages', $messages ), "</p>\n"; 205 205 } 206 206 } 207 207 } // End of login_header() … … 574 574 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); 575 575 576 576 /** This filter is documented in wp-includes/general-template.php */ 577 echo ' | ' .apply_filters( 'register', $registration_url );577 echo ' | ', apply_filters( 'register', $registration_url ); 578 578 endif; 579 579 ?> 580 580 </p> … … 679 679 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); 680 680 681 681 /** This filter is documented in wp-includes/general-template.php */ 682 echo ' | ' .apply_filters( 'register', $registration_url );682 echo ' | ', apply_filters( 'register', $registration_url ); 683 683 endif; 684 684 ?> 685 685 </p> … … 936 936 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); 937 937 938 938 /** This filter is documented in wp-includes/general-template.php */ 939 echo apply_filters( 'register', $registration_url ) .' | ';939 echo apply_filters( 'register', $registration_url ), ' | '; 940 940 endif; 941 941 ?> 942 942 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a> -
I:\000_WP_SVN\wp-core\src\wp-admin\options-reading.php
44 44 * @since 3.5.0 45 45 */ 46 46 function options_reading_blog_charset() { 47 echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';48 echo '<p class="description">' . __( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) .'</p>';47 echo '<input name="blog_charset" type="text" id="blog_charset" value="', esc_attr( get_option( 'blog_charset' ) ), '" class="regular-text" />', 48 '<p class="description">', __( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ), '</p>'; 49 49 } 50 50 51 51 get_current_screen()->add_help_tab( array( -
I:\000_WP_SVN\wp-core\src\wp-admin\about.php
93 93 if ( ! current_user_can( 'manage_options' ) ) { 94 94 $string = strip_tags( $string ); 95 95 } 96 echo sprintf( $string, $display_version, $count, admin_url( 'options-general.php' ) );96 printf( $string, $display_version, $count, admin_url( 'options-general.php' ) ); 97 97 ?></p> 98 98 </div> 99 99 … … 117 117 if ( ! current_user_can( 'install_plugins' ) ) { 118 118 $string = strip_tags( $string ); 119 119 } 120 echo sprintf( $string, network_admin_url( 'plugin-install.php?tab=recommended' ) );120 printf( $string, network_admin_url( 'plugin-install.php?tab=recommended' ) ); 121 121 ?></p> 122 122 </div> 123 123 </div> -
I:\000_WP_SVN\wp-core\src\wp-admin\edit.php
282 282 <h2><?php 283 283 echo esc_html( $post_type_object->labels->name ); 284 284 if ( current_user_can( $post_type_object->cap->create_posts ) ) 285 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) .'</a>';285 echo ' <a href="', esc_url( admin_url( $post_new_file ) ), '" class="add-new-h2">', esc_html( $post_type_object->labels->add_new ), '</a>'; 286 286 if ( ! empty( $_REQUEST['s'] ) ) 287 287 printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); 288 288 ?></h2> … … 303 303 } 304 304 305 305 if ( $messages ) 306 echo '<div id="message" class="updated notice is-dismissible"><p>' . join( ' ', $messages ) .'</p></div>';306 echo '<div id="message" class="updated notice is-dismissible"><p>', join( ' ', $messages ), '</p></div>'; 307 307 unset( $messages ); 308 308 309 309 $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'locked', 'skipped', 'updated', 'deleted', 'trashed', 'untrashed' ), $_SERVER['REQUEST_URI'] ); -
I:\000_WP_SVN\wp-core\src\wp-admin\nav-menus.php
557 557 </h2> 558 558 <?php 559 559 foreach( $messages as $message ) : 560 echo $message ."\n";560 echo $message, "\n"; 561 561 endforeach; 562 562 ?> 563 563 <?php 564 564 if ( $locations_screen ) : 565 565 if ( 1 == $num_locations ) { 566 echo '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) .'</p>';566 echo '<p>', __( 'Your theme supports one menu. Select which menu you would like to use.' ), '</p>'; 567 567 } else { 568 echo '<p>' . sprintf( _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) .'</p>';568 echo '<p>', sprintf( _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ), '</p>'; 569 569 } 570 570 ?> 571 571 <div id="menu-locations-wrap"> -
I:\000_WP_SVN\wp-core\src\wp-admin\plugins.php
121 121 wp_enqueue_script( 'updates' ); 122 122 require_once(ABSPATH . 'wp-admin/admin-header.php'); 123 123 124 echo '<div class="wrap">' ;125 echo '<h2>' . esc_html( $title ) .'</h2>';124 echo '<div class="wrap">', 125 '<h2>', esc_html( $title ), '</h2>'; 126 126 127 127 $url = self_admin_url('update.php?action=update-selected&plugins=' . urlencode( join(',', $plugins) )); 128 128 $url = wp_nonce_url($url, 'bulk-update-plugins'); 129 129 130 echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";131 echo'</div>';130 echo '<iframe src="', $url, '" style="width: 100%; height:100%; min-height:850px;"></iframe>', 131 '</div>'; 132 132 require_once(ABSPATH . 'wp-admin/admin-footer.php'); 133 133 exit; 134 134 … … 172 172 if ( ! is_network_admin() ) 173 173 update_option( 'recently_activated', array( $plugin => time() ) + (array) get_option( 'recently_activated' ) ); 174 174 if ( headers_sent() ) 175 echo "<meta http-equiv='refresh' content='" . esc_attr( "0;url=plugins.php?deactivate=true&plugin_status=$status&paged=$page&s=$s" ) . "' />";175 echo '<meta http-equiv="refresh" content="', esc_attr( "0;url=plugins.php?deactivate=true&plugin_status=$status&paged=$page&s=$s" ), '" />'; 176 176 else 177 177 wp_redirect( self_admin_url("plugins.php?deactivate=true&plugin_status=$status&paged=$page&s=$s") ); 178 178 exit; … … 323 323 <input type="hidden" name="action" value="delete-selected" /> 324 324 <?php 325 325 foreach ( (array) $plugins as $plugin ) { 326 echo '<input type="hidden" name="checked[]" value="' . esc_attr( $plugin ) .'" />';326 echo '<input type="hidden" name="checked[]" value="', esc_attr( $plugin ), '" />'; 327 327 } 328 328 ?> 329 329 <?php wp_nonce_field('bulk-plugins') ?> … … 341 341 <ul class="code"> 342 342 <?php 343 343 foreach ( (array) $files_to_delete as $file ) { 344 echo '<li>' . esc_html( str_replace( WP_PLUGIN_DIR, '', $file ) ) .'</li>';344 echo '<li>', esc_html( str_replace( WP_PLUGIN_DIR, '', $file ) ), '</li>'; 345 345 } 346 346 ?> 347 347 </ul> … … 400 400 $invalid = validate_active_plugins(); 401 401 if ( !empty($invalid) ) 402 402 foreach ( $invalid as $plugin_file => $error ) 403 echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%s</code> has been <strong>deactivated</strong> due to an error: %s'), esc_html($plugin_file), $error->get_error_message()) .'</p></div>';403 echo '<div id="message" class="error"><p>', sprintf( __( 'The plugin <code>%s</code> has been <strong>deactivated</strong> due to an error: %s' ), esc_html( $plugin_file ), $error->get_error_message() ), '</p></div>'; 404 404 ?> 405 405 406 406 <?php if ( isset($_GET['error']) ) : -
I:\000_WP_SVN\wp-core\src\wp-admin\options-discussion.php
225 225 ); 226 226 foreach ($ratings as $key => $rating) : 227 227 $selected = (get_option('avatar_rating') == $key) ? 'checked="checked"' : ''; 228 echo "\n\t <label><input type='radio' name='avatar_rating' value='" . esc_attr($key) . "' $selected/> $rating</label><br />";228 echo "\n\t", '<label><input type="radio" name="avatar_rating" value="', esc_attr( $key ), '"', $selected, '/>', $rating, '</label><br />'; 229 229 endforeach; 230 230 ?> 231 231 -
I:\000_WP_SVN\wp-core\src\wp-admin\plugin-editor.php
181 181 <big><?php 182 182 if ( is_plugin_active($plugin) ) { 183 183 if ( is_writeable($real_file) ) 184 echo sprintf(__('Editing <strong>%s</strong> (active)'), $file);184 printf( __( 'Editing <strong>%s</strong> (active)' ), $file); 185 185 else 186 echo sprintf(__('Browsing <strong>%s</strong> (active)'), $file);186 printf( __( 'Browsing <strong>%s</strong> (active)' ), $file); 187 187 } else { 188 188 if ( is_writeable($real_file) ) 189 echo sprintf(__('Editing <strong>%s</strong> (inactive)'), $file);189 printf( __( 'Editing <strong>%s</strong> (inactive)' ), $file); 190 190 else 191 echo sprintf(__('Browsing <strong>%s</strong> (inactive)'), $file);191 printf( __( 'Browsing <strong>%s</strong> (inactive)' ), $file); 192 192 } 193 193 ?></big> 194 194 </div> -
I:\000_WP_SVN\wp-core\src\wp-admin\plugin-install.php
105 105 $href = self_admin_url( 'plugin-install.php?tab=upload' ); 106 106 $text = __( 'Upload Plugin' ); 107 107 } 108 echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text .'</a>';108 echo ' <a href="', $href, '" class="upload add-new-h2">', $text, '</a>'; 109 109 } 110 110 ?> 111 111 </h2> -
I:\000_WP_SVN\wp-core\src\wp-admin\edit-form-advanced.php
404 404 <h2><?php 405 405 echo esc_html( $title ); 406 406 if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) 407 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) .'</a>';407 echo ' <a href="', esc_url( admin_url( $post_new_file ) ), '" class="add-new-h2">', esc_html( $post_type_object->labels->add_new ), '</a>'; 408 408 ?></h2> 409 409 <?php if ( $notice ) : ?> 410 410 <div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div> -
I:\000_WP_SVN\wp-core\src\wp-admin\edit-comments.php
142 142 <div class="wrap"> 143 143 <h2><?php 144 144 if ( $post_id ) 145 echo sprintf( __( 'Comments on “%s”' ),145 printf( __( 'Comments on “%s”' ), 146 146 sprintf( '<a href="%s">%s</a>', 147 147 get_edit_post_link( $post_id ), 148 148 wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) … … 152 152 echo __('Comments'); 153 153 154 154 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 155 echo '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) .'</span>'; ?>155 echo '<span class="subtitle">', sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ), '</span>'; ?> 156 156 </h2> 157 157 158 158 <?php … … 168 168 break; 169 169 } 170 170 if ( $error_msg ) 171 echo '<div id="moderated" class="error"><p>' . $error_msg .'</p></div>';171 echo '<div id="moderated" class="error"><p>', $error_msg, '</p></div>'; 172 172 } 173 173 174 174 if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQUEST['trashed']) || isset($_REQUEST['untrashed']) || isset($_REQUEST['spammed']) || isset($_REQUEST['unspammed']) || isset($_REQUEST['same']) ) { … … 217 217 } 218 218 } 219 219 220 echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br/>\n", $messages ) .'</p></div>';220 echo '<div id="moderated" class="updated notice is-dismissible"><p>', implode( "<br/>\n", $messages ), '</p></div>'; 221 221 } 222 222 } 223 223 ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\widgets.php
240 240 if ( is_callable( $control_callback ) ) 241 241 call_user_func_array( $control_callback, $control['params'] ); 242 242 else 243 echo '<p>' . __('There are no options for this widget.') ."</p>\n"; ?>243 echo '<p>', __( 'There are no options for this widget.' ), "</p>\n"; ?> 244 244 </div> 245 245 246 246 <p class="describe"><?php _e('Select both the sidebar for this widget and the position of the widget in that sidebar.'); ?></p> … … 248 248 <table class="widefat"><thead><tr><th><?php _e('Sidebar'); ?></th><th><?php _e('Position'); ?></th></tr></thead><tbody> 249 249 <?php 250 250 foreach ( $wp_registered_sidebars as $sbname => $sbvalue ) { 251 echo "\t\t <tr><td><label><input type='radio' name='sidebar' value='" . esc_attr($sbname) . "'" . checked( $sbname, $sidebar, false ) . " /> $sbvalue[name]</label></td><td>";251 echo "\t\t", '<tr><td><label><input type="radio" name="sidebar" value="', esc_attr( $sbname ), '"', checked( $sbname, $sidebar, false ), ' />', $sbvalue[name], '</label></td><td>'; 252 252 if ( 'wp_inactive_widgets' == $sbname || 'orphaned_widgets' == substr( $sbname, 0, 16 ) ) { 253 253 echo ' '; 254 254 } else { … … 261 261 $j++; 262 262 } 263 263 $selected = ''; 264 echo "\t\t <select name='{$sbname}_position'>\n";265 echo "\t\t<option value=''>" . __('— Select —') ."</option>\n";264 echo "\t\t", '<select name="', $sbname, '_position">', "\n", 265 "\t\t", '<option value="">', __( '— Select —' ), "</option>\n"; 266 266 for ( $i = 1; $i <= $j; $i++ ) { 267 267 if ( in_array($widget_id, $sidebars_widgets[$sbname], true) ) 268 268 $selected = selected( $i, $key + 1, false ); 269 echo "\t\t <option value='$i'$selected> $i</option>\n";269 echo "\t\t", '<option value="', $i, '"', $selected, '>', $i, "</option>\n"; 270 270 } 271 271 echo "\t\t</select>\n"; 272 272 } -
I:\000_WP_SVN\wp-core\src\wp-admin\export.php
137 137 continue; 138 138 139 139 $month = zeroise( $date->month, 2 ); 140 echo '<option value="' . $date->year . '-' . $month . '">' . $wp_locale->get_month( $month ) . ' ' . $date->year .'</option>';140 echo '<option value="', $date->year, '-', $month, '">', $wp_locale->get_month( $month ), ' ', $date->year, '</option>'; 141 141 } 142 142 } 143 143 ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\ms-delete-site.php
31 31 $parent_file = 'tools.php'; 32 32 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 33 33 34 echo '<div class="wrap">' ;35 echo '<h2>' . esc_html( $title ) .'</h2>';34 echo '<div class="wrap">', 35 '<h2>', esc_html( $title ), '</h2>'; 36 36 37 37 if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) { 38 38 check_admin_referer( 'delete-blog' ); -
I:\000_WP_SVN\wp-core\src\wp-admin\async-upload.php
59 59 switch ( $_REQUEST['fetch'] ) { 60 60 case 3 : 61 61 if ( $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ) ) 62 echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) .'" alt="" />';63 echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) .'</a>';62 echo '<img class="pinkynail" src="', esc_url( $thumb_url[0] ), '" alt="" />'; 63 echo '<a class="edit-attachment" href="', esc_url( get_edit_post_link( $id ) ), '" target="_blank">', _x( 'Edit', 'media item' ), '</a>'; 64 64 $title = $post->post_title ? $post->post_title : wp_basename( $post->guid ); // title shouldn't ever be empty, but use filename just in cas.e 65 echo '<div class="filename new"><span class="title">' . esc_html( wp_html_excerpt( $title, 60, '…' ) ) .'</span></div>';65 echo '<div class="filename new"><span class="title">', esc_html( wp_html_excerpt( $title, 60, '…' ) ), '</span></div>'; 66 66 break; 67 67 case 2 : 68 68 add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2); -
I:\000_WP_SVN\wp-core\src\wp-admin\theme-install.php
117 117 */ 118 118 $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) ); 119 119 if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_themes' ) ) { 120 echo ' <a href="#" class="upload add-new-h2">' . __( 'Upload Theme' ) . '</a>';121 echo ' <a href="#" class="browse-themes add-new-h2">' . _x( 'Browse', 'themes' ) .'</a>';120 echo ' <a href="#" class="upload add-new-h2">', __( 'Upload Theme' ), '</a>', 121 ' <a href="#" class="browse-themes add-new-h2">', _x( 'Browse', 'themes' ), '</a>'; 122 122 } 123 123 ?></h2> 124 124 … … 149 149 <?php 150 150 $feature_list = get_theme_feature_list(); 151 151 foreach ( $feature_list as $feature_name => $features ) { 152 echo '<div class="filter-group">'; 153 $feature_name = esc_html( $feature_name ); 154 echo '<h4>' . $feature_name . '</h4>'; 155 echo '<ol class="feature-group">'; 152 echo '<div class="filter-group">', 153 '<h4>', esc_html( $feature_name ), '</h4>', 154 '<ol class="feature-group">'; 156 155 foreach ( $features as $feature => $feature_name ) { 157 156 $feature = esc_attr( $feature ); 158 echo '<li><input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> ';159 echo '<label for="filter-id-' . $feature . '">' . $feature_name .'</label></li>';157 echo '<li><input type="checkbox" id="filter-id-', $feature, '" value="', $feature, '" /> ', 158 '<label for="filter-id-', $feature, '">', $feature_name, '</label></li>'; 160 159 } 161 echo '</ol>' ;162 echo'</div>';160 echo '</ol>', 161 '</div>'; 163 162 } 164 163 ?> 165 164 <div class="filtered-by"> -
I:\000_WP_SVN\wp-core\src\wp-admin\import.php
72 72 } 73 73 74 74 if ( empty( $importers ) ) { 75 echo '<p>' . __('No importers are available.') .'</p>'; // TODO: make more helpful75 echo '<p>', __( 'No importers are available.' ), '</p>'; // TODO: make more helpful 76 76 } else { 77 77 uasort( $importers, '_usort_by_first_member' ); 78 78 ?> … … 120 120 } 121 121 122 122 if ( current_user_can('install_plugins') ) 123 echo '<p>' . sprintf( __('If the importer you need is not listed, <a href="%s">search the plugin directory</a> to see if an importer is available.'), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) .'</p>';123 echo '<p>', sprintf( __( 'If the importer you need is not listed, <a href="%s">search the plugin directory</a> to see if an importer is available.' ), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ), '</p>'; 124 124 ?> 125 125 126 126 </div> -
I:\000_WP_SVN\wp-core\src\wp-admin\menu-header.php
127 127 $menu_file = substr( $menu_file, 0, $pos ); 128 128 if ( ! empty( $menu_hook ) || ( ( 'index.php' != $submenu_items[0][2] ) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) ) { 129 129 $admin_is_parent = true; 130 echo "<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style>$img</div><div class='wp-menu-name'>$title</div></a>";130 echo '<a href="admin.php?page=', $submenu_items[0][2], '"', $class, $aria_attributes, '>', $arrow, '<div class="wp-menu-image', $img_class, '"', $img_style, '>', $img, '</div><div class="wp-menu-name">', $title, '</div></a>'; 131 131 } else { 132 echo "\n\t <a href='{$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style>$img</div><div class='wp-menu-name'>$title</div></a>";132 echo "\n\t", '<a href="', $submenu_items[0][2], '"', $class, $aria_attributes, '>', $arrow, '<div class="wp-menu-image', $img_class, '"', $img_style, '>', $img, '</div><div class="wp-menu-name">', $title, '</div></a>'; 133 133 } 134 134 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { 135 135 $menu_hook = get_plugin_page_hook( $item[2], 'admin.php' ); … … 138 138 $menu_file = substr( $menu_file, 0, $pos ); 139 139 if ( ! empty( $menu_hook ) || ( ( 'index.php' != $item[2] ) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) ) { 140 140 $admin_is_parent = true; 141 echo "\n\t <a href='admin.php?page={$item[2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style>$img</div><div class='wp-menu-name'>{$item[0]}</div></a>";141 echo "\n\t", '<a href="admin.php?page=', $item[2], '"', $class, $aria_attributes, '>', $arrow, '<div class="wp-menu-image', $img_class, '"', $img_style, '>', $img, '</div><div class="wp-menu-name">', $item[0], '</div></a>'; 142 142 } else { 143 echo "\n\t <a href='{$item[2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style>$img</div><div class='wp-menu-name'>{$item[0]}</div></a>";143 echo "\n\t", '<a href="', $item[2], '"', $class, $aria_attributes, '>', $arrow, '<div class="wp-menu-image', $img_class, '"', $img_style, '>', $img, '</div><div class="wp-menu-name">', $item[0], '</div></a>'; 144 144 } 145 145 } 146 146 147 147 if ( ! empty( $submenu_items ) ) { 148 echo "\n\t <ul class='wp-submenu wp-submenu-wrap'>";149 echo "<li class='wp-submenu-head'>{$item[0]}</li>";148 echo "\n\t", '<ul class="wp-submenu wp-submenu-wrap">', 149 '<li class="wp-submenu-head">', $item[0], '</li>'; 150 150 151 151 $first = true; 152 152 … … 202 202 $sub_item_url = add_query_arg( array( 'page' => $sub_item[2] ), 'admin.php' ); 203 203 204 204 $sub_item_url = esc_url( $sub_item_url ); 205 echo "<li$class><a href='$sub_item_url'$class>$title</a></li>";205 echo '<li', $class, '><a href="', $sub_item_url, '"', $class, '>', $title, '</a></li>'; 206 206 } else { 207 echo "<li$class><a href='{$sub_item[2]}'$class>$title</a></li>";207 echo '<li', $class, '><a href="', $sub_item[2], '"', $class, '>', $title, '</a></li>'; 208 208 } 209 209 } 210 echo "</ul>";210 echo '</ul>'; 211 211 } 212 echo "</li>";212 echo '</li>'; 213 213 } 214 214 215 echo '<li id="collapse-menu" class="hide-if-no-js"><div id="collapse-button"><div></div></div>' ;216 echo '<span>' . esc_html__( 'Collapse menu' ) . '</span>';217 echo'</li>';215 echo '<li id="collapse-menu" class="hide-if-no-js"><div id="collapse-button"><div></div></div>', 216 '<span>', esc_html__( 'Collapse menu' ), '</span>', 217 '</li>'; 218 218 } 219 219 220 220 ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\options-general.php
266 266 $custom = true; 267 267 268 268 foreach ( $date_formats as $format ) { 269 echo "\t <label title='" . esc_attr($format) . "'><input type='radio' name='date_format' value='" . esc_attr($format) . "'";269 echo "\t", '<label title="', esc_attr( $format ), '"><input type="radio" name="date_format" value="', esc_attr( $format ), '"'; 270 270 if ( get_option('date_format') === $format ) { // checked() uses "==" rather than "===" 271 echo " checked='checked'";271 echo ' checked="checked"'; 272 272 $custom = false; 273 273 } 274 echo ' /> ' . date_i18n( $format ) ."</label><br />\n";274 echo ' /> ', date_i18n( $format ), "</label><br />\n"; 275 275 } 276 276 277 277 echo ' <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; 278 278 checked( $custom ); 279 echo '/> ' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' . __( 'enter a custom date format in the following field' ) . "</span></label>\n";280 echo '<label for="date_format_custom" class="screen-reader-text">' . __( 'Custom date format:' ) . '</label><input type="text" name="date_format_custom" id="date_format_custom" value="' . esc_attr( get_option('date_format') ) . '" class="small-text" /> <span class="screen-reader-text">' . __( 'example:' ) . ' </span><span class="example"> ' . date_i18n( get_option('date_format') ) . "</span> <span class='spinner'></span>\n";279 echo '/> ', __( 'Custom:' ), '<span class="screen-reader-text"> ', __( 'enter a custom date format in the following field' ), "</span></label>\n", 280 '<label for="date_format_custom" class="screen-reader-text">', __( 'Custom date format:' ), '</label><input type="text" name="date_format_custom" id="date_format_custom" value="', esc_attr( get_option('date_format') ), '" class="small-text" /> <span class="screen-reader-text">', __( 'example:' ), ' </span><span class="example"> ', date_i18n( get_option( 'date_format' ) ), '</span> <span class="spinner"></span>', "\n"; 281 281 ?> 282 282 </fieldset> 283 283 </td> … … 299 299 $custom = true; 300 300 301 301 foreach ( $time_formats as $format ) { 302 echo "\t <label title='" . esc_attr($format) . "'><input type='radio' name='time_format' value='" . esc_attr($format) . "'";302 echo "\t", '<label title="', esc_attr( $format ), '"><input type="radio" name="time_format" value="', esc_attr( $format ) . '"'; 303 303 if ( get_option('time_format') === $format ) { // checked() uses "==" rather than "===" 304 echo " checked='checked'";304 echo ' checked="checked"'; 305 305 $custom = false; 306 306 } 307 echo ' /> ' . date_i18n( $format ) ."</label><br />\n";307 echo ' /> ', date_i18n( $format ), "</label><br />\n"; 308 308 } 309 309 310 310 echo ' <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"'; 311 311 checked( $custom ); 312 echo '/> ' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' . __( 'enter a custom time format in the following field' ) . "</span></label>\n";313 echo '<label for="time_format_custom" class="screen-reader-text">' . __( 'Custom time format:' ) . '</label><input type="text" name="time_format_custom" id="time_format_custom" value="' . esc_attr( get_option('time_format') ) . '" class="small-text" /> <span class="screen-reader-text">' . __( 'example:' ) . ' </span><span class="example"> ' . date_i18n( get_option('time_format') ) . "</span> <span class='spinner'></span>\n";312 echo '/> ', __( 'Custom:' ), '<span class="screen-reader-text"> ', __( 'enter a custom time format in the following field' ), "</span></label>\n", 313 '<label for="time_format_custom" class="screen-reader-text">', __( 'Custom time format:' ), '</label><input type="text" name="time_format_custom" id="time_format_custom" value="', esc_attr( get_option( 'time_format' ) ), '" class="small-text" /> <span class="screen-reader-text">', __( 'example:' ), ' </span><span class="example"> ', date_i18n( get_option( 'time_format' ) ), '</span> <span class="spinner"></span>', "\n"; 314 314 315 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.') ."</p>\n";315 echo "\t<p>", __( '<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.' ), "</p>\n"; 316 316 ?> 317 317 </fieldset> 318 318 </td> … … 325 325 326 326 for ($day_index = 0; $day_index <= 6; $day_index++) : 327 327 $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : ''; 328 echo "\n\t <option value='" . esc_attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) .'</option>';328 echo "\n\t", '<option value="', esc_attr( $day_index ), '"', $selected, '>', $wp_locale->get_weekday( $day_index ), '</option>'; 329 329 endfor; 330 330 ?> 331 331 </select></td> -
I:\000_WP_SVN\wp-core\src\wp-admin\user-edit.php
322 322 323 323 // print the 'no role' option. Make it selected if the user has no role yet. 324 324 if ( $user_role ) 325 echo '<option value="">' . __('— No role for this site —') .'</option>';325 echo '<option value="">', __( '— No role for this site —' ), '</option>'; 326 326 else 327 echo '<option value="" selected="selected">' . __('— No role for this site —') .'</option>';327 echo '<option value="" selected="selected">', __( '— No role for this site —' ), '</option>'; 328 328 ?> 329 329 </select></td></tr> 330 330 <?php endif; //!IS_PROFILE_PAGE -
I:\000_WP_SVN\wp-core\src\wp-admin\my-sites.php
91 91 */ 92 92 $settings_html = apply_filters( 'myblogs_options', '', 'global' ); 93 93 if ( $settings_html != '' ) { 94 echo '<tr><td><h3>' . __( 'Global Settings' ) . '</h3></td><td>';95 echo $settings_html;96 echo'</td></tr>';94 echo '<tr><td><h3>', __( 'Global Settings' ), '</h3></td><td>', 95 $settings_html, 96 '</td></tr>'; 97 97 } 98 98 reset( $blogs ); 99 99 $num = count( $blogs ); … … 114 114 $i = 0; 115 115 foreach ( $row as $user_blog ) { 116 116 $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; 117 echo "<td style='$s'>";118 echo "<h3>{$user_blog->blogname}</h3>";117 echo '<td style="', $s, '">', 118 '<h3>', $user_blog->blogname, '</h3>'; 119 119 /** 120 120 * Filter the row links displayed for each site on the My Sites screen. 121 121 * … … 124 124 * @param string $string The HTML site link markup. 125 125 * @param object $user_blog An object containing the site data. 126 126 */ 127 echo "<p>" . apply_filters( 'myblogs_blog_actions', "<a href='" . esc_url( get_home_url( $user_blog->userblog_id ) ). "'>" . __( 'Visit' ) . "</a> | <a href='" . esc_url( get_admin_url( $user_blog->userblog_id ) ) . "'>" . __( 'Dashboard' ) . "</a>", $user_blog ) . "</p>";128 /** This filter is documented in wp-admin/my-sites.php */129 echo apply_filters( 'myblogs_options', '', $user_blog );130 echo "</td>";127 echo '<p>', apply_filters( 'myblogs_blog_actions', '<a href="' . esc_url( get_home_url( $user_blog->userblog_id ) ). '">' . __( 'Visit' ) . '</a> | <a href="' . esc_url( get_admin_url( $user_blog->userblog_id ) ) . '">' . __( 'Dashboard' ) . '</a>', $user_blog ), '</p>', 128 /** This filter is documented in wp-admin/my-sites.php */ 129 apply_filters( 'myblogs_options', '', $user_blog ), 130 '</td>'; 131 131 $i++; 132 132 } 133 echo "</tr>";133 echo '</tr>'; 134 134 }?> 135 135 </table> 136 136 <input type="hidden" name="action" value="updateblogsettings" /> -
I:\000_WP_SVN\wp-core\src\wp-admin\customize.php
146 146 <div id="customize-info" class="accordion-section"> 147 147 <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>" tabindex="0"> 148 148 <span class="preview-notice"><?php 149 echo sprintf( __( 'You are customizing %s' ), '<strong class="theme-name site-title">' . get_bloginfo( 'name' ) . '</strong>' );149 printf( __( 'You are customizing %s' ), '<strong class="theme-name site-title">' . get_bloginfo( 'name' ) . '</strong>' ); 150 150 ?></span> 151 151 </div> 152 152 <div class="accordion-section-content"><?php -
I:\000_WP_SVN\wp-core\src\wp-admin\update.php
79 79 } 80 80 iframe_header( __('Plugin Reactivation'), true ); 81 81 if ( isset($_GET['success']) ) 82 echo '<p>' . __('Plugin reactivated successfully.') .'</p>';82 echo '<p>', __( 'Plugin reactivated successfully.' ), '</p>'; 83 83 84 84 if ( isset($_GET['failure']) ){ 85 echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') .'</p>';85 echo '<p>', __( 'Plugin failed to reactivate due to a fatal error.' ), '</p>'; 86 86 87 87 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); 88 88 @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. -
I:\000_WP_SVN\wp-core\src\wp-admin\credits.php
101 101 $credits = wp_credits(); 102 102 103 103 if ( ! $credits ) { 104 echo '<p class="about-description">' .sprintf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),104 echo '<p class="about-description">', sprintf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ), 105 105 'https://wordpress.org/about/', 106 106 /* translators: Url to the codex documentation on contributing to WordPress used on the credits page */ 107 __( 'http://codex.wordpress.org/Contributing_to_WordPress' ) ) .'</p>';107 __( 'http://codex.wordpress.org/Contributing_to_WordPress' ) ), '</p>'; 108 108 include( ABSPATH . 'wp-admin/admin-footer.php' ); 109 109 exit; 110 110 } 111 111 112 echo '<p class="about-description">' . __( 'WordPress is created by a worldwide team of passionate individuals.' ) ."</p>\n";112 echo '<p class="about-description">', __( 'WordPress is created by a worldwide team of passionate individuals.' ), "</p>\n"; 113 113 114 114 $gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/'; 115 115 … … 124 124 $title = translate( $group_data['name'] ); 125 125 } 126 126 127 echo '<h4 class="wp-people-group">' . $title ."</h4>\n";127 echo '<h4 class="wp-people-group">', $title, "</h4>\n"; 128 128 } 129 129 130 130 if ( ! empty( $group_data['shuffle'] ) ) … … 133 133 switch ( $group_data['type'] ) { 134 134 case 'list' : 135 135 array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits['data']['profiles'] ); 136 echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) ."</p>\n\n";136 echo '<p class="wp-credits-list">', wp_sprintf( '%l.', $group_data['data'] ), "</p>\n\n"; 137 137 break; 138 138 case 'libraries' : 139 139 array_walk( $group_data['data'], '_wp_credits_build_object_link' ); 140 echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) ."</p>\n\n";140 echo '<p class="wp-credits-list">', wp_sprintf( '%l.', $group_data['data'] ), "</p>\n\n"; 141 141 break; 142 142 default: 143 143 $compact = 'compact' == $group_data['type']; 144 144 $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); 145 echo '<ul class="' . $classes . '" id="wp-people-group-' . $group_slug . '">' ."\n";145 echo '<ul class="', $classes, '" id="wp-people-group-', $group_slug, '">', "\n"; 146 146 foreach ( $group_data['data'] as $person_data ) { 147 echo '<li class="wp-person" id="wp-person-' . $person_data[2] . '">' . "\n\t";148 echo '<a href="' . sprintf( $credits['data']['profiles'], $person_data[2] ) .'">';147 echo '<li class="wp-person" id="wp-person-', $person_data[2], '">', "\n\t", 148 '<a href="', sprintf( $credits['data']['profiles'], $person_data[2] ), '">'; 149 149 $size = 'compact' == $group_data['type'] ? '30' : '60'; 150 echo '<img src="' . $gravatar . $person_data[1] . '?s=' . $size . '" class="gravatar" alt="' . esc_attr( $person_data[0] ) . '" /></a>' . "\n\t";151 echo '<a class="web" href="' . sprintf( $credits['data']['profiles'], $person_data[2] ) . '">' . $person_data[0] ."</a>\n\t";150 echo '<img src="', $gravatar, $person_data[1], '?s=', $size, '" class="gravatar" alt="', esc_attr( $person_data[0] ), '" /></a>', "\n\t", 151 '<a class="web" href="', sprintf( $credits['data']['profiles'], $person_data[2] ), '">', $person_data[0], "</a>\n\t"; 152 152 if ( ! $compact ) 153 echo '<span class="title">' . translate( $person_data[3] ) ."</span>\n";153 echo '<span class="title">', translate( $person_data[3] ), "</span>\n"; 154 154 echo "</li>\n"; 155 155 } 156 156 echo "</ul>\n"; -
I:\000_WP_SVN\wp-core\src\wp-admin\user-new.php
253 253 254 254 if ( ! empty( $messages ) ) { 255 255 foreach ( $messages as $msg ) 256 echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg .'</p></div>';256 echo '<div id="message" class="updated notice is-dismissible"><p>', $msg, '</p></div>'; 257 257 } ?> 258 258 259 259 <?php if ( isset($add_user_errors) && is_wp_error( $add_user_errors ) ) : ?> … … 269 269 <?php 270 270 if ( is_multisite() ) { 271 271 if ( $do_both ) 272 echo '<h3 id="add-existing-user">' . __('Add Existing User') .'</h3>';272 echo '<h3 id="add-existing-user">', __( 'Add Existing User' ), '</h3>'; 273 273 if ( !is_super_admin() ) { 274 echo '<p>' . __( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ) .'</p>';274 echo '<p>', __( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ), '</p>'; 275 275 $label = __('E-mail'); 276 276 $type = 'email'; 277 277 } else { 278 echo '<p>' . __( 'Enter the email address or username of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ) .'</p>';278 echo '<p>', __( 'Enter the email address or username of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ), '</p>'; 279 279 $label = __('E-mail or Username'); 280 280 $type = 'text'; 281 281 } … … 331 331 332 332 if ( current_user_can( 'create_users') ) { 333 333 if ( $do_both ) 334 echo '<h3 id="create-new-user">' . __( 'Add New User' ) .'</h3>';334 echo '<h3 id="create-new-user">', __( 'Add New User' ), '</h3>'; 335 335 ?> 336 336 <p><?php _e('Create a brand new user and add them to this site.'); ?></p> 337 337 <form method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"<?php -
I:\000_WP_SVN\wp-core\src\wp-admin\network.php
154 154 global $is_apache; 155 155 156 156 if ( defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) { 157 echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '</p></div>';158 echo'</div>';157 echo '<div class="error"><p><strong>', __( 'ERROR:' ), '</strong> ', __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ), '</p></div>', 158 '</div>'; 159 159 include( ABSPATH . 'wp-admin/admin-footer.php' ); 160 160 die(); 161 161 } 162 162 163 163 $active_plugins = get_option( 'active_plugins' ); 164 164 if ( ! empty( $active_plugins ) ) { 165 echo '<div class="updated"><p><strong>' . __('Warning:') . '</strong> ' . sprintf( __( 'Please <a href="%s">deactivate your plugins</a> before enabling the Network feature.' ), admin_url( 'plugins.php?plugin_status=active' ) ) . '</p></div><p>' . __( 'Once the network is created, you may reactivate your plugins.' ) . '</p>';166 echo'</div>';165 echo '<div class="updated"><p><strong>', __( 'Warning:' ), '</strong> ', sprintf( __( 'Please <a href="%s">deactivate your plugins</a> before enabling the Network feature.' ), admin_url( 'plugins.php?plugin_status=active' ) ), '</p></div><p>', __( 'Once the network is created, you may reactivate your plugins.' ), '</p>', 166 '</div>'; 167 167 include( ABSPATH . 'wp-admin/admin-footer.php' ); 168 168 die(); 169 169 } … … 171 171 $hostname = get_clean_basedomain(); 172 172 $has_ports = strstr( $hostname, ':' ); 173 173 if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ) ) ) ) { 174 echo '<div class="error"><p><strong>' . __( 'ERROR:') . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>';175 echo '<p>' . sprintf( __( 'You cannot use port numbers such as <code>%s</code>.' ), $has_ports ) . '</p>';176 echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>';177 echo'</div>';174 echo '<div class="error"><p><strong>', __( 'ERROR:' ), '</strong> ', __( 'You cannot install a network of sites with your server address.' ), '</p></div>', 175 '<p>', sprintf( __( 'You cannot use port numbers such as <code>%s</code>.' ), $has_ports ), '</p>', 176 '<a href="', esc_url( admin_url() ), '">', __( 'Return to Dashboard' ), '</a>', 177 '</div>'; 178 178 include( ABSPATH . 'wp-admin/admin-footer.php' ); 179 179 die(); 180 180 } … … 185 185 186 186 $error_codes = array(); 187 187 if ( is_wp_error( $errors ) ) { 188 echo '<div class="error"><p><strong>' . __( 'ERROR: The network could not be created.' ) .'</strong></p>';188 echo '<div class="error"><p><strong>', __( 'ERROR: The network could not be created.' ), '</strong></p>'; 189 189 foreach ( $errors->get_error_messages() as $error ) 190 190 echo "<p>$error</p>"; 191 191 echo '</div>'; … … 208 208 } else { 209 209 $subdomain_install = false; 210 210 if ( $got_mod_rewrite = got_mod_rewrite() ) // dangerous assumptions 211 echo '<div class="updated inline"><p><strong>' . __( 'Note:' ) . '</strong> ' . __( 'Please make sure the Apache <code>mod_rewrite</code> module is installed as it will be used at the end of this installation.' ) .'</p>';211 echo '<div class="updated inline"><p><strong>', __( 'Note:' ), '</strong> ', __( 'Please make sure the Apache <code>mod_rewrite</code> module is installed as it will be used at the end of this installation.' ), '</p>'; 212 212 elseif ( $is_apache ) 213 echo '<div class="error inline"><p><strong>' . __( 'Warning!' ) . '</strong> ' . __( 'It looks like the Apache <code>mod_rewrite</code> module is not installed.' ) .'</p>';213 echo '<div class="error inline"><p><strong>', __( 'Warning!' ), '</strong> ', __( 'It looks like the Apache <code>mod_rewrite</code> module is not installed.' ), '</p>'; 214 214 if ( $got_mod_rewrite || $is_apache ) // Protect against mod_rewrite mimicry (but ! Apache) 215 echo '<p>' . __( 'If <code>mod_rewrite</code> is disabled, ask your administrator to enable that module, or look at the <a href="http://httpd.apache.org/docs/mod/mod_rewrite.html">Apache documentation</a> or <a href="http://www.google.com/search?q=apache+mod_rewrite">elsewhere</a> for help setting it up.' ) .'</p></div>';215 echo '<p>', __( 'If <code>mod_rewrite</code> is disabled, ask your administrator to enable that module, or look at the <a href="http://httpd.apache.org/docs/mod/mod_rewrite.html">Apache documentation</a> or <a href="http://www.google.com/search?q=apache+mod_rewrite">elsewhere</a> for help setting it up.' ), '</p></div>'; 216 216 } 217 217 218 218 if ( allow_subdomain_install() && allow_subdirectory_install() ) : ?> … … 243 243 endif; 244 244 245 245 if ( WP_CONTENT_DIR != ABSPATH . 'wp-content' && ( allow_subdirectory_install() || ! allow_subdomain_install() ) ) 246 echo '<div class="error inline"><p><strong>' . __('Warning!') . '</strong> ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) .'</p></div>';246 echo '<div class="error inline"><p><strong>', __( 'Warning!' ), '</strong> ', __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ), '</p></div>'; 247 247 248 248 $is_www = ( 0 === strpos( $hostname, 'www.' ) ); 249 249 if ( $is_www ) : … … 269 269 _e( 'Because you are using <code>localhost</code>, the sites in your WordPress network must use sub-directories. Consider using <code>localhost.localdomain</code> if you wish to use sub-domains.' ); 270 270 // Uh oh: 271 271 if ( !allow_subdirectory_install() ) 272 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) .'</strong>';272 echo ' <strong>', __( 'Warning!' ), ' ', __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ), '</strong>'; 273 273 ?></td> 274 274 </tr> 275 275 <?php elseif ( !allow_subdomain_install() ) : ?> … … 279 279 _e( 'Because your install is in a directory, the sites in your WordPress network must use sub-directories.' ); 280 280 // Uh oh: 281 281 if ( !allow_subdirectory_install() ) 282 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) .'</strong>';282 echo ' <strong>', __( 'Warning!' ), ' ', __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ), '</strong>'; 283 283 ?></td> 284 284 </tr> 285 285 <?php elseif ( !allow_subdirectory_install() ) : ?> 286 286 <tr> 287 287 <th scope="row"><?php esc_html_e( 'Sub-domain Install' ); ?></th> 288 288 <td><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' ); 289 echo ' <strong>' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) .'</strong>';289 echo ' <strong>', __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ), '</strong>'; 290 290 ?></td> 291 291 </tr> 292 292 <?php endif; ?> … … 348 348 349 349 // Wildcard DNS message. 350 350 if ( is_wp_error( $errors ) ) 351 echo '<div class="error">' . $errors->get_error_message() .'</div>';351 echo '<div class="error">', $errors->get_error_message(), '</div>'; 352 352 353 353 if ( $_POST ) { 354 354 if ( allow_subdomain_install() ) … … 496 496 '<code>web.config</code>', '<code>' . $home_path . '</code>' ); 497 497 echo '</p>'; 498 498 if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' ) 499 echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) .'</strong></p>';499 echo '<p><strong>', __( 'Warning:' ), ' ', __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ), '</strong></p>'; 500 500 ?> 501 501 <textarea class="code" readonly="readonly" cols="100" rows="20"><?php echo esc_textarea( $web_config_file ); ?> 502 502 </textarea></li> … … 533 533 '<code>.htaccess</code>', '<code>' . $home_path . '</code>' ); 534 534 echo '</p>'; 535 535 if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' ) 536 echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) .'</strong></p>';536 echo '<p><strong>', __( 'Warning:' ), ' ', __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ), '</strong></p>'; 537 537 ?> 538 538 <textarea class="code" readonly="readonly" cols="100" rows="<?php echo substr_count( $htaccess_file, "\n" ) + 1; ?>"> 539 539 <?php echo esc_textarea( $htaccess_file ); ?></textarea></li> -
I:\000_WP_SVN\wp-core\src\wp-admin\theme-editor.php
147 147 continue; 148 148 149 149 $selected = $a_stylesheet == $stylesheet ? ' selected="selected"' : ''; 150 echo "\n\t" . '<option value="' . esc_attr( $a_stylesheet ) . '"' . $selected . '>' . $a_theme->display('Name') .'</option>';150 echo "\n\t", '<option value="', esc_attr( $a_stylesheet ), '"', $selected, '>', $a_theme->display( 'Name' ), '</option>'; 151 151 } 152 152 ?> 153 153 </select> … … 158 158 </div> 159 159 <?php 160 160 if ( $theme->errors() ) 161 echo '<div class="error"><p><strong>' . __( 'This theme is broken.' ) . '</strong> ' . $theme->errors()->get_error_message() .'</p></div>';161 echo '<div class="error"><p><strong>', __( 'This theme is broken.' ), '</strong> ', $theme->errors()->get_error_message(), '</p></div>'; 162 162 ?> 163 163 <div id="templateside"> 164 164 <?php … … 175 175 176 176 foreach ( $allowed_files as $filename => $absolute_filename ) : 177 177 if ( 'style.css' == $filename ) 178 echo "\t</ul>\n\t<h3>" . _x( 'Styles', 'Theme stylesheets in theme editor' ) ."</h3>\n\t<ul>\n";178 echo "\t</ul>\n\t<h3>", _x( 'Styles', 'Theme stylesheets in theme editor' ), "</h3>\n\t<ul>\n"; 179 179 180 180 $file_description = get_file_description( $absolute_filename ); 181 181 if ( $file_description != basename( $filename ) ) … … 192 192 <?php endif; ?> 193 193 </div> 194 194 <?php if ( $error ) : 195 echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') .'</p></div>';195 echo '<div class="error"><p>', __( 'Oops, no such file exists! Double check the name and try again, merci.' ), '</p></div>'; 196 196 else : ?> 197 197 <form name="template" id="template" action="theme-editor.php" method="post"> 198 198 <?php wp_nonce_field( 'edit-theme_' . $file . $stylesheet ); ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\comment.php
150 150 break; 151 151 } 152 152 if ( $message ) { 153 echo '<div class="notice notice-info"><p>' . $message .'</p></div>';153 echo '<div class="notice notice-info"><p>', $message, '</p></div>'; 154 154 } 155 155 } 156 156 ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\update-core.php
71 71 $download = sprintf(__('Download %s'), $version_string); 72 72 } 73 73 74 echo '<p>' ;75 echo $message;76 echo '</p>';77 echo '<form method="post" action="' . $form_action .'" name="upgrade" class="upgrade">';74 echo '<p>', 75 $message, 76 '</p>', 77 '<form method="post" action="', $form_action, '" name="upgrade" class="upgrade">'; 78 78 wp_nonce_field('upgrade-core'); 79 echo '<p>' ;80 echo '<input name="version" value="'. esc_attr($update->current) .'" type="hidden"/>';81 echo '<input name="locale" value="'. esc_attr($update->locale) .'" type="hidden"/>';79 echo '<p>', 80 '<input name="version" value="', esc_attr( $update->current ), '" type="hidden"/>', 81 '<input name="locale" value="', esc_attr( $update->locale ), '" type="hidden"/>'; 82 82 if ( $show_buttons ) { 83 83 if ( $first_pass ) { 84 84 submit_button( $submit, $current ? 'button' : 'primary regular', 'upgrade', false ); … … 86 86 } else { 87 87 submit_button( $submit, 'button', 'upgrade', false ); 88 88 } 89 echo ' <a href="' . esc_url( $update->download ) . '" class="button">' . $download .'</a> ';89 echo ' <a href="', esc_url( $update->download ), '" class="button">', $download, '</a> '; 90 90 } 91 91 if ( 'en_US' != $update->locale ) 92 92 if ( !isset( $update->dismissed ) || !$update->dismissed ) … … 95 95 submit_button( __('Bring back this update'), 'button', 'undismiss', false ); 96 96 echo '</p>'; 97 97 if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) ) 98 echo '<p class="hint">' .__('This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.').'</p>';98 echo '<p class="hint">', __( 'This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.' ), '</p>'; 99 99 // Partial builds don't need language-specific warnings. 100 100 elseif ( 'en_US' == $update->locale && get_locale() != 'en_US' && ( ! $update->packages->partial && $wp_version == $update->partial_version ) ) { 101 echo '<p class="hint">' .sprintf( __('You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.'), $update->response != 'development' ? $update->current : '' ).'</p>';101 echo '<p class="hint">', sprintf( __( 'You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.' ), ( $update->response != 'development' ? $update->current : '' ) ), '</p>'; 102 102 } 103 103 echo '</form>'; 104 104 … … 120 120 }); 121 121 </script> 122 122 <?php 123 echo '<p class="hide-if-no-js"><a id="show-dismissed" href="#">' .__('Show hidden updates').'</a></p>';124 echo'<ul id="dismissed-updates" class="core-updates dismissed">';123 echo '<p class="hide-if-no-js"><a id="show-dismissed" href="#">', __( 'Show hidden updates' ), '</a></p>', 124 '<ul id="dismissed-updates" class="core-updates dismissed">'; 125 125 foreach( (array) $dismissed as $update) { 126 126 echo '<li>'; 127 127 list_core_update( $update ); … … 158 158 ); 159 159 $should_auto_update = $upgrader->should_update( 'core', $future_minor_update, ABSPATH ); 160 160 if ( $should_auto_update ) 161 echo ' ' .__( 'Future security updates will be applied automatically.' );161 echo ' ', __( 'Future security updates will be applied automatically.' ); 162 162 } 163 163 echo '</h3>'; 164 164 } else { … … 175 175 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 176 176 $upgrader = new WP_Automatic_Updater; 177 177 if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) { 178 echo '<div class="updated inline"><p>' ;179 echo '<strong>' . __( 'BETA TESTERS:' ) . '</strong> ' . __( 'This site is set up to install updates of future beta versions automatically.' );180 echo'</p></div>';178 echo '<div class="updated inline"><p>', 179 '<strong>', __( 'BETA TESTERS:' ), '</strong> ', __( 'This site is set up to install updates of future beta versions automatically.' ), 180 '</p></div>'; 181 181 } 182 182 } 183 183 … … 190 190 echo '</ul>'; 191 191 // Don't show the maintenance mode notice when we are only showing a single re-install option. 192 192 if ( $updates && ( count( $updates ) > 1 || $updates[0]->response != 'latest' ) ) { 193 echo '<p>' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) .'</p>';193 echo '<p>', __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ), '</p>'; 194 194 } elseif ( ! $updates ) { 195 195 list( $normalized_version ) = explode( '-', $wp_version ); 196 echo '<p>' . sprintf( __( '<a href="%s">Learn more about WordPress %s</a>.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ) .'</p>';196 echo '<p>', sprintf( __( '<a href="%s">Learn more about WordPress %s</a>.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ), '</p>'; 197 197 } 198 198 dismissed_updates(); 199 199 } … … 206 206 require_once(ABSPATH . 'wp-admin/includes/plugin-install.php'); 207 207 $plugins = get_plugin_updates(); 208 208 if ( empty( $plugins ) ) { 209 echo '<h3>' . __( 'Plugins' ) . '</h3>';210 echo '<p>' . __( 'Your plugins are all up to date.' ) .'</p>';209 echo '<h3>', __( 'Plugins' ), '</h3>', 210 '<p>', __( 'Your plugins are all up to date.' ), '</p>'; 211 211 return; 212 212 } 213 213 $form_action = 'update-core.php?action=do-plugin-upgrade'; … … 292 292 function list_theme_updates() { 293 293 $themes = get_theme_updates(); 294 294 if ( empty( $themes ) ) { 295 echo '<h3>' . __( 'Themes' ) . '</h3>';296 echo '<p>' . __( 'Your themes are all up to date.' ) .'</p>';295 echo '<h3>', __( 'Themes' ), '</h3>', 296 '<p>', __( 'Your themes are all up to date.' ), '</p>'; 297 297 return; 298 298 } 299 299 … … 342 342 $updates = wp_get_translation_updates(); 343 343 if ( ! $updates ) { 344 344 if ( 'en_US' != get_locale() ) { 345 echo '<h3>' . __( 'Translations' ) . '</h3>';346 echo '<p>' . __( 'Your translations are all up to date.' ) .'</p>';345 echo '<h3>', __( 'Translations' ), '</h3>', 346 '<p>', __( 'Your translations are all up to date.' ), '</p>'; 347 347 } 348 348 return; 349 349 } … … 524 524 echo '<p>'; 525 525 /* translators: %1 date, %2 time. */ 526 526 printf( __('Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) ); 527 echo ' <a class="button" href="' . esc_url( self_admin_url('update-core.php?force-check=1') ) . '">' . __( 'Check Again' ) . '</a>';528 echo'</p>';527 echo ' <a class="button" href="', esc_url( self_admin_url('update-core.php?force-check=1') ), '">', __( 'Check Again' ), '</a>', 528 '</p>'; 529 529 530 530 if ( $core = current_user_can( 'update_core' ) ) 531 531 core_upgrade_preamble(); … … 591 591 $title = __('Update Plugins'); 592 592 593 593 require_once(ABSPATH . 'wp-admin/admin-header.php'); 594 echo '<div class="wrap">' ;595 echo '<h2>' . esc_html__('Update Plugins') . '</h2>';596 echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>';597 echo'</div>';594 echo '<div class="wrap">', 595 '<h2>', esc_html__( 'Update Plugins' ), '</h2>', 596 '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>', 597 '</div>'; 598 598 include(ABSPATH . 'wp-admin/admin-footer.php'); 599 599 600 600 } elseif ( 'do-theme-upgrade' == $action ) { -
I:\000_WP_SVN\wp-core\src\wp-admin\users.php
233 233 foreach ( $userids as $id ) { 234 234 $user = get_userdata( $id ); 235 235 if ( $id == $current_user->ID ) { 236 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) ."</li>\n";236 echo '<li>', sprintf( __( 'ID #%1$s: %2$s <strong>The current user will not be deleted.</strong>' ), $id, $user->user_login ), "</li>\n"; 237 237 } else { 238 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"" . esc_attr($id) . "\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) ."</li>\n";238 echo '<li><input type="hidden" name="users[]" value="', esc_attr( $id ), '" />', sprintf( __( 'ID #%1$s: %2$s' ), $id, $user->user_login ), "</li>\n"; 239 239 $go_delete++; 240 240 } 241 241 } … … 345 345 $id = (int) $id; 346 346 $user = get_userdata( $id ); 347 347 if ( $id == $current_user->ID && !is_super_admin() ) { 348 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) ."</li>\n";348 echo '<li>', sprintf( __( 'ID #%1$s: %2$s <strong>The current user will not be removed.</strong>' ), $id, $user->user_login ), "</li>\n"; 349 349 } elseif ( !current_user_can('remove_user', $id) ) { 350 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>You don\'t have permission to remove this user.</strong>'), $id, $user->user_login) ."</li>\n";350 echo '<li>', sprintf( __( 'ID #%1$s: %2$s <strong>You don\'t have permission to remove this user.</strong>' ), $id, $user->user_login ), "</li>\n"; 351 351 } else { 352 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"{$id}\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) ."</li>\n";352 echo '<li><input type="hidden" name="users[]" value="', $id,'" />', sprintf( __( 'ID #%1$s: %2$s' ), $id, $user->user_login ), "</li>\n"; 353 353 $go_remove = true; 354 354 } 355 355 } -
I:\000_WP_SVN\wp-core\src\wp-admin\custom-header.php
265 265 } 266 266 267 267 if ( 1 < count( $headers ) ) { 268 echo '<div class="random-header">' ;269 echo '<label><input name="default-header" type="radio" value="random-' . $type . '-image"' . checked( is_random_header_image( $type ), true, false ) . ' />';270 echo __( '<strong>Random:</strong> Show a different image on each page.' );271 echo '</label>';272 echo'</div>';268 echo '<div class="random-header">', 269 '<label><input name="default-header" type="radio" value="random-', $type, '-image"', checked( is_random_header_image( $type ), true, false ), ' />', 270 __( '<strong>Random:</strong> Show a different image on each page.' ), 271 '</label>', 272 '</div>'; 273 273 } 274 274 275 275 echo '<div class="available-headers">'; … … 278 278 $header_url = $header['url']; 279 279 $header_desc = empty( $header['description'] ) ? '' : $header['description']; 280 280 echo '<div class="default-header">'; 281 echo '<label><input name="default-header" type="radio" value="' . esc_attr( $header_key ) . '" ' . checked( $header_url, get_theme_mod( 'header_image' ), false ) .' />';281 echo '<label><input name="default-header" type="radio" value="', esc_attr( $header_key ), '" ', checked( $header_url, get_theme_mod( 'header_image' ), false ), ' />'; 282 282 $width = ''; 283 283 if ( !empty( $header['attachment_id'] ) ) 284 284 $width = ' width="230"'; 285 echo '<img src="' . set_url_scheme( $header_thumbnail ) . '" alt="' . esc_attr( $header_desc ) .'" title="' . esc_attr( $header_desc ) . '"' . $width .' /></label>';285 echo '<img src="', set_url_scheme( $header_thumbnail ), '" alt="', esc_attr( $header_desc ), '" title="', esc_attr( $header_desc ), '"', $width, ' /></label>'; 286 286 echo '</div>'; 287 287 } 288 288 echo '<div class="clear"></div></div>'; … … 647 647 $header_textcolor = '#' . $header_textcolor; 648 648 } 649 649 650 echo '<input type="text" name="text-color" id="text-color" value="' . esc_attr( $header_textcolor ) . '"' . $default_color_attr .' />';650 echo '<input type="text" name="text-color" id="text-color" value="', esc_attr( $header_textcolor ), '"', $default_color_attr, ' />'; 651 651 if ( $default_color ) { 652 echo ' <span class="description hide-if-js">' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) .'</span>';652 echo ' <span class="description hide-if-js">', sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ), '</span>'; 653 653 } 654 654 ?> 655 655 </p> -
I:\000_WP_SVN\wp-core\src\wp-admin\themes.php
149 149 $ct = wp_get_theme(); 150 150 151 151 if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { 152 echo '<div class="error"><p>' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) .'</p></div>';152 echo '<div class="error"><p>', sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ), '</p></div>'; 153 153 } 154 154 155 155 /* -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-ms-sites-list-table.php
230 230 $blog_state .= "<span class='post-state'>$state$sep</span>"; 231 231 } 232 232 } 233 echo "<tr{$class}>";233 echo '<tr', $class, '>'; 234 234 235 235 $blogname = ( is_subdomain_install() ) ? str_replace( '.' . get_current_site()->domain, '', $blog['domain'] ) : $blog['path']; 236 236 … … 265 265 <?php 266 266 if ( 'list' != $mode ) { 267 267 switch_to_blog( $blog['blog_id'] ); 268 echo '<p>' . sprintf( _x( '%1$s – <em>%2$s</em>', '%1$s: site name. %2$s: site tagline.' ), get_option( 'blogname' ), get_option( 'blogdescription ' ) ) .'</p>';268 echo '<p>', sprintf( _x( '%1$s – <em>%2$s</em>', '%1$s: site name. %2$s: site tagline.' ), get_option( 'blogname' ), get_option( 'blogdescription ' ) ), '</p>'; 269 269 restore_current_blog(); 270 270 } 271 271 … … 351 351 $blogusers_warning = __( 'Only showing first 5 users.' ) . ' <a href="' . esc_url( network_admin_url( 'site-users.php?id=' . $blog['blog_id'] ) ) . '">' . __( 'More' ) . '</a>'; 352 352 } 353 353 foreach ( $blogusers as $user_object ) { 354 echo '<a href="' . esc_url( network_admin_url( 'user-edit.php?user_id=' . $user_object->ID ) ) . '">' . esc_html( $user_object->user_login ) .'</a> ';354 echo '<a href="', esc_url( network_admin_url( 'user-edit.php?user_id=' . $user_object->ID ) ), '">', esc_html( $user_object->user_login ), '</a> '; 355 355 if ( 'list' != $mode ) 356 echo '( ' . $user_object->user_email .' )';356 echo '( ', $user_object->user_email, ' )'; 357 357 echo '<br />'; 358 358 } 359 359 if ( $blogusers_warning != '' ) 360 echo '<strong>' . $blogusers_warning .'</strong><br />';360 echo '<strong>', $blogusers_warning, '</strong><br />'; 361 361 } 362 362 ?> 363 363 </td> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\plugin.php
1873 1873 * @param string $option_group A settings group name. This should match the group name used in register_setting(). 1874 1874 */ 1875 1875 function settings_fields($option_group) { 1876 echo "<input type='hidden' name='option_page' value='" . esc_attr($option_group) . "' />";1876 echo '<input type="hidden" name="option_page" value="', esc_attr( $option_group ), '" />'; 1877 1877 echo '<input type="hidden" name="action" value="update" />'; 1878 1878 wp_nonce_field("$option_group-options"); 1879 1879 } -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\ms.php
387 387 */ 388 388 function new_user_email_admin_notice() { 389 389 if ( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) && isset( $_GET['updated'] ) && $email = get_option( get_current_user_id() . '_new_email' ) ) 390 echo "<div class='update-nag'>" . sprintf( __( "Your email address has not been updated yet. Please check your inbox at %s for a confirmation email." ), $email['newemail'] ) . "</div>";390 echo '<div class="update-nag">', sprintf( __( 'Your email address has not been updated yet. Please check your inbox at %s for a confirmation email.' ), $email['newemail'] ), '</div>'; 391 391 } 392 392 add_action( 'admin_notices', 'new_user_email_admin_notice' ); 393 393 … … 734 734 if ( !is_super_admin() ) 735 735 return false; 736 736 if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) 737 echo "<div class='update-nag'>" . sprintf( __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ) . "</div>";737 echo '<div class="update-nag">', sprintf( __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ), '</div>'; 738 738 } 739 739 add_action( 'admin_notices', 'site_admin_notice' ); 740 740 add_action( 'network_admin_notices', 'site_admin_notice' ); -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-ms-themes-list-table.php
384 384 385 385 switch ( $column_name ) { 386 386 case 'cb': 387 echo "<th scope='row' class='check-column'>$checkbox</th>";387 echo '<th scope="row" class="check-column">', $checkbox, '</th>'; 388 388 break; 389 389 case 'name': 390 echo "<td class='theme-title'$style><strong>" . $theme->display('Name') . "</strong>";391 echo $this->row_actions( $actions, true );392 echo "</td>";390 echo '<td class="theme-title"', $style, '><strong>', $theme->display( 'Name' ), '</strong>', 391 $this->row_actions( $actions, true ), 392 '</td>'; 393 393 break; 394 394 case 'description': 395 395 echo "<td class='column-description desc'$style>"; 396 396 if ( $theme->errors() ) { 397 397 $pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : ''; 398 echo '<p><strong class="attention">' . $pre . $theme->errors()->get_error_message() .'</strong></p>';398 echo '<p><strong class="attention">', $pre, $theme->errors()->get_error_message(), '</strong></p>'; 399 399 } 400 echo "<div class='theme-description'><p>" . $theme->display( 'Description' ) . "</p></div>401 <div class= '$class second theme-version-author-uri'>";400 echo '<div class="theme-description"><p>', $theme->display( 'Description' ), '</p></div> 401 <div class="', $class, ' second theme-version-author-uri">'; 402 402 403 403 $theme_meta = array(); 404 404 -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\screen.php
82 82 if ( 'submitdiv' == $box['id'] || 'linksubmitdiv' == $box['id'] ) 83 83 continue; 84 84 $box_id = $box['id']; 85 echo '<label for="' . $box_id . '-hide">';86 echo '<input class="hide-postbox-tog" name="' . $box_id . '-hide" type="checkbox" id="' . $box_id . '-hide" value="' . $box_id . '"' . (! in_array($box_id, $hidden) ? ' checked="checked"' : '') . ' />';87 echo "{$box['title']}</label>\n";85 echo '<label for="', $box_id, '-hide">', 86 '<input class="hide-postbox-tog" name="', $box_id, '-hide" type="checkbox" id="', $box_id, '-hide" value="', $box_id, '"', ( ! in_array( $box_id, $hidden ) ? ' checked="checked"' : '' ), ' />', 87 $box['title'], "</label>\n"; 88 88 } 89 89 } 90 90 } … … 1047 1047 $welcome_checked = false; 1048 1048 } 1049 1049 echo '<label for="wp_welcome_panel-hide">'; 1050 echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) $welcome_checked, true, false ) .' />';1051 echo _x( 'Welcome', 'Welcome panel' ) ."</label>\n";1050 echo '<input type="checkbox" id="wp_welcome_panel-hide"', checked( (bool) $welcome_checked, true, false ), ' />'; 1051 echo _x( 'Welcome', 'Welcome panel' ), "</label>\n"; 1052 1052 } 1053 1053 ?> 1054 1054 <br class="clear" /> … … 1072 1072 if ( 'comments' == $column ) 1073 1073 $title = __( 'Comments' ); 1074 1074 $id = "$column-hide"; 1075 echo '<label for="' . $id . '">';1076 echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( !in_array($column, $hidden), true, false ) . ' />';1077 echo "$title</label>\n";1075 echo '<label for="', $id, '">', 1076 '<input class="hide-column-tog" name="', $id, '" type="checkbox" id="', $id, '" value="', $column, '"', checked( ! in_array( $column, $hidden ), true, false ), ' />', 1077 $title, "</label>\n"; 1078 1078 } 1079 1079 ?> 1080 1080 <br class="clear" /> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-posts-list-table.php
282 282 'selected' => $cat 283 283 ); 284 284 285 echo '<label class="screen-reader-text" for="cat">' . __( 'Filter by category' ) .'</label>';285 echo '<label class="screen-reader-text" for="cat">', __( 'Filter by category' ), '</label>'; 286 286 wp_dropdown_categories( $dropdown_options ); 287 287 } 288 288 … … 724 724 if ( $format = get_post_format( $post->ID ) ) { 725 725 $label = get_post_format_string( $format ); 726 726 727 echo '<a href="' . esc_url( add_query_arg( array( 'post_format' => $format, 'post_type' => $post->post_type ), 'edit.php' ) ) . '" class="post-state-format post-format-icon post-format-' . $format . '" title="' . $label . '">' . $label . ":</a> ";727 echo '<a href="', esc_url( add_query_arg( array( 'post_format' => $format, 'post_type' => $post->post_type ), 'edit.php' ) ), '" class="post-state-format post-format-icon post-format-', $format, '" title="', $label, '">', $label, ':</a> '; 728 728 } 729 729 730 730 if ( $can_edit_post && $post->post_status != 'trash' ) { 731 echo '<a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ) . '">' . $pad . $title .'</a>';731 echo '<a class="row-title" href="', $edit_link, '" title="', esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), '">', $pad, $title, '</a>'; 732 732 } else { 733 echo $pad .$title;733 echo $pad, $title; 734 734 } 735 735 _post_states( $post ); 736 736 737 737 if ( isset( $parent_name ) ) 738 echo ' | ' . $post_type_object->labels->parent_item_colon . ' ' .esc_html( $parent_name );738 echo ' | ', $post_type_object->labels->parent_item_colon, ' ', esc_html( $parent_name ); 739 739 740 740 echo "</strong>\n"; 741 741 … … 747 747 $locked_avatar = $locked_text = ''; 748 748 } 749 749 750 echo '<div class="locked-info"><span class="locked-avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text ."</span></div>\n";750 echo '<div class="locked-info"><span class="locked-avatar">', $locked_avatar, '</span> <span class="locked-text">', $locked_text, "</span></div>\n"; 751 751 } 752 752 753 753 if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) … … 834 834 $h_time = mysql2date( __( 'Y/m/d' ), $m_time ); 835 835 } 836 836 837 echo '<td ' . $attributes .'>';837 echo '<td ', $attributes, '>'; 838 838 if ( 'excerpt' == $mode ) { 839 839 840 840 /** … … 855 855 } else { 856 856 857 857 /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ 858 echo '<abbr title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, $column_name, $mode ) .'</abbr>';858 echo '<abbr title="', $t_time, '">', apply_filters( 'post_date_column_time', $h_time, $post, $column_name, $mode ), '</abbr>'; 859 859 } 860 860 echo '<br />'; 861 861 if ( 'publish' == $post->post_status ) { 862 862 _e( 'Published' ); 863 863 } elseif ( 'future' == $post->post_status ) { 864 864 if ( $time_diff > 0 ) 865 echo '<strong class="attention">' . __( 'Missed schedule' ) .'</strong>';865 echo '<strong class="attention">', __( 'Missed schedule' ), '</strong>'; 866 866 else 867 867 _e( 'Scheduled' ); 868 868 } else { … … 906 906 907 907 if ( $taxonomy ) { 908 908 $taxonomy_object = get_taxonomy( $taxonomy ); 909 echo '<td ' . $attributes .'>';909 echo '<td ', $attributes, '>'; 910 910 if ( $terms = get_the_terms( $post->ID, $taxonomy ) ) { 911 911 $out = array(); 912 912 foreach ( $terms as $t ) { -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-terms-list-table.php
186 186 $terms = get_terms( $taxonomy, $args ); 187 187 188 188 if ( empty( $terms ) ) { 189 echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() .'">';189 echo '<tr class="no-items"><td class="colspanchange" colspan="', $this->get_column_count(), '">'; 190 190 $this->no_items(); 191 191 echo '</td></tr>'; 192 192 return; … … 277 277 278 278 $this->level = $level; 279 279 280 echo '<tr id="tag-' . $tag->term_id .'">';280 echo '<tr id="tag-', $tag->term_id, '">'; 281 281 $this->single_row_columns( $tag ); 282 282 echo '</tr>'; 283 283 } -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\widgets.php
70 70 71 71 $description = wp_sidebar_description( $sidebar ); 72 72 73 echo '<div id="' . esc_attr( $sidebar ) .'" class="widgets-sortables">';73 echo '<div id="', esc_attr( $sidebar ), '" class="widgets-sortables">'; 74 74 75 75 if ( $sidebar_name ) { 76 76 ?> … … 84 84 echo '<div class="sidebar-description">'; 85 85 86 86 if ( ! empty( $description ) ) { 87 echo '<p class="description">' . $description .'</p>';87 echo '<p class="description">', $description, '</p>'; 88 88 } 89 89 90 90 echo '</div>'; … … 211 211 if ( isset($control['callback']) ) 212 212 $has_form = call_user_func_array( $control['callback'], $control['params'] ); 213 213 else 214 echo "\t\t<p>" . __('There are no options for this widget.') ."</p>\n"; ?>214 echo "\t\t<p>", __( 'There are no options for this widget.' ), "</p>\n"; ?> 215 215 </div> 216 216 <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($id_format); ?>" /> 217 217 <input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr($id_base); ?>" /> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-users-list-table.php
318 318 if ( is_multisite() && empty( $user_object->allcaps ) ) 319 319 continue; 320 320 321 echo "\n\t" .$this->single_row( $user_object, $style = '', $role, isset( $post_counts ) ? $post_counts[ $userid ] : 0 );321 echo "\n\t", $this->single_row( $user_object, $style = '', $role, isset( $post_counts ) ? $post_counts[ $userid ] : 0 ); 322 322 } 323 323 } 324 324 -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\dashboard.php
158 158 echo '<form method="post" class="dashboard-widget-control-form">'; 159 159 wp_dashboard_trigger_widget_control( $meta_box['id'] ); 160 160 wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' ); 161 echo '<input type="hidden" name="widget_id" value="' . esc_attr($meta_box['id']) .'" />';161 echo '<input type="hidden" name="widget_id" value="', esc_attr( $meta_box['id'] ), '" />'; 162 162 submit_button( __('Submit') ); 163 163 echo '</form>'; 164 164 } … … 263 263 $elements = apply_filters( 'dashboard_glance_items', array() ); 264 264 265 265 if ( $elements ) { 266 echo '<li>' . implode( "</li>\n<li>", $elements ) ."</li>\n";266 echo '<li>', implode( "</li>\n<li>", $elements ), "</li>\n"; 267 267 } 268 268 269 269 ?> … … 298 298 */ 299 299 $content = apply_filters( 'privacy_on_link_text' , __( 'Search Engines Discouraged' ) ); 300 300 301 echo "<p><a href='options-reading.php' title='$title'>$content</a></p>";301 echo '<p><a href="options-reading.php" title="', $title, '">', $content, '</a></p>'; 302 302 } 303 303 ?> 304 304 </div> … … 356 356 foreach ( $actions as $class => $action ) { 357 357 $actions[ $class ] = "\t<li class='$class'>$action"; 358 358 } 359 echo implode( " |</li>\n", $actions ) ."</li>\n";359 echo implode( " |</li>\n", $actions ), "</li>\n"; 360 360 echo '</ul>'; 361 361 } 362 362 ?> … … 498 498 499 499 echo '<div class="drafts">'; 500 500 if ( count( $drafts ) > 3 ) { 501 echo '<p class="view-all"><a href="' . esc_url( admin_url( 'edit.php?post_status=draft' ) ) . '">' . _x( 'View all', 'drafts' ) ."</a></p>\n";501 echo '<p class="view-all"><a href="', esc_url( admin_url( 'edit.php?post_status=draft' ) ), '">', _x( 'View all', 'drafts' ), "</a></p>\n"; 502 502 } 503 echo '<h4 class="hide-if-no-js">' . __( 'Drafts' ) ."</h4>\n<ul>";503 echo '<h4 class="hide-if-no-js">', __( 'Drafts' ), "</h4>\n<ul>"; 504 504 505 505 $drafts = array_slice( $drafts, 0, 3 ); 506 506 foreach ( $drafts as $draft ) { 507 507 $url = get_edit_post_link( $draft->ID ); 508 508 $title = _draft_or_post_title( $draft->ID ); 509 echo "<li>\n" ;510 echo '<div class="draft-title"><a href="' . esc_url( $url ) . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ) . '">' . esc_html( $title ) . '</a>';511 echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( get_option( 'date_format' ), $draft ) .'</time></div>';509 echo "<li>\n", 510 '<div class="draft-title"><a href="', esc_url( $url ), '" title="', esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), '">', esc_html( $title ), '</a>', 511 '<time datetime="', get_the_time( 'c', $draft ), '">', get_the_time( get_option( 'date_format' ), $draft ), '</time></div>'; 512 512 if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) { 513 echo '<p>' . $the_content .'</p>';513 echo '<p>', $the_content, '</p>'; 514 514 } 515 515 echo "</li>\n"; 516 516 } … … 655 655 $recent_comments = wp_dashboard_recent_comments(); 656 656 657 657 if ( !$future_posts && !$recent_posts && !$recent_comments ) { 658 echo '<div class="no-activity">' ;659 echo '<p class="smiley"></p>';660 echo '<p>' . __( 'No activity yet!' ) . '</p>';661 echo'</div>';658 echo '<div class="no-activity">', 659 '<p class="smiley"></p>', 660 '<p>', __( 'No activity yet!' ), '</p>', 661 '</div>'; 662 662 } 663 663 664 664 echo '</div>'; … … 704 704 705 705 if ( $posts->have_posts() ) { 706 706 707 echo '<div id="' . $args['id'] . '" class="activity-block">'; 708 709 echo '<h4>' . $args['title'] . '</h4>'; 710 711 echo '<ul>'; 707 echo '<div id="', $args['id'], '" class="activity-block">', 708 '<h4>', $args['title'], '</h4>', 709 '<ul>'; 712 710 713 711 $today = date( 'Y-m-d', current_time( 'timestamp' ) ); 714 712 $tomorrow = date( 'Y-m-d', strtotime( '+1 day', current_time( 'timestamp' ) ) ); … … 778 776 } 779 777 780 778 if ( $comments ) { 781 echo '<div id="latest-comments" class="activity-block">'; 782 echo '<h4>' . __( 'Comments' ) . '</h4>'; 779 echo '<div id="latest-comments" class="activity-block">', 780 '<h4>', __( 'Comments' ), '</h4>', 781 '<div id="the-comment-list" data-wp-lists="list:comment">'; 783 782 784 echo '<div id="the-comment-list" data-wp-lists="list:comment">';785 783 foreach ( $comments as $comment ) 786 784 _wp_dashboard_recent_comments_row( $comment ); 787 785 echo '</div>'; … … 1103 1101 $title = esc_html( $item->get_title() ); 1104 1102 1105 1103 $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . '&TB_iframe=true&width=600&height=800'; 1106 echo "<li class='dashboard-news-plugin'><span>" . __( 'Popular Plugin' ) . ":</span> <a href='$link' class='dashboard-news-plugin-link'>$title</a> <span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span></li>";1104 echo '<li class="dashboard-news-plugin"><span>', __( 'Popular Plugin' ), ':</span> <a href="', $link, '" class="dashboard-news-plugin-link">', $title, '</a> <span>(<a href="', $ilink, '" class="thickbox" title="', $title, '">', __( 'Install' ), '</a>)</span></li>'; 1107 1105 1108 1106 $feed->__destruct(); 1109 1107 unset( $feed ); … … 1323 1321 printf( __( 'Manage <a href="%1$s">widgets</a> or <a href="%2$s">menus</a>' ), 1324 1322 admin_url( 'widgets.php' ), admin_url( 'nav-menus.php' ) ); 1325 1323 } elseif ( current_theme_supports( 'widgets' ) ) { 1326 echo '<a href="' . admin_url( 'widgets.php' ) . '">' . __( 'Manage widgets' ) .'</a>';1324 echo '<a href="', admin_url( 'widgets.php' ), '">', __( 'Manage widgets' ), '</a>'; 1327 1325 } else { 1328 echo '<a href="' . admin_url( 'nav-menus.php' ) . '">' . __( 'Manage menus' ) .'</a>';1326 echo '<a href="', admin_url( 'nav-menus.php' ), '">', __( 'Manage menus' ), '</a>'; 1329 1327 } 1330 1328 ?></div></li> 1331 1329 <?php endif; ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-media-list-table.php
302 302 ?> 303 303 <th scope="row" class="check-column"> 304 304 <?php if ( $user_can_edit ) { ?> 305 <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"><?php echo sprintf( __( 'Select %s' ), $att_title );?></label>305 <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"><?php printf( __( 'Select %s' ), $att_title );?></label> 306 306 <input type="checkbox" name="media[]" id="cb-select-<?php the_ID(); ?>" value="<?php the_ID(); ?>" /> 307 307 <?php } ?> 308 308 </th> … … 454 454 $taxonomy = false; 455 455 456 456 if ( $taxonomy ) { 457 echo '<td ' . $attributes .'>';457 echo '<td ', $attributes, '>'; 458 458 if ( $terms = get_the_terms( $post->ID, $taxonomy ) ) { 459 459 $out = array(); 460 460 foreach ( $terms as $t ) { -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\template.php
391 391 <div class="post_password">' . esc_html( $post->post_password ) . '</div>'; 392 392 393 393 if ( $post_type_object->hierarchical ) 394 echo '<div class="post_parent">' . $post->post_parent .'</div>';394 echo '<div class="post_parent">', $post->post_parent, '</div>'; 395 395 396 396 if ( $post->post_type == 'page' ) 397 echo '<div class="page_template">' . esc_html( get_post_meta( $post->ID, '_wp_page_template', true ) ) .'</div>';397 echo '<div class="page_template">', esc_html( get_post_meta( $post->ID, '_wp_page_template', true ) ), '</div>'; 398 398 399 399 if ( post_type_supports( $post->post_type, 'page-attributes' ) ) 400 echo '<div class="menu_order">' . $post->menu_order .'</div>';400 echo '<div class="menu_order">', $post->menu_order, '</div>'; 401 401 402 402 $taxonomy_names = get_object_taxonomies( $post->post_type ); 403 403 foreach ( $taxonomy_names as $taxonomy_name) { … … 412 412 } 413 413 $term_ids = empty( $terms ) ? array() : wp_list_pluck( $terms, 'term_id' ); 414 414 415 echo '<div class="post_category" id="' . $taxonomy_name . '_' . $post->ID . '">' . implode( ',', $term_ids ) .'</div>';415 echo '<div class="post_category" id="', $taxonomy_name, '_', $post->ID, '">', implode( ',', $term_ids ), '</div>'; 416 416 417 417 } elseif ( $taxonomy->show_ui ) { 418 418 419 echo '<div class="tags_input" id="' .$taxonomy_name.'_'.$post->ID.'">'420 . esc_html( str_replace( ',', ', ', get_terms_to_edit( $post->ID, $taxonomy_name ) ) ) .'</div>';419 echo '<div class="tags_input" id="', $taxonomy_name, '_', $post->ID, '">', 420 esc_html( str_replace( ',', ', ', get_terms_to_edit( $post->ID, $taxonomy_name ) ) ), '</div>'; 421 421 422 422 } 423 423 } 424 424 425 425 if ( !$post_type_object->hierarchical ) 426 echo '<div class="sticky">' . (is_sticky($post->ID) ? 'sticky' : '') .'</div>';426 echo '<div class="sticky">', ( is_sticky( $post->ID ) ? 'sticky' : '' ), '</div>'; 427 427 428 428 if ( post_type_supports( $post->post_type, 'post-formats' ) ) 429 echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) .'</div>';429 echo '<div class="post_format">', esc_html( get_post_format( $post->ID ) ), '</div>'; 430 430 431 431 echo '</div>'; 432 432 } … … 705 705 foreach ( $keys as $key ) { 706 706 if ( is_protected_meta( $key, 'post' ) || ! current_user_can( 'add_post_meta', $post->ID, $key ) ) 707 707 continue; 708 echo "\n <option value='" . esc_attr($key) . "'>" . esc_html($key) . "</option>";708 echo "\n", '<option value="', esc_attr( $key ), '">', esc_html( $key ), '</option>'; 709 709 } 710 710 ?> 711 711 </select> … … 790 790 /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */ 791 791 printf( __( '%1$s %2$s, %3$s @ %4$s : %5$s' ), $month, $day, $year, $hour, $minute ); 792 792 793 echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss .'" />';793 echo '</div><input type="hidden" id="ss" name="ss" value="', $ss, '" />'; 794 794 795 795 if ( $multi ) return; 796 796 … … 805 805 foreach ( $map as $timeunit => $value ) { 806 806 list( $unit, $curr ) = $value; 807 807 808 echo '<input type="hidden" id="hidden_' . $timeunit . '" name="hidden_' . $timeunit . '" value="' . $unit . '" />' ."\n";808 echo '<input type="hidden" id="hidden_', $timeunit, '" name="hidden_', $timeunit, '" value="', $unit, '" />', "\n"; 809 809 $cur_timeunit = 'cur_' . $timeunit; 810 echo '<input type="hidden" id="' . $cur_timeunit . '" name="' . $cur_timeunit . '" value="' . $curr . '" />' ."\n";810 echo '<input type="hidden" id="', $cur_timeunit, '" name="', $cur_timeunit, '" value="', $curr, '" />', "\n"; 811 811 } 812 812 ?> 813 813 … … 830 830 ksort( $templates ); 831 831 foreach ( array_keys( $templates ) as $template ) { 832 832 $selected = selected( $default, $templates[ $template ], false ); 833 echo "\n\t <option value='" . $templates[ $template ] . "' $selected>$template</option>";833 echo "\n\t", '<option value="', $templates[ $template ], '" ', $selected, '>', $template, '</option>'; 834 834 } 835 835 } 836 836 … … 859 859 $pad = str_repeat( ' ', $level * 3 ); 860 860 $selected = selected( $default, $item->ID, false ); 861 861 862 echo "\n\t <option class='level-$level' value='$item->ID' $selected>$pad " . esc_html($item->post_title) . "</option>";862 echo "\n\t",'<option class="level-', $level, '" value="', $item->ID, '" ', $selected, '>', $pad , ' ', esc_html( $item->post_title ), '</option>'; 863 863 parent_dropdown( $default, $item->ID, $level +1 ); 864 864 } 865 865 } else { … … 887 887 else 888 888 $r .= "\n\t<option value='" . esc_attr($role) . "'>$name</option>"; 889 889 } 890 echo $p .$r;890 echo $p, $r; 891 891 } 892 892 893 893 /** … … 1066 1066 continue; 1067 1067 $i++; 1068 1068 $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : ''; 1069 echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' ."\n";1069 echo '<div id="', $box['id'], '" class="postbox ', postbox_classes( $box['id'], $page ), $hidden_class, '" ', '>', "\n"; 1070 1070 if ( 'dashboard_browser_nag' != $box['id'] ) 1071 echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') .'"><br /></div>';1072 echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";1073 echo '<div class="inside">' ."\n";1071 echo '<div class="handlediv" title="', esc_attr__( 'Click to toggle' ), '"><br /></div>'; 1072 echo '<h3 class="hndle"><span>', $box['title'], "</span></h3>\n", 1073 '<div class="inside">', "\n"; 1074 1074 call_user_func($box['callback'], $object, $box); 1075 echo "</div>\n" ;1076 echo"</div>\n";1075 echo "</div>\n", 1076 "</div>\n"; 1077 1077 } 1078 1078 } 1079 1079 } 1080 1080 } 1081 1081 1082 echo "</div>";1082 echo '</div>'; 1083 1083 1084 1084 return $i; 1085 1085 … … 1297 1297 1298 1298 foreach ( (array) $wp_settings_sections[$page] as $section ) { 1299 1299 if ( $section['title'] ) 1300 echo "<h3>{$section['title']}</h3>\n";1300 echo '<h3>', $section['title'], "</h3>\n"; 1301 1301 1302 1302 if ( $section['callback'] ) 1303 1303 call_user_func( $section['callback'], $section ); … … 1337 1337 $class = ' class="' . esc_attr( $field['args']['class'] ) . '"'; 1338 1338 } 1339 1339 1340 echo "<tr{$class}>";1340 echo '<tr', $class, '>'; 1341 1341 1342 1342 if ( ! empty( $field['args']['label_for'] ) ) { 1343 echo '<th scope="row"><label for="' . esc_attr( $field['args']['label_for'] ) . '">' . $field['title'] .'</label></th>';1343 echo '<th scope="row"><label for="', esc_attr( $field['args']['label_for'] ), '">', $field['title'], '</label></th>'; 1344 1344 } else { 1345 echo '<th scope="row">' . $field['title'] .'</th>';1345 echo '<th scope="row">', $field['title'], '</th>'; 1346 1346 } 1347 1347 1348 1348 echo '<td>'; … … 2229 2229 $title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) ); 2230 2230 } 2231 2231 2232 echo '<div class="star-rating" title="' . esc_attr( $title ) . '">';2233 echo '<span class="screen-reader-text">' . $title . '</span>';2234 echo str_repeat( '<div class="star star-full"></div>', $full_stars );2235 echo str_repeat( '<div class="star star-half"></div>', $half_stars );2236 echo str_repeat( '<div class="star star-empty"></div>', $empty_stars);2237 echo'</div>';2232 echo '<div class="star-rating" title="', esc_attr( $title ), '">', 2233 '<span class="screen-reader-text">', $title, '</span>', 2234 str_repeat( '<div class="star star-full"></div>', $full_stars ), 2235 str_repeat( '<div class="star star-half"></div>', $half_stars ), 2236 str_repeat( '<div class="star star-empty"></div>', $empty_stars ), 2237 '</div>'; 2238 2238 } 2239 2239 2240 2240 /** … … 2244 2244 * @since 4.2.0 2245 2245 */ 2246 2246 function _wp_posts_page_notice() { 2247 echo '<div class="notice notice-warning inline"><p>' . __( 'You are currently editing the page that shows your latest posts.' ) .'</p></div>';2247 echo '<div class="notice notice-warning inline"><p>', __( 'You are currently editing the page that shows your latest posts.' ), '</p></div>'; 2248 2248 } -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\image-edit.php
70 70 <p><?php _e('Discard any changes and restore the original image.'); 71 71 72 72 if ( !defined('IMAGE_EDIT_OVERWRITE') || !IMAGE_EDIT_OVERWRITE ) 73 echo ' ' .__('Previously edited copies of the image will not be deleted.');73 echo ' ', __( 'Previously edited copies of the image will not be deleted.' ); 74 74 75 75 ?></p> 76 76 <div class="imgedit-submit"> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-ftp.php
225 225 226 226 function SendMSG($message = "", $crlf=true) { 227 227 if ($this->Verbose) { 228 echo $message .($crlf?CRLF:"");228 echo $message, ( $crlf ? CRLF : '' ); 229 229 flush(); 230 230 } 231 231 return TRUE; -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-plugins-list-table.php
359 359 if ( ! $this->screen->in_admin( 'network' ) && 'recently_activated' == $status ) 360 360 submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false ); 361 361 elseif ( 'top' == $which && 'mustuse' == $status ) 362 echo '<p>' . sprintf( __( 'Files in the <code>%s</code> directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ) .'</p>';362 echo '<p>', sprintf( __( 'Files in the <code>%s</code> directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ), '</p>'; 363 363 elseif ( 'top' == $which && 'dropins' == $status ) 364 echo '<p>' . sprintf( __( 'Drop-ins are advanced plugins in the <code>%s</code> directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ) .'</p>';364 echo '<p>', sprintf( __( 'Drop-ins are advanced plugins in the <code>%s</code> directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ), '</p>'; 365 365 366 366 echo '</div>'; 367 367 } -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\plugin-install.php
246 246 } 247 247 break; 248 248 case 'install_plugins_recommended' : 249 echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) .'</p>';249 echo '<p>', __( 'These suggestions are based on the plugins you and other users have installed.' ), '</p>'; 250 250 break; 251 251 } 252 252 … … 421 421 <?php 422 422 } 423 423 424 echo '<div id="plugin-information-scrollable">' ;425 echo "<div id='{$_tab}-title' class='{$_with_banner}'><div class='vignette'></div><h2>{$api->name}</h2></div>";426 echo "<div id='{$_tab}-tabs' class='{$_with_banner}'>\n";424 echo '<div id="plugin-information-scrollable">', 425 '<div id="', $_tab, '-title" class="', $_with_banner, '"><div class="vignette"></div><h2>', $api->name, '</h2></div>', 426 '<div id="', $_tab, '-tabs" class="', $_with_banner, "\">\n"; 427 427 428 428 foreach ( (array) $api->sections as $section_name => $content ) { 429 429 if ( 'reviews' === $section_name && ( empty( $api->ratings ) || 0 === array_sum( (array) $api->ratings ) ) ) { … … 468 468 if ( $api->active_installs >= 1000000 ) { 469 469 _ex( '1+ Million', 'Active plugin installs' ); 470 470 } else { 471 echo number_format_i18n( $api->active_installs ) .'+';471 echo number_format_i18n( $api->active_installs ), '+'; 472 472 } 473 473 ?></li> 474 474 <?php } if ( ! empty( $api->slug ) && empty( $api->external ) ) { ?> … … 515 515 } 516 516 $contrib_username = sanitize_user( $contrib_username ); 517 517 if ( empty( $contrib_profile ) ) { 518 echo "<li><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&s=36' width='18' height='18' />{$contrib_username}</li>";518 echo '<li><img src="https://wordpress.org/grav-redirect.php?user=', $contrib_username, '&s=36" width="18" height="18" />', $contrib_username, '</li>'; 519 519 } else { 520 echo "<li><a href='{$contrib_profile}' target='_blank'><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&s=36' width='18' height='18' />{$contrib_username}</a></li>";520 echo '<li><a href="', $contrib_profile, '" target="_blank"><img src="https://wordpress.org/grav-redirect.php?user=', $contrib_username, '&s=36" width="18" height="18" />', $contrib_username, '</a></li>'; 521 521 } 522 522 } 523 523 ?> … … 530 530 <div id="section-holder" class="wrap"> 531 531 <?php 532 532 if ( ! empty( $api->tested ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $api->tested ) ), $api->tested, '>' ) ) { 533 echo '<div class="notice notice-warning"><p>' . __('<strong>Warning:</strong> This plugin has <strong>not been tested</strong> with your current version of WordPress.') .'</p></div>';533 echo '<div class="notice notice-warning"><p>', __( '<strong>Warning:</strong> This plugin has <strong>not been tested</strong> with your current version of WordPress.' ), '</p></div>'; 534 534 } elseif ( ! empty( $api->requires ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $api->requires ) ), $api->requires, '<' ) ) { 535 echo '<div class="notice notice-warning"><p>' . __('<strong>Warning:</strong> This plugin has <strong>not been marked as compatible</strong> with your version of WordPress.') .'</p></div>';535 echo '<div class="notice notice-warning"><p>', __( '<strong>Warning:</strong> This plugin has <strong>not been marked as compatible</strong> with your version of WordPress.' ), '</p></div>'; 536 536 } 537 537 538 538 foreach ( (array) $api->sections as $section_name => $content ) { … … 543 543 544 544 $display = ( $section_name === $section ) ? 'block' : 'none'; 545 545 546 echo "\t <div id='section-{$san_section}' class='section' style='display: {$display};'>\n";547 echo $content;548 echo"\t</div>\n";546 echo "\t", '<div id="section-', $san_section, '" class="section" style="display: ', $display, ";\">\n", 547 $content, 548 "\t</div>\n"; 549 549 } 550 echo "</div>\n" ;551 echo "</div>\n";552 echo "</div>\n"; // #plugin-information-scrollable553 echo "<div id='$tab-footer'>\n";550 echo "</div>\n", 551 "</div>\n", 552 "</div>\n", /* #plugin-information-scrollable */ 553 '<div id="', $tab, "-footer\">\n"; 554 554 if ( ! empty( $api->download_link ) && ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) ) { 555 555 $status = install_plugin_install_status( $api ); 556 556 switch ( $status['status'] ) { 557 557 case 'install': 558 558 if ( $status['url'] ) { 559 echo '<a class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __( 'Install Now' ) .'</a>';559 echo '<a class="button button-primary right" href="', $status['url'], '" target="_parent">', __( 'Install Now' ), '</a>'; 560 560 } 561 561 break; 562 562 case 'update_available': 563 563 if ( $status['url'] ) { 564 echo '<a data-slug="' . esc_attr( $api->slug ) . '" id="plugin_update_from_iframe" class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __( 'Install Update Now' ) .'</a>';564 echo '<a data-slug="', esc_attr( $api->slug ), '" id="plugin_update_from_iframe" class="button button-primary right" href="', $status['url'], '" target="_parent">', __( 'Install Update Now' ), '</a>'; 565 565 } 566 566 break; 567 567 case 'newer_installed': 568 echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed'), $status['version'] ) .'</a>';568 echo '<a class="button button-primary right disabled">', sprintf( __( 'Newer Version (%s) Installed'), $status['version'] ), '</a>'; 569 569 break; 570 570 case 'latest_installed': 571 echo '<a class="button button-primary right disabled">' . __( 'Latest Version Installed' ) .'</a>';571 echo '<a class="button button-primary right disabled">', __( 'Latest Version Installed' ), '</a>'; 572 572 break; 573 573 } 574 574 } -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-comments-list-table.php
263 263 ) ); 264 264 265 265 foreach ( $comment_types as $type => $label ) 266 echo "\t" . '<option value="' . esc_attr( $type ) . '"' . selected( $comment_type, $type, false ) . ">$label</option>\n";266 echo "\t", '<option value="', esc_attr( $type ), '"', selected( $comment_type, $type, false ), '>', $label, "</option>\n"; 267 267 ?> 268 268 </select> 269 269 <?php … … 566 566 $post_link = get_the_title( $post->ID ); 567 567 } 568 568 569 echo '<div class="response-links"><span class="post-com-count-wrapper">' ;570 echo $post_link .'<br />';569 echo '<div class="response-links"><span class="post-com-count-wrapper">', 570 $post_link, '<br />'; 571 571 $this->comments_bubble( $post->ID, $pending_comments ); 572 572 echo '</span> '; 573 573 $post_type_object = get_post_type_object( $post->post_type ); 574 echo "<a href='" . get_permalink( $post->ID ) . "'>" . $post_type_object->labels->view_item . '</a>';575 echo'</div>';574 echo '<a href="', get_permalink( $post->ID ), '">', $post_type_object->labels->view_item, '</a>', 575 '</div>'; 576 576 if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) ) 577 577 echo $thumb; 578 578 } -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-links-list-table.php
79 79 'orderby' => 'name', 80 80 ); 81 81 82 echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) .'</label>';82 echo '<label class="screen-reader-text" for="cat_id">', __( 'Filter by category' ), '</label>'; 83 83 wp_dropdown_categories( $dropdown_options ); 84 84 submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); 85 85 ?> … … 140 140 switch ( $column_name ) { 141 141 case 'cb': ?> 142 142 <th scope="row" class="check-column"> 143 <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"><?php echo sprintf( __( 'Select %s' ), $link->link_name ); ?></label>143 <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"><?php printf( __( 'Select %s' ), $link->link_name ); ?></label> 144 144 <input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" /> 145 145 </th> 146 146 <?php 147 147 break; 148 148 149 149 case 'name': 150 echo "<td $attributes><strong><a class='row-title' href='$edit_link' title='" . esc_attr( sprintf( __( 'Edit “%s”' ), $link->link_name ) ) . "'>$link->link_name</a></strong><br />";150 echo '<td ', $attributes, '><strong><a class="row-title" href="', $edit_link, '" title="', esc_attr( sprintf( __( 'Edit “%s”' ), $link->link_name ) ), '">', $link->link_name, "</a></strong><br />"; 151 151 152 152 $actions = array(); 153 153 $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>'; … … 157 157 echo '</td>'; 158 158 break; 159 159 case 'url': 160 echo "<td $attributes><a href='$link->link_url' title='". esc_attr( sprintf( __( 'Visit %s' ), $link->link_name ) )."'>$short_url</a></td>";160 echo '<td ', $attributes, '><a href="', $link->link_url, '" title="', esc_attr( sprintf( __( 'Visit %s' ), $link->link_name ) ), '">', $short_url, "</a></td>"; 161 161 break; 162 162 case 'categories': 163 163 ?><td <?php echo $attributes ?>><?php -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\user.php
431 431 if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) 432 432 return; 433 433 434 echo '<div class="error default-password-nag">' ;435 echo '<p>';436 echo '<strong>' . __('Notice:') .'</strong> ';434 echo '<div class="error default-password-nag">', 435 '<p>', 436 '<strong>', __( 'Notice:' ), '</strong> '; 437 437 _e('You’re using the auto-generated password for your account. Would you like to change it to something easier to remember?'); 438 438 echo '</p><p>'; 439 439 printf( '<a href="%s">' . __('Yes, take me to my profile page') . '</a> | ', get_edit_profile_url() . '#password' ); -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\file.php
1085 1085 $error_string = __('<strong>ERROR:</strong> There was an error connecting to the server, Please verify the settings are correct.'); 1086 1086 if ( is_wp_error($error) ) 1087 1087 $error_string = esc_html( $error->get_error_message() ); 1088 echo '<div id="message" class="error"><p>' . $error_string .'</p></div>';1088 echo '<div id="message" class="error"><p>', $error_string, '</p></div>'; 1089 1089 } 1090 1090 1091 1091 $types = array(); … … 1189 1189 <?php 1190 1190 foreach ( (array) $extra_fields as $field ) { 1191 1191 if ( isset( $_POST[ $field ] ) ) 1192 echo '<input type="hidden" name="' . esc_attr( $field ) . '" value="' . esc_attr( wp_unslash( $_POST[ $field ] ) ) .'" />';1192 echo '<input type="hidden" name="', esc_attr( $field ), '" value="', esc_attr( wp_unslash( $_POST[ $field ] ) ), '" />'; 1193 1193 } 1194 1194 ?> 1195 1195 <p class="request-filesystem-credentials-action-buttons"> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-upgrader-skins.php
62 62 return; 63 63 } 64 64 $this->done_header = true; 65 echo '<div class="wrap">' ;66 echo '<h2>' . $this->options['title'] .'</h2>';65 echo '<div class="wrap">', 66 '<h2>', $this->options['title'], '</h2>'; 67 67 } 68 68 public function footer() { 69 69 if ( $this->done_footer ) { … … 169 169 public function after() { 170 170 $this->plugin = $this->upgrader->plugin_info(); 171 171 if ( !empty($this->plugin) && !is_wp_error($this->result) && $this->plugin_active ){ 172 echo '<iframe style="border:0;overflow:hidden" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin) .'"></iframe>';172 echo '<iframe style="border:0;overflow:hidden" width="100%" height="170px" src="', wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ), '"></iframe>'; 173 173 } 174 174 175 175 $this->decrement_update_count( 'plugin' ); … … 270 270 } 271 271 $this->error = implode(', ', $messages); 272 272 } 273 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) .'\').hide();</script>';273 echo '<script type="text/javascript">jQuery(\'.waiting-', esc_js( $this->upgrader->update_current ), '\').hide();</script>'; 274 274 } 275 275 276 276 public function bulk_header() { … … 284 284 public function before($title = '') { 285 285 $this->in_loop = true; 286 286 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count); 287 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) .'\').css("display", "inline-block");</script>';288 echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) .'"><p>';287 echo '<script type="text/javascript">jQuery(\'.waiting-', esc_js( $this->upgrader->update_current ), '\').css("display", "inline-block");</script>'; 288 echo '<div class="update-messages hide-if-js" id="progress-', esc_attr( $this->upgrader->update_current ), '"><p>'; 289 289 $this->flush_output(); 290 290 } 291 291 … … 293 293 echo '</p></div>'; 294 294 if ( $this->error || ! $this->result ) { 295 295 if ( $this->error ) 296 echo '<div class="error"><p>' . sprintf($this->upgrader->strings['skin_update_failed_error'], $title, $this->error) .'</p></div>';296 echo '<div class="error"><p>', sprintf( $this->upgrader->strings['skin_update_failed_error'], $title, $this->error ), '</p></div>'; 297 297 else 298 echo '<div class="error"><p>' . sprintf($this->upgrader->strings['skin_update_failed'], $title) .'</p></div>';298 echo '<div class="error"><p>', sprintf( $this->upgrader->strings['skin_update_failed'], $title ), '</p></div>'; 299 299 300 echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) .'\').show();</script>';300 echo '<script type="text/javascript">jQuery(\'#progress-', esc_js( $this->upgrader->update_current ), '\').show();</script>'; 301 301 } 302 302 if ( $this->result && ! is_wp_error( $this->result ) ) { 303 303 if ( ! $this->error ) 304 echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') .'</p></div>';305 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) .'\').hide();</script>';304 echo '<div class="updated"><p>', sprintf( $this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js( $this->upgrader->update_current ) . '\').toggle();jQuery(\'span\', this).toggle(); return false;' ), '</p></div>'; 305 echo '<script type="text/javascript">jQuery(\'.waiting-', esc_js( $this->upgrader->update_current ), '\').hide();</script>'; 306 306 } 307 307 308 308 $this->reset(); -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\misc.php
665 665 $icon_colors = array( 'base' => '#999', 'focus' => '#00a0d2', 'current' => '#fff' ); 666 666 } 667 667 668 echo '<script type="text/javascript">var _wpColorScheme = ' . wp_json_encode( array( 'icons' => $icon_colors ) ) .";</script>\n";668 echo '<script type="text/javascript">var _wpColorScheme = ', wp_json_encode( array( 'icons' => $icon_colors ) ), ";</script>\n"; 669 669 } 670 670 add_action( 'admin_head', 'wp_color_scheme_settings' ); 671 671 -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-importer.php
210 210 public function is_user_over_quota() { 211 211 if ( function_exists( 'upload_is_user_over_quota' ) ) { 212 212 if ( upload_is_user_over_quota() ) { 213 echo "Sorry, you have used your upload quota.\n";213 echo __( 'Sorry, you have used your upload quota.' ), "\n"; 214 214 return true; 215 215 } 216 216 } -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\meta-boxes.php
187 187 <div class="misc-pub-section misc-pub-revisions"> 188 188 <?php 189 189 if ( $revisions_to_keep > 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) { 190 echo '<span title="' .esc_attr( sprintf( __( 'Your site is configured to keep only the last %s revisions.' ),191 number_format_i18n( $revisions_to_keep ) ) ) .'">';190 echo '<span title="', esc_attr( sprintf( __( 'Your site is configured to keep only the last %s revisions.' ), 191 number_format_i18n( $revisions_to_keep ) ) ), '">'; 192 192 printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '+</b>' ); 193 193 echo '</span>'; 194 194 } else { … … 319 319 <?php 320 320 if ( current_user_can( 'delete_post', $post->ID ) ) 321 321 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 322 echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Trash' ) . "</a>";322 echo '<a class="submitdelete deletion" href="', get_delete_post_link( $post->ID ), '">', __( 'Trash' ), '</a>'; 323 323 } else { 324 324 $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 325 echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . "</a>";325 echo '<a class="submitdelete deletion"', $delete_ays, ' href="', get_delete_post_link( $post->ID, null, true ), '">', __( 'Delete Permanently' ), '</a>'; 326 326 } 327 327 ?> 328 328 </div> … … 479 479 <div id="<?php echo $tax_name; ?>-all" class="tabs-panel"> 480 480 <?php 481 481 $name = ( $tax_name == 'category' ) ? 'post_category' : 'tax_input[' . $tax_name . ']'; 482 echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.482 echo '<input type="hidden" name="', $name, '[]" value="0" />'; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks. 483 483 ?> 484 484 <ul id="<?php echo $tax_name; ?>checklist" data-wp-lists="list:<?php echo $tax_name; ?>" class="categorychecklist form-no-clear"> 485 485 <?php wp_terms_checklist( $post->ID, array( 'taxonomy' => $tax_name, 'popular_cats' => $popular_ids ) ); ?> … … 634 634 $wp_list_table->display( true ); 635 635 636 636 if ( 1 > $total ) { 637 echo '<p id="no-comments">' . __('No comments yet.') .'</p>';637 echo '<p id="no-comments">', __( 'No comments yet.' ), '</p>'; 638 638 } else { 639 639 $hidden = get_hidden_meta_boxes( get_current_screen() ); 640 640 if ( ! in_array('commentsdiv', $hidden) ) { … … 1083 1083 <td><select name="link_rating" id="link_rating" size="1"> 1084 1084 <?php 1085 1085 for ( $r = 0; $r <= 10; $r++ ) { 1086 echo '<option value="' . $r .'"';1086 echo '<option value="', $r, '"'; 1087 1087 if ( isset($link->link_rating) && $link->link_rating == $r ) 1088 1088 echo ' selected="selected"'; 1089 echo ('>' . $r . '</option>');1089 echo '>', $r, '</option>'; 1090 1090 } 1091 1091 ?></select> <?php _e('(Leave at 0 for no rating.)') ?> 1092 1092 </td> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\theme-install.php
55 55 $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term'; 56 56 $term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : ''; 57 57 if ( ! $type_selector ) 58 echo '<p class="install-help">' . __( 'Search for themes by keyword.' ) .'</p>';58 echo '<p class="install-help">', __( 'Search for themes by keyword.' ), '</p>'; 59 59 ?> 60 60 <form id="search-themes" method="get"> 61 61 <input type="hidden" name="tab" value="search" /> … … 107 107 108 108 foreach ( (array) $feature_list as $feature_name => $features ) { 109 109 $feature_name = esc_html( $feature_name ); 110 echo '<div class="feature-name">' . $feature_name . '</div>'; 110 echo '<div class="feature-name">', $feature_name, '</div>', 111 '<ol class="feature-group">'; 111 112 112 echo '<ol class="feature-group">';113 113 foreach ( $features as $feature => $feature_name ) { 114 114 $feature_name = esc_html( $feature_name ); 115 115 $feature = esc_attr($feature); -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\export.php
166 166 if ( empty( $category->name ) ) 167 167 return; 168 168 169 echo '<wp:cat_name>' . wxr_cdata( $category->name ) .'</wp:cat_name>';169 echo '<wp:cat_name>', wxr_cdata( $category->name ), '</wp:cat_name>'; 170 170 } 171 171 172 172 /** … … 180 180 if ( empty( $category->description ) ) 181 181 return; 182 182 183 echo '<wp:category_description>' . wxr_cdata( $category->description ) .'</wp:category_description>';183 echo '<wp:category_description>', wxr_cdata( $category->description ), '</wp:category_description>'; 184 184 } 185 185 186 186 /** … … 194 194 if ( empty( $tag->name ) ) 195 195 return; 196 196 197 echo '<wp:tag_name>' . wxr_cdata( $tag->name ) .'</wp:tag_name>';197 echo '<wp:tag_name>', wxr_cdata( $tag->name ), '</wp:tag_name>'; 198 198 } 199 199 200 200 /** … … 208 208 if ( empty( $tag->description ) ) 209 209 return; 210 210 211 echo '<wp:tag_description>' . wxr_cdata( $tag->description ) .'</wp:tag_description>';211 echo '<wp:tag_description>', wxr_cdata( $tag->description ), '</wp:tag_description>'; 212 212 } 213 213 214 214 /** … … 222 222 if ( empty( $term->name ) ) 223 223 return; 224 224 225 echo '<wp:term_name>' . wxr_cdata( $term->name ) .'</wp:term_name>';225 echo '<wp:term_name>', wxr_cdata( $term->name ), '</wp:term_name>'; 226 226 } 227 227 228 228 /** … … 236 236 if ( empty( $term->description ) ) 237 237 return; 238 238 239 echo '<wp:term_description>' . wxr_cdata( $term->description ) .'</wp:term_description>';239 echo '<wp:term_description>', wxr_cdata( $term->description ), '</wp:term_description>'; 240 240 } 241 241 242 242 /** … … 264 264 $authors = array_filter( $authors ); 265 265 266 266 foreach ( $authors as $author ) { 267 echo "\t<wp:author>" ;268 echo '<wp:author_id>' . $author->ID . '</wp:author_id>';269 echo '<wp:author_login>' . $author->user_login . '</wp:author_login>';270 echo '<wp:author_email>' . $author->user_email . '</wp:author_email>';271 echo '<wp:author_display_name>' . wxr_cdata( $author->display_name ) . '</wp:author_display_name>';272 echo '<wp:author_first_name>' . wxr_cdata( $author->user_firstname ) . '</wp:author_first_name>';273 echo '<wp:author_last_name>' . wxr_cdata( $author->user_lastname ) . '</wp:author_last_name>';274 echo"</wp:author>\n";267 echo "\t<wp:author>", 268 '<wp:author_id>', $author->ID, '</wp:author_id>', 269 '<wp:author_login>', $author->user_login, '</wp:author_login>', 270 '<wp:author_email>', $author->user_email, '</wp:author_email>', 271 '<wp:author_display_name>', wxr_cdata( $author->display_name ), '</wp:author_display_name>', 272 '<wp:author_first_name>', wxr_cdata( $author->user_firstname ), '</wp:author_first_name>', 273 '<wp:author_last_name>', wxr_cdata( $author->user_lastname ), '</wp:author_last_name>', 274 "</wp:author>\n"; 275 275 } 276 276 } 277 277 … … 286 286 return; 287 287 288 288 foreach ( $nav_menus as $menu ) { 289 echo "\t <wp:term><wp:term_id>{$menu->term_id}</wp:term_id><wp:term_taxonomy>nav_menu</wp:term_taxonomy><wp:term_slug>{$menu->slug}</wp:term_slug>";289 echo "\t", '<wp:term><wp:term_id>', $menu->term_id, '</wp:term_id><wp:term_taxonomy>nav_menu</wp:term_taxonomy><wp:term_slug>', $menu->slug, '</wp:term_slug>'; 290 290 wxr_term_name( $menu ); 291 291 echo "</wp:term>\n"; 292 292 } … … 306 306 $terms = wp_get_object_terms( $post->ID, $taxonomies ); 307 307 308 308 foreach ( (array) $terms as $term ) { 309 echo "\t\t <category domain=\"{$term->taxonomy}\" nicename=\"{$term->slug}\">" . wxr_cdata( $term->name ) ."</category>\n";309 echo "\t\t", '<category domain="', $term->taxonomy, '" nicename="', $term->slug, '">', wxr_cdata( $term->name ), "</category>\n"; 310 310 } 311 311 } 312 312 … … 317 317 } 318 318 add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 ); 319 319 320 echo '<?xml version="1.0" encoding="' . get_bloginfo('charset') ."\" ?>\n";320 echo '<?xml version="1.0" encoding="', get_bloginfo( 'charset' ), "\" ?>\n"; 321 321 322 322 ?> 323 323 <!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. --> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-plugin-install-list-table.php
205 205 } else { 206 206 $message = __( 'No plugins match your request.' ); 207 207 } 208 echo '<div class="no-plugin-results">' . $message .'</div>';208 echo '<div class="no-plugin-results">', $message, '</div>'; 209 209 } 210 210 211 211 protected function get_views() { … … 240 240 foreach ( $views as $class => $view ) { 241 241 $views[ $class ] = "\t<li class='$class'>$view"; 242 242 } 243 echo implode( " </li>\n", $views ) ."</li>\n";243 echo implode( " </li>\n", $views ), "</li>\n"; 244 244 } 245 245 ?> 246 246 </ul> … … 378 378 echo '</div></div>'; 379 379 } 380 380 381 echo '<div class="plugin-group"><h3>' . esc_html( $group_name ) .'</h3>';381 echo '<div class="plugin-group"><h3>', esc_html( $group_name ), '</h3>'; 382 382 // needs an extra wrapping div for nth-child selectors to work 383 383 echo '<div class="plugin-items">'; 384 384 … … 462 462 <div class="action-links"> 463 463 <?php 464 464 if ( $action_links ) { 465 echo '<ul class="plugin-action-buttons"><li>' . implode( '</li><li>', $action_links ) .'</li></ul>';465 echo '<ul class="plugin-action-buttons"><li>', implode( '</li><li>', $action_links ), '</li></ul>'; 466 466 } 467 467 ?> 468 468 </div> … … 494 494 <div class="column-compatibility"> 495 495 <?php 496 496 if ( ! empty( $plugin['tested'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) { 497 echo '<span class="compatibility-untested">' . __( 'Untested with your version of WordPress' ) .'</span>';497 echo '<span class="compatibility-untested">', __( 'Untested with your version of WordPress' ), '</span>'; 498 498 } elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) { 499 echo '<span class="compatibility-incompatible">' . __( '<strong>Incompatible</strong> with your version of WordPress' ) .'</span>';499 echo '<span class="compatibility-incompatible">', __( '<strong>Incompatible</strong> with your version of WordPress' ), '</span>'; 500 500 } else { 501 echo '<span class="compatibility-compatible">' . __( '<strong>Compatible</strong> with your version of WordPress' ) .'</span>';501 echo '<span class="compatibility-compatible">', __( '<strong>Compatible</strong> with your version of WordPress' ), '</span>'; 502 502 } 503 503 ?> 504 504 </div> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\nav-menu.php
637 637 $get_posts = new WP_Query; 638 638 $posts = $get_posts->query( $args ); 639 639 if ( ! $get_posts->post_count ) { 640 echo '<p>' . __( 'No items.' ) .'</p>';640 echo '<p>', __( 'No items.' ), '</p>'; 641 641 return; 642 642 } 643 643 … … 877 877 $terms = get_terms( $taxonomy_name, $args ); 878 878 879 879 if ( ! $terms || is_wp_error($terms) ) { 880 echo '<p>' . __( 'No items.' ) .'</p>';880 echo '<p>', __( 'No items.' ), '</p>'; 881 881 return; 882 882 } 883 883 -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-ms-users-list-table.php
178 178 switch ( $column_name ) { 179 179 case 'cb': ?> 180 180 <th scope="row" class="check-column"> 181 <label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>181 <label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php printf( __( 'Select %s' ), $user->user_login ); ?></label> 182 182 <input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" /> 183 183 </th> 184 184 <?php … … 191 191 echo "<td $attributes>"; ?> 192 192 <?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php 193 193 if ( in_array( $user->user_login, $super_admins ) ) 194 echo ' - ' .__( 'Super Admin' );194 echo ' - ', __( 'Super Admin' ); 195 195 ?></strong> 196 196 <br/> 197 197 <?php … … 233 233 else 234 234 $date = __( 'Y/m/d g:i:s a' ); 235 235 236 echo "<td $attributes>" . mysql2date( $date, $user->user_registered ) . "</td>";236 echo '<td ', $attributes, '>', mysql2date( $date, $user->user_registered ), '</td>'; 237 237 break; 238 238 239 239 case 'blogs': … … 245 245 continue; 246 246 247 247 $path = ( $val->path == '/' ) ? '' : $val->path; 248 echo '<span class="site-' . $val->site_id . '" >';249 echo '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . str_replace( '.' . get_current_site()->domain, '', $val->domain . $path ) . '</a>';250 echo' <small class="row-actions">';248 echo '<span class="site-', $val->site_id, '" >', 249 '<a href="', esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ), '">', str_replace( '.' . get_current_site()->domain, '', $val->domain . $path ), '</a>', 250 ' <small class="row-actions">'; 251 251 $actions = array(); 252 252 $actions['edit'] = '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . __( 'Edit' ) . '</a>'; 253 253 -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\update.php
279 279 280 280 if ( is_network_admin() || !is_multisite() ) { 281 281 $active_class = ( is_plugin_active( $plugin_data['plugin'] ) ) ? ' active' : ''; 282 echo '<tr class="plugin-update-tr' . $active_class . '" id="' . esc_attr( $r->slug . '-update' ) . '" data-slug="' . esc_attr( $r->slug ) . '" data-plugin="' . esc_attr( $file ) . '"><td colspan="' . esc_attr( $wp_list_table->get_column_count() ) .'" class="plugin-update colspanchange"><div class="update-message">';282 echo '<tr class="plugin-update-tr', $active_class, '" id="', esc_attr( $r->slug . '-update' ), '" data-slug="', esc_attr( $r->slug ), '" data-plugin="', esc_attr( $file ), '"><td colspan="', esc_attr( $wp_list_table->get_column_count() ), '" class="plugin-update colspanchange"><div class="update-message">'; 283 283 284 284 if ( ! current_user_can( 'update_plugins' ) ) { 285 285 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); … … 369 369 370 370 $wp_list_table = _get_list_table('WP_MS_Themes_List_Table'); 371 371 372 echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() .'" class="plugin-update colspanchange"><div class="update-message">';372 echo '<tr class="plugin-update-tr"><td colspan="', $wp_list_table->get_column_count(), '" class="plugin-update colspanchange"><div class="update-message">'; 373 373 if ( ! current_user_can('update_themes') ) { 374 374 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version ); 375 375 } elseif ( empty( $r['package'] ) ) { -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-theme-install-list-table.php
359 359 <div class="install-theme-info"><?php 360 360 switch ( $status ) { 361 361 case 'update_available': 362 echo '<a class="theme-install button-primary" href="' . esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ) . '">' . __( 'Update' ) .'</a>';362 echo '<a class="theme-install button-primary" href="', esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ), '" title="', esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ), '">', __( 'Update' ), '</a>'; 363 363 break; 364 364 case 'newer_installed': 365 365 case 'latest_installed': 366 echo '<span class="theme-install" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) .'</span>';366 echo '<span class="theme-install" title="', esc_attr__( 'This theme is already installed and is up to date' ), '">', _x( 'Installed', 'theme' ), '</span>'; 367 367 break; 368 368 case 'install': 369 369 default: 370 echo '<a class="theme-install button-primary" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '">' . __( 'Install' ) .'</a>';370 echo '<a class="theme-install button-primary" href="', esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ), '">', __( 'Install' ), '</a>'; 371 371 break; 372 372 } ?> 373 373 <h3 class="theme-name"><?php echo $name; ?></h3> -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\media.php
92 92 93 93 $href = add_query_arg(array('tab' => $callback, 's' => false, 'paged' => false, 'post_mime_type' => false, 'm' => false)); 94 94 $link = "<a href='" . esc_url($href) . "'$class>$text</a>"; 95 echo "\t <li id='" . esc_attr("tab-$callback") . "'>$link</li>\n";95 echo "\t", '<li id="', esc_attr( "tab-$callback" ), '">', $link, "</li>\n"; 96 96 } 97 97 echo "</ul>\n"; 98 98 } … … 1715 1715 */ 1716 1716 function media_upload_header() { 1717 1717 $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; 1718 echo '<script type="text/javascript">post_id = ' . $post_id .";</script>\n";1718 echo '<script type="text/javascript">post_id = ', $post_id, ";</script>\n"; 1719 1719 if ( empty( $_GET['chromeless'] ) ) { 1720 1720 echo '<div id="media-upload-header">'; 1721 1721 the_media_upload_tabs(); … … 1734 1734 global $type, $tab, $is_IE, $is_opera; 1735 1735 1736 1736 if ( ! _device_can_upload() ) { 1737 echo '<p>' . sprintf( __('The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.'), 'https://apps.wordpress.org/' ) .'</p>';1737 echo '<p>', sprintf( __( 'The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.' ), 'https://apps.wordpress.org/' ), '</p>'; 1738 1738 return; 1739 1739 } 1740 1740 … … 1967 1967 add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2); 1968 1968 echo get_media_items( $id, $errors ); 1969 1969 } else { 1970 echo '<div id="media-upload-error">' .esc_html($id->get_error_message()).'</div></div>';1970 echo '<div id="media-upload-error">', esc_html( $id->get_error_message() ), '</div></div>'; 1971 1971 exit; 1972 1972 } 1973 1973 } … … 2358 2358 * 2359 2359 * @param array $type_links An array of list items containing mime type link HTML. 2360 2360 */ 2361 echo implode( ' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) .'</li>';2361 echo implode( ' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ), '</li>'; 2362 2362 unset($type_links); 2363 2363 ?> 2364 2364 </ul> … … 2403 2403 else 2404 2404 $default = ''; 2405 2405 2406 echo "<option$default value='" . esc_attr( $arc_row->yyear . $arc_row->mmonth ) . "'>";2407 echo esc_html( $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear" );2408 echo"</option>\n";2406 echo '<option', $default, ' value="', esc_attr( $arc_row->yyear . $arc_row->mmonth ), '">', 2407 esc_html( $wp_locale->get_month( $arc_row->mmonth ), " $arc_row->yyear" ), 2408 "</option>\n"; 2409 2409 } 2410 2410 ?> 2411 2411 </select> … … 2624 2624 * @since 3.5.0 2625 2625 */ 2626 2626 function multisite_over_quota_message() { 2627 echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) .'</p>';2627 echo '<p>', sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ), '</p>'; 2628 2628 } 2629 2629 2630 2630 /** … … 2723 2723 2724 2724 <label for="content"><strong><?php _e( 'Description' ); ?></strong><?php 2725 2725 if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) { 2726 echo ': ' .__( 'Displayed on attachment pages.' );2726 echo ': ', __( 'Displayed on attachment pages.' ); 2727 2727 } ?></label> 2728 2728 <?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?> 2729 2729 2730 2730 </div> 2731 2731 <?php 2732 2732 $extras = get_compat_media_markup( $post->ID ); 2733 echo $extras['item'] ;2734 echo '<input type="hidden" id="image-edit-context" value="edit-attachment" />' ."\n";2733 echo $extras['item'], 2734 '<input type="hidden" id="image-edit-context" value="edit-attachment" />', "\n"; 2735 2735 } 2736 2736 2737 2737 /** … … 2767 2767 list( $mime_type ) = explode( '/', $post->post_mime_type ); 2768 2768 if ( $mime_type !== 'image' && ! empty( $meta['mime_type'] ) ) { 2769 2769 if ( $meta['mime_type'] !== "$mime_type/" . strtolower( $matches[1] ) ) { 2770 echo ' (' . $meta['mime_type'] .')';2770 echo ' (', $meta['mime_type'], ')'; 2771 2771 } 2772 2772 } 2773 2773 } else { … … 2818 2818 <?php echo $label ?> <strong><?php 2819 2819 switch ( $key ) { 2820 2820 case 'bitrate' : 2821 echo round( $meta['bitrate'] / 1000 ) .'kb/s';2821 echo round( $meta['bitrate'] / 1000 ), 'kb/s'; 2822 2822 if ( ! empty( $meta['bitrate_mode'] ) ) { 2823 echo ' ' .strtoupper( esc_html( $meta['bitrate_mode'] ) );2823 echo ' ', strtoupper( esc_html( $meta['bitrate_mode'] ) ); 2824 2824 } 2825 2825 break; 2826 2826 default: -
I:\000_WP_SVN\wp-core\src\wp-admin\includes\class-wp-list-table.php
326 326 $input_id = $input_id . '-search-input'; 327 327 328 328 if ( ! empty( $_REQUEST['orderby'] ) ) 329 echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) .'" />';329 echo '<input type="hidden" name="orderby" value="', esc_attr( $_REQUEST['orderby'] ), '" />'; 330 330 if ( ! empty( $_REQUEST['order'] ) ) 331 echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) .'" />';331 echo '<input type="hidden" name="order" value="', esc_attr( $_REQUEST['order'] ), '" />'; 332 332 if ( ! empty( $_REQUEST['post_mime_type'] ) ) 333 echo '<input type="hidden" name="post_mime_type" value="' . esc_attr( $_REQUEST['post_mime_type'] ) .'" />';333 echo '<input type="hidden" name="post_mime_type" value="', esc_attr( $_REQUEST['post_mime_type'] ), '" />'; 334 334 if ( ! empty( $_REQUEST['detached'] ) ) 335 echo '<input type="hidden" name="detached" value="' . esc_attr( $_REQUEST['detached'] ) .'" />';335 echo '<input type="hidden" name="detached" value="', esc_attr( $_REQUEST['detached'] ), '" />'; 336 336 ?> 337 337 <p class="search-box"> 338 338 <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label> … … 378 378 if ( empty( $views ) ) 379 379 return; 380 380 381 echo "<ul class='subsubsub'>\n";381 echo '<ul class="subsubsub">', "\n"; 382 382 foreach ( $views as $class => $view ) { 383 383 $views[ $class ] = "\t<li class='$class'>$view"; 384 384 } 385 echo implode( " |</li>\n", $views ) . "</li>\n";386 echo "</ul>";385 echo implode( " |</li>\n", $views ), "</li>\n", 386 '</ul>'; 387 387 } 388 388 389 389 /** … … 433 433 if ( empty( $this->_actions ) ) 434 434 return; 435 435 436 echo "<label for='bulk-action-selector-" . esc_attr( $which ) . "' class='screen-reader-text'>" . __( 'Select bulk action' ) . "</label>";437 echo "<select name='action$two' id='bulk-action-selector-" . esc_attr( $which ) . "'>\n";438 echo "<option value='-1' selected='selected'>" . __( 'Bulk Actions' ) ."</option>\n";436 echo '<label for="bulk-action-selector-', esc_attr( $which ), '" class="screen-reader-text">', __( 'Select bulk action' ), '</label>', 437 '<select name="action', $two, '" id="bulk-action-selector-', esc_attr( $which ), "\">\n", 438 '<option value="-1" selected="selected">', __( 'Bulk Actions' ), "</option>\n"; 439 439 440 440 foreach ( $this->_actions as $name => $title ) { 441 441 $class = 'edit' == $name ? ' class="hide-if-no-js"' : ''; 442 442 443 echo "\t <option value='$name'$class>$title</option>\n";443 echo "\t", '<option value="', $name, '"', $class, '>', $title, "</option>\n"; 444 444 } 445 445 446 446 echo "</select>\n"; … … 612 612 if ( $pending_comments ) 613 613 echo '<strong>'; 614 614 615 echo "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>" . number_format_i18n( get_comments_number() ) ."</span></a>";615 echo '<a href="', esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ), '" title="', esc_attr( $pending_phrase ), '" class="post-com-count"><span class="comment-count">', number_format_i18n( get_comments_number() ), "</span></a>"; 616 616 617 617 if ( $pending_comments ) 618 618 echo '</strong>'; … … 1015 1015 if ( $this->has_items() ) { 1016 1016 $this->display_rows(); 1017 1017 } else { 1018 echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() .'">';1018 echo '<tr class="no-items"><td class="colspanchange" colspan="', $this->get_column_count(), '">'; 1019 1019 $this->no_items(); 1020 1020 echo '</td></tr>'; 1021 1021 } … … 1076 1076 echo '</th>'; 1077 1077 } 1078 1078 elseif ( method_exists( $this, 'column_' . $column_name ) ) { 1079 echo "<td $attributes>";1080 echo call_user_func( array( $this, 'column_' . $column_name ), $item );1081 echo "</td>";1079 echo '<td ', $attributes, '>', 1080 call_user_func( array( $this, 'column_' . $column_name ), $item ), 1081 '</td>'; 1082 1082 } 1083 1083 else { 1084 echo "<td $attributes>";1085 echo $this->column_default( $item, $column_name );1086 echo "</td>";1084 echo '<td ', $attributes, '>', 1085 $this->column_default( $item, $column_name ), 1086 '</td>'; 1087 1087 } 1088 1088 } 1089 1089 } -
I:\000_WP_SVN\wp-core\src\wp-admin\maint\repair.php
27 27 <?php 28 28 29 29 if ( ! defined( 'WP_ALLOW_REPAIR' ) ) { 30 echo '<p>' . __( 'To allow use of this page to automatically repair database problems, please add the following line to your <code>wp-config.php</code> file. Once this line is added to your config, reload this page.' ) . "</p><p><code>define('WP_ALLOW_REPAIR', true);</code></p>";30 echo '<p>', __( 'To allow use of this page to automatically repair database problems, please add the following line to your <code>wp-config.php</code> file. Once this line is added to your config, reload this page.' ), '</p><p><code>define( \'WP_ALLOW_REPAIR\', true);</code></p>'; 31 31 } elseif ( isset( $_GET['repair'] ) ) { 32 32 $optimize = 2 == $_GET['repair']; 33 33 $okay = true; … … 70 70 printf( __( 'Successfully repaired the %s table.' ), "<code>$table</code>" ); 71 71 } else { 72 72 /* translators: 1: table name, 2: error message, */ 73 echo sprintf( __( 'Failed to repair the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ) .'<br />';73 echo sprintf( __( 'Failed to repair the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ), '<br />'; 74 74 $problems[$table] = $check->Msg_text; 75 75 $okay = false; 76 76 } … … 104 104 $problem_output = ''; 105 105 foreach ( $problems as $table => $problem ) 106 106 $problem_output .= "$table: $problem\n"; 107 echo '<p><textarea name="errors" id="errors" rows="20" cols="60">' . esc_textarea( $problem_output ) .'</textarea></p>';107 echo '<p><textarea name="errors" id="errors" rows="20" cols="60">', esc_textarea( $problem_output ), '</textarea></p>'; 108 108 } else { 109 echo '<p>' . __( 'Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.' ) . "</p><p><code>define('WP_ALLOW_REPAIR', true);</code></p>";109 echo '<p>', __( 'Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.' ), '</p><p><code>define( \'WP_ALLOW_REPAIR\', true );</code></p>'; 110 110 } 111 111 } else { 112 112 if ( isset( $_GET['referrer'] ) && 'is_blog_installed' == $_GET['referrer'] ) 113 echo '<p>' . __( 'One or more database tables are unavailable. To allow WordPress to attempt to repair these tables, press the “Repair Database” button. Repairing can take a while, so please be patient.' ) .'</p>';113 echo '<p>', __( 'One or more database tables are unavailable. To allow WordPress to attempt to repair these tables, press the “Repair Database” button. Repairing can take a while, so please be patient.' ), '</p>'; 114 114 else 115 echo '<p>' . __( 'WordPress can automatically look for some common database problems and repair them. Repairing can take a while, so please be patient.' ) .'</p>';115 echo '<p>', __( 'WordPress can automatically look for some common database problems and repair them. Repairing can take a while, so please be patient.' ), '</p>'; 116 116 ?> 117 117 <p class="step"><a class="button button-large" href="repair.php?repair=1"><?php _e( 'Repair Database' ); ?></a></p> 118 118 <p><?php _e( 'WordPress can also attempt to optimize the database. This improves performance in some situations. Repairing and optimizing the database can take a long time and the database will be locked while optimizing.' ); ?></p> -
I:\000_WP_SVN\wp-core\src\wp-admin\network\site-info.php
110 110 ); 111 111 foreach ( $tabs as $tab_id => $tab ) { 112 112 $class = ( $tab['url'] == $pagenow ) ? ' nav-tab-active' : ''; 113 echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) .'</a>';113 echo '<a href="', $tab['url'], '?id=', $id, '" class="nav-tab', $class, '">', esc_html( $tab['label'] ), '</a>'; 114 114 } 115 115 ?> 116 116 </h3> 117 117 <?php 118 118 if ( ! empty( $messages ) ) { 119 119 foreach ( $messages as $msg ) 120 echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg .'</p></div>';120 echo '<div id="message" class="updated notice is-dismissible"><p>', $msg, '</p></div>'; 121 121 } ?> 122 122 <form method="post" action="site-info.php?action=update-site"> 123 123 <?php wp_nonce_field( 'edit-site' ); ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\network\user-new.php
73 73 <?php 74 74 if ( ! empty( $messages ) ) { 75 75 foreach ( $messages as $msg ) 76 echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg .'</p></div>';76 echo '<div id="message" class="updated notice is-dismissible"><p>', $msg, '</p></div>'; 77 77 } 78 78 79 79 if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\network\site-themes.php
150 150 ); 151 151 foreach ( $tabs as $tab_id => $tab ) { 152 152 $class = ( $tab['url'] == $pagenow ) ? ' nav-tab-active' : ''; 153 echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) .'</a>';153 echo '<a href="', $tab['url'], '?id=', $id, '" class="nav-tab', $class, '">', esc_html( $tab['label'] ), '</a>'; 154 154 } 155 155 ?> 156 156 </h3><?php … … 162 162 } else { 163 163 $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); 164 164 } 165 echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) .'</p></div>';165 echo '<div id="message" class="updated notice is-dismissible"><p>', sprintf( $message, number_format_i18n( $enabled ) ), '</p></div>'; 166 166 } elseif ( isset( $_GET['disabled'] ) ) { 167 167 $disabled = absint( $_GET['disabled'] ); 168 168 if ( 1 == $disabled ) { … … 170 170 } else { 171 171 $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); 172 172 } 173 echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) .'</p></div>';173 echo '<div id="message" class="updated notice is-dismissible"><p>', sprintf( $message, number_format_i18n( $disabled ) ), '</p></div>'; 174 174 } elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) { 175 echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'No theme selected.' ) .'</p></div>';175 echo '<div id="message" class="error notice is-dismissible"><p>', __( 'No theme selected.' ), '</p></div>'; 176 176 } ?> 177 177 178 178 <p><?php _e( 'Network enabled themes are not shown on this screen.' ) ?></p> -
I:\000_WP_SVN\wp-core\src\wp-admin\network\site-new.php
134 134 <?php 135 135 if ( ! empty( $messages ) ) { 136 136 foreach ( $messages as $msg ) 137 echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg .'</p></div>';137 echo '<div id="message" class="updated notice is-dismissible"><p>', $msg, '</p></div>'; 138 138 } ?> 139 139 <form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate"> 140 140 <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?> … … 145 145 <?php if ( is_subdomain_install() ) { ?> 146 146 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span> 147 147 <?php } else { 148 echo $current_site->domain . $current_site->path?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" />148 echo $current_site->domain, $current_site->path; ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" /> 149 149 <?php } 150 echo '<p id="site-address-desc">' . __( 'Only lowercase letters (a-z) and numbers are allowed.' ) .'</p>';150 echo '<p id="site-address-desc">', __( 'Only lowercase letters (a-z) and numbers are allowed.' ), '</p>'; 151 151 ?> 152 152 </td> 153 153 </tr> -
I:\000_WP_SVN\wp-core\src\wp-admin\network\themes.php
85 85 86 86 require_once(ABSPATH . 'wp-admin/admin-header.php'); 87 87 88 echo '<div class="wrap">' ;89 echo '<h2>' . esc_html( $title ) .'</h2>';88 echo '<div class="wrap">', 89 '<h2>', esc_html( $title ), '</h2>'; 90 90 91 91 $url = self_admin_url('update.php?action=update-selected-themes&themes=' . urlencode( join(',', $themes) )); 92 92 $url = wp_nonce_url($url, 'bulk-update-themes'); 93 93 94 echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";95 echo'</div>';94 echo '<iframe src="', $url, '" style="width: 100%; height:100%; min-height:850px;"></iframe>', 95 '</div>'; 96 96 require_once(ABSPATH . 'wp-admin/admin-footer.php'); 97 97 exit; 98 98 case 'delete-selected': … … 176 176 <input type="hidden" name="action" value="delete-selected" /> 177 177 <?php 178 178 foreach ( (array) $themes as $theme ) { 179 echo '<input type="hidden" name="checked[]" value="' . esc_attr($theme) .'" />';179 echo '<input type="hidden" name="checked[]" value="', esc_attr( $theme ), '" />'; 180 180 } 181 181 182 182 wp_nonce_field( 'bulk-themes' ); … … 200 200 <ul class="code"> 201 201 <?php 202 202 foreach ( (array) $files_to_delete as $file ) { 203 echo '<li>' . esc_html( str_replace( WP_CONTENT_DIR . '/themes', '', $file ) ) .'</li>';203 echo '<li>', esc_html( str_replace( WP_CONTENT_DIR . '/themes', '', $file ) ), '</li>'; 204 204 } 205 205 ?> 206 206 </ul> … … 274 274 } else { 275 275 $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); 276 276 } 277 echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) .'</p></div>';277 echo '<div id="message" class="updated notice is-dismissible"><p>', sprintf( $message, number_format_i18n( $enabled ) ), '</p></div>'; 278 278 } elseif ( isset( $_GET['disabled'] ) ) { 279 279 $disabled = absint( $_GET['disabled'] ); 280 280 if ( 1 == $disabled ) { … … 282 282 } else { 283 283 $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); 284 284 } 285 echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) .'</p></div>';285 echo '<div id="message" class="updated notice is-dismissible"><p>', sprintf( $message, number_format_i18n( $disabled ) ), '</p></div>'; 286 286 } elseif ( isset( $_GET['deleted'] ) ) { 287 287 $deleted = absint( $_GET['deleted'] ); 288 288 if ( 1 == $deleted ) { … … 290 290 } else { 291 291 $message = _n( '%s theme deleted.', '%s themes deleted.', $deleted ); 292 292 } 293 echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $deleted ) ) .'</p></div>';293 echo '<div id="message" class="updated notice is-dismissible"><p>', sprintf( $message, number_format_i18n( $deleted ) ), '</p></div>'; 294 294 } elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) { 295 echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'No theme selected.' ) .'</p></div>';295 echo '<div id="message" class="error notice is-dismissible"><p>', __( 'No theme selected.' ), '</p></div>'; 296 296 } elseif ( isset( $_GET['error'] ) && 'main' == $_GET['error'] ) { 297 echo '<div class="error notice is-dismissible"><p>' . __( 'You cannot delete a theme while it is active on the main site.' ) .'</p></div>';297 echo '<div class="error notice is-dismissible"><p>', __( 'You cannot delete a theme while it is active on the main site.' ), '</p></div>'; 298 298 } 299 299 300 300 ?> … … 307 307 $wp_list_table->views(); 308 308 309 309 if ( 'broken' == $status ) 310 echo '<p class="clear">' . __('The following themes are installed but incomplete. Themes must have a stylesheet and a template.') .'</p>';310 echo '<p class="clear">', __( 'The following themes are installed but incomplete. Themes must have a stylesheet and a template.' ), '</p>'; 311 311 ?> 312 312 313 313 <form method="post"> -
I:\000_WP_SVN\wp-core\src\wp-admin\network\site-settings.php
98 98 ); 99 99 foreach ( $tabs as $tab_id => $tab ) { 100 100 $class = ( $tab['url'] == $pagenow ) ? ' nav-tab-active' : ''; 101 echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) .'</a>';101 echo '<a href="', $tab['url'], '?id=', $id, '" class="nav-tab', $class, '">', esc_html( $tab['label'] ), '</a>'; 102 102 } 103 103 ?> 104 104 </h3> 105 105 <?php 106 106 if ( ! empty( $messages ) ) { 107 107 foreach ( $messages as $msg ) 108 echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg .'</p></div>';108 echo '<div id="message" class="updated notice is-dismissible"><p>', $msg, '</p></div>'; 109 109 } ?> 110 110 <form method="post" action="site-settings.php?action=update-site"> 111 111 <?php wp_nonce_field( 'edit-site' ); ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\network\upgrade.php
39 39 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 40 40 41 41 echo '<div class="wrap">'; 42 echo '<h2>' . __( 'Upgrade Network' ) .'</h2>';42 echo '<h2>', __( 'Upgrade Network' ), '</h2>'; 43 43 44 44 $action = isset($_GET['action']) ? $_GET['action'] : 'show'; 45 45 … … 54 54 55 55 $blogs = $wpdb->get_results( "SELECT blog_id FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' AND spam = '0' AND deleted = '0' AND archived = '0' ORDER BY registered DESC LIMIT {$n}, 5", ARRAY_A ); 56 56 if ( empty( $blogs ) ) { 57 echo '<p>' . __( 'All done!' ) .'</p>';57 echo '<p>', __( 'All done!' ), '</p>'; 58 58 break; 59 59 } 60 60 echo "<ul>"; -
I:\000_WP_SVN\wp-core\src\wp-admin\network\settings.php
158 158 <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog') ?> /> <?php _e( 'Logged in users may register new sites.' ); ?></label><br /> 159 159 <label><input name="registration" type="radio" id="registration4" value="all"<?php checked( $reg, 'all') ?> /> <?php _e( 'Both sites and user accounts can be registered.' ); ?></label> 160 160 <?php if ( is_subdomain_install() ) { 161 echo '<p class="description">' . __( 'If registration is disabled, please set <code>NOBLOGREDIRECT</code> in <code>wp-config.php</code> to a URL you will redirect visitors to if they visit a non-existent site.' ) .'</p>';161 echo '<p class="description">', __( 'If registration is disabled, please set <code>NOBLOGREDIRECT</code> in <code>wp-config.php</code> to a URL you will redirect visitors to if they visit a non-existent site.' ), '</p>'; 162 162 } ?> 163 163 </fieldset> 164 164 </td> … … 379 379 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); 380 380 $fieldset_end = ''; 381 381 if ( count( (array) $menu_items ) > 1 ) { 382 echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) .'</legend>';382 echo '<fieldset><legend class="screen-reader-text">', __( 'Enable menus' ), '</legend>'; 383 383 $fieldset_end = '</fieldset>'; 384 384 } 385 385 foreach ( (array) $menu_items as $key => $val ) { 386 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[$key] ) ? checked( $menu_perms[$key], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>";386 echo '<label><input type="checkbox" name="menu_items[', $key, ']" value="1"', ( isset( $menu_perms[$key] ) ? checked( $menu_perms[$key], '1', false ) : '' ), ' /> ', esc_html( $val ), '</label><br/>'; 387 387 } 388 388 echo $fieldset_end; 389 389 ?> -
I:\000_WP_SVN\wp-core\src\wp-admin\network\site-users.php
193 193 ); 194 194 foreach ( $tabs as $tab_id => $tab ) { 195 195 $class = ( $tab['url'] == $pagenow ) ? ' nav-tab-active' : ''; 196 echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) .'</a>';196 echo '<a href="', $tab['url'], '?id=', $id, '" class="nav-tab', $class, '">', esc_html( $tab['label'] ), '</a>'; 197 197 } 198 198 ?> 199 199 </h3><?php 200 200 201 201 if ( isset($_GET['update']) ) : 202 202 switch($_GET['update']) { 203 case 'adduser':204 echo '<div id="message" class="updated notice is-dismissible"><p>' . __( 'User added.' ) .'</p></div>';205 break;206 case 'err_add_member':207 echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'User is already a member of this site.' ) .'</p></div>';208 break;209 case 'err_add_notfound':210 echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Enter the username of an existing user.' ) .'</p></div>';211 break;212 case 'promote':213 echo '<div id="message" class="updated notice is-dismissible"><p>' . __( 'Changed roles.' ) .'</p></div>';214 break;215 case 'err_promote':216 echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Select a user to change role.' ) .'</p></div>';217 break;218 case 'remove':219 echo '<div id="message" class="updated notice is-dismissible"><p>' . __( 'User removed from this site.' ) .'</p></div>';220 break;221 case 'err_remove':222 echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Select a user to remove.' ) .'</p></div>';223 break;224 case 'newuser':225 echo '<div id="message" class="updated notice is-dismissible"><p>' . __( 'User created.' ) .'</p></div>';226 break;227 case 'err_new':228 echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Enter the username and email.' ) .'</p></div>';229 break;230 case 'err_new_dup':231 echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Duplicated username or email address.' ) .'</p></div>';232 break;203 case 'adduser': 204 echo '<div id="message" class="updated notice is-dismissible"><p>', __( 'User added.' ), '</p></div>'; 205 break; 206 case 'err_add_member': 207 echo '<div id="message" class="error notice is-dismissible"><p>', __( 'User is already a member of this site.' ), '</p></div>'; 208 break; 209 case 'err_add_notfound': 210 echo '<div id="message" class="error notice is-dismissible"><p>', __( 'Enter the username of an existing user.' ), '</p></div>'; 211 break; 212 case 'promote': 213 echo '<div id="message" class="updated notice is-dismissible"><p>', __( 'Changed roles.' ), '</p></div>'; 214 break; 215 case 'err_promote': 216 echo '<div id="message" class="error notice is-dismissible"><p>', __( 'Select a user to change role.' ), '</p></div>'; 217 break; 218 case 'remove': 219 echo '<div id="message" class="updated notice is-dismissible"><p>', __( 'User removed from this site.' ), '</p></div>'; 220 break; 221 case 'err_remove': 222 echo '<div id="message" class="error notice is-dismissible"><p>', __( 'Select a user to remove.' ), '</p></div>'; 223 break; 224 case 'newuser': 225 echo '<div id="message" class="updated notice is-dismissible"><p>', __( 'User created.' ), '</p></div>'; 226 break; 227 case 'err_new': 228 echo '<div id="message" class="error notice is-dismissible"><p>', __( 'Enter the username and email.' ), '</p></div>'; 229 break; 230 case 'err_new_dup': 231 echo '<div id="message" class="error notice is-dismissible"><p>', __( 'Duplicated username or email address.' ), '</p></div>'; 232 break; 233 233 } 234 234 endif; ?> 235 235 -
I:\000_WP_SVN\wp-core\src\wp-content\themes\twentyeleven\functions.php
581 581 } 582 582 583 583 if ( $class ) 584 echo 'class="' . esc_attr( $class ) .'"';584 echo 'class="', esc_attr( $class ), '"'; 585 585 } 586 586 587 587 if ( ! function_exists( 'twentyeleven_comment' ) ) : -
I:\000_WP_SVN\wp-core\src\wp-content\themes\twentyfourteen\inc\template-tags.php
106 106 */ 107 107 function twentyfourteen_posted_on() { 108 108 if ( is_sticky() && is_home() && ! is_paged() ) { 109 echo '<span class="featured-post">' . __( 'Sticky', 'twentyfourteen' ) .'</span>';109 echo '<span class="featured-post">', __( 'Sticky', 'twentyfourteen' ), '</span>'; 110 110 } 111 111 112 112 // Set up and print post meta information. -
I:\000_WP_SVN\wp-core\src\wp-content\themes\twentyten\category.php
18 18 <?php 19 19 $category_description = category_description(); 20 20 if ( ! empty( $category_description ) ) 21 echo '<div class="archive-meta">' . $category_description .'</div>';21 echo '<div class="archive-meta">', $category_description, '</div>'; 22 22 23 23 /* 24 24 * Run the loop for the category page to output the posts. -
I:\000_WP_SVN\wp-core\src\wp-content\themes\twentythirteen\functions.php
319 319 */ 320 320 function twentythirteen_entry_meta() { 321 321 if ( is_sticky() && is_home() && ! is_paged() ) 322 echo '<span class="featured-post">' . esc_html__( 'Sticky', 'twentythirteen' ) .'</span>';322 echo '<span class="featured-post">', esc_html__( 'Sticky', 'twentythirteen' ), '</span>'; 323 323 324 324 if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) 325 325 twentythirteen_entry_date(); … … 327 327 // Translators: used between list items, there is a space after the comma. 328 328 $categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) ); 329 329 if ( $categories_list ) { 330 echo '<span class="categories-links">' . $categories_list .'</span>';330 echo '<span class="categories-links">', $categories_list, '</span>'; 331 331 } 332 332 333 333 // Translators: used between list items, there is a space after the comma. 334 334 $tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) ); 335 335 if ( $tag_list ) { 336 echo '<span class="tags-links">' . $tag_list .'</span>';336 echo '<span class="tags-links">', $tag_list, '</span>'; 337 337 } 338 338 339 339 // Post author -
I:\000_WP_SVN\wp-core\src\wp-content\themes\twentythirteen\inc\custom-header.php
160 160 box-sizing: border-box; 161 161 <?php 162 162 if ( ! empty( $header_image ) ) { 163 echo 'background: url(' . esc_url( $header_image ) .') no-repeat scroll top; background-size: 1600px auto;';163 echo 'background: url(', esc_url( $header_image ), ') no-repeat scroll top; background-size: 1600px auto;'; 164 164 } ?> 165 165 padding: 0 20px; 166 166 } -
I:\000_WP_SVN\wp-core\src\wp-includes\class-wp-ajax-response.php
133 133 */ 134 134 public function send() { 135 135 header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) ); 136 echo "<?xml version='1.0' encoding='" . get_option( 'blog_charset' ) . "' standalone='yes'?><wp_ajax>";136 echo '<?xml version="1.0" encoding="', get_option( 'blog_charset' ), '" standalone="yes" ?', '><wp_ajax>'; 137 137 foreach ( (array) $this->responses as $response ) 138 138 echo $response; 139 139 echo '</wp_ajax>'; -
I:\000_WP_SVN\wp-core\src\wp-includes\class-IXR.php
704 704 705 705 // Now send the request 706 706 if ($this->debug) { 707 echo '<pre class="ixr_request">' .htmlspecialchars($request)."\n</pre>\n\n";707 echo '<pre class="ixr_request">', htmlspecialchars( $request ), "\n</pre>\n\n"; 708 708 } 709 709 710 710 if ($this->timeout) { … … 743 743 } 744 744 } 745 745 if ($this->debug) { 746 echo '<pre class="ixr_response">' .htmlspecialchars($debugContents)."\n</pre>\n\n";746 echo '<pre class="ixr_response">', htmlspecialchars( $debugContents ), "\n</pre>\n\n"; 747 747 } 748 748 749 749 // Now parse what we've got back -
I:\000_WP_SVN\wp-core\src\wp-includes\deprecated.php
1060 1060 // Handle each category. 1061 1061 1062 1062 // Display the category name 1063 echo ' <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) ."</h2>\n\t<ul>\n";1063 echo ' <li id="linkcat-', $cat->term_id, '" class="linkcat"><h2>', apply_filters('link_category', $cat->name ), "</h2>\n\t<ul>\n"; 1064 1064 // Call get_links() with all the appropriate params 1065 1065 get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false); 1066 1066 -
I:\000_WP_SVN\wp-core\src\wp-includes\default-widgets.php
56 56 if ( ! empty( $out ) ) { 57 57 echo $args['before_widget']; 58 58 if ( $title ) { 59 echo $args['before_title'] . $title .$args['after_title'];59 echo $args['before_title'], $title, $args['after_title']; 60 60 } 61 61 ?> 62 62 <ul> … … 183 183 <option value=""><?php _ex('All Links', 'links widget'); ?></option> 184 184 <?php 185 185 foreach ( $link_cats as $link_cat ) { 186 echo '<option value="' . intval( $link_cat->term_id ) . '"'187 . selected( $instance['category'], $link_cat->term_id, false )188 . '>' . $link_cat->name ."</option>\n";186 echo '<option value="', intval( $link_cat->term_id ), '"', 187 selected( $instance['category'], $link_cat->term_id, false ), 188 '>', $link_cat->name, "</option>\n"; 189 189 } 190 190 ?> 191 191 </select> … … 234 234 235 235 echo $args['before_widget']; 236 236 if ( $title ) { 237 echo $args['before_title'] . $title .$args['after_title'];237 echo $args['before_title'], $title, $args['after_title']; 238 238 } 239 239 240 240 // Use current theme search form if it exists … … 281 281 282 282 echo $args['before_widget']; 283 283 if ( $title ) { 284 echo $args['before_title'] . $title .$args['after_title'];284 echo $args['before_title'], $title, $args['after_title']; 285 285 } 286 286 287 287 if ( $d ) { … … 401 401 402 402 echo $args['before_widget']; 403 403 if ( $title ) { 404 echo $args['before_title'] . $title .$args['after_title'];404 echo $args['before_title'], $title, $args['after_title']; 405 405 } 406 406 ?> 407 407 <ul> … … 465 465 466 466 echo $args['before_widget']; 467 467 if ( $title ) { 468 echo $args['before_title'] . $title .$args['after_title'];468 echo $args['before_title'], $title, $args['after_title']; 469 469 } 470 470 echo '<div id="calendar_wrap">'; 471 471 get_calendar(); … … 519 519 $text = apply_filters( 'widget_text', empty( $instance['text'] ) ? '' : $instance['text'], $instance ); 520 520 echo $args['before_widget']; 521 521 if ( ! empty( $title ) ) { 522 echo $args['before_title'] . $title .$args['after_title'];522 echo $args['before_title'], $title, $args['after_title']; 523 523 } ?> 524 524 <div class="textwidget"><?php echo !empty( $instance['filter'] ) ? wpautop( $text ) : $text; ?></div> 525 525 <?php … … 575 575 576 576 echo $args['before_widget']; 577 577 if ( $title ) { 578 echo $args['before_title'] . $title .$args['after_title'];578 echo $args['before_title'], $title, $args['after_title']; 579 579 } 580 580 581 581 $cat_args = array( … … 590 590 $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}"; 591 591 $first_dropdown = false; 592 592 593 echo '<label class="screen-reader-text" for="' . esc_attr( $dropdown_id ) . '">' . $title .'</label>';593 echo '<label class="screen-reader-text" for="', esc_attr( $dropdown_id ), '">', $title, '</label>'; 594 594 595 595 $cat_args['show_option_none'] = __( 'Select Category' ); 596 596 $cat_args['id'] = $dropdown_id; … … 746 746 ?> 747 747 <?php echo $args['before_widget']; ?> 748 748 <?php if ( $title ) { 749 echo $args['before_title'] . $title .$args['after_title'];749 echo $args['before_title'], $title, $args['after_title']; 750 750 } ?> 751 751 <ul> 752 752 <?php while ( $r->have_posts() ) : $r->the_post(); ?> … … 1009 1009 1010 1010 echo $args['before_widget']; 1011 1011 if ( $title ) { 1012 echo $args['before_title'] . $title .$args['after_title'];1012 echo $args['before_title'], $title, $args['after_title']; 1013 1013 } 1014 1014 wp_widget_rss_output( $rss, $instance ); 1015 1015 echo $args['after_widget']; … … 1054 1054 1055 1055 if ( is_wp_error($rss) ) { 1056 1056 if ( is_admin() || current_user_can('manage_options') ) 1057 echo '<p>' . sprintf( __('<strong>RSS Error</strong>: %s'), $rss->get_error_message() ) .'</p>';1057 echo '<p>', sprintf( __( '<strong>RSS Error</strong>: %s' ), $rss->get_error_message() ), '</p>'; 1058 1058 return; 1059 1059 } 1060 1060 … … 1069 1069 $show_date = (int) $args['show_date']; 1070 1070 1071 1071 if ( !$rss->get_item_quantity() ) { 1072 echo '<ul><li>' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) .'</li></ul>';1072 echo '<ul><li>', __( 'An error has occurred, which probably means the feed is down. Try again later.' ), '</li></ul>'; 1073 1073 $rss->__destruct(); 1074 1074 unset($rss); 1075 1075 return; … … 1164 1164 $args['show_date'] = isset( $args['show_date'] ) ? (int) $args['show_date'] : (int) $inputs['show_date']; 1165 1165 1166 1166 if ( ! empty( $args['error'] ) ) { 1167 echo '<p class="widget-error"><strong>' . sprintf( __( 'RSS Error: %s' ), $args['error'] ) .'</strong></p>';1167 echo '<p class="widget-error"><strong>', sprintf( __( 'RSS Error: %s' ), $args['error'] ), '</strong></p>'; 1168 1168 } 1169 1169 1170 1170 if ( $inputs['url'] ) : … … 1179 1179 <select id="rss-items-<?php echo $args['number']; ?>" name="widget-rss[<?php echo $args['number']; ?>][items]"> 1180 1180 <?php 1181 1181 for ( $i = 1; $i <= 20; ++$i ) { 1182 echo "<option value='$i' " . selected( $args['items'], $i, false ) . ">$i</option>";1182 echo '<option value="', $i, '" ', selected( $args['items'], $i, false ), '>', $i, '</option>'; 1183 1183 } 1184 1184 ?> 1185 1185 </select></p> … … 1279 1279 1280 1280 echo $args['before_widget']; 1281 1281 if ( $title ) { 1282 echo $args['before_title'] . $title .$args['after_title'];1282 echo $args['before_title'], $title, $args['after_title']; 1283 1283 } 1284 1284 echo '<div class="tagcloud">'; 1285 1285 … … 1358 1358 echo $args['before_widget']; 1359 1359 1360 1360 if ( !empty($instance['title']) ) 1361 echo $args['before_title'] . $instance['title'] .$args['after_title'];1361 echo $args['before_title'], $instance['title'], $args['after_title']; 1362 1362 1363 1363 $nav_menu_args = array( 1364 1364 'fallback_cb' => '', … … 1404 1404 1405 1405 // If no menus exists, direct the user to go and create some. 1406 1406 if ( !$menus ) { 1407 echo '<p>' . sprintf( __('No menus have been created yet. <a href="%s">Create some</a>.'), admin_url('nav-menus.php') ) .'</p>';1407 echo '<p>', sprintf( __( 'No menus have been created yet. <a href="%s">Create some</a>.' ), admin_url( 'nav-menus.php' ) ), '</p>'; 1408 1408 return; 1409 1409 } 1410 1410 ?> … … 1418 1418 <option value="0"><?php _e( '— Select —' ) ?></option> 1419 1419 <?php 1420 1420 foreach ( $menus as $menu ) { 1421 echo '<option value="' . $menu->term_id . '"'1422 . selected( $nav_menu, $menu->term_id, false )1423 . '>'. esc_html( $menu->name ) .'</option>';1421 echo '<option value="', $menu->term_id, '"', 1422 selected( $nav_menu, $menu->term_id, false ), 1423 '>', esc_html( $menu->name ), '</option>'; 1424 1424 } 1425 1425 ?> 1426 1426 </select> -
I:\000_WP_SVN\wp-core\src\wp-includes\wp-db.php
1293 1293 $str = htmlspecialchars( $str, ENT_QUOTES ); 1294 1294 $query = htmlspecialchars( $this->last_query, ENT_QUOTES ); 1295 1295 1296 print "<div id='error'>1297 <p class= 'wpdberror'><strong>WordPress database error:</strong> [$str]<br />1298 <code> $query</code></p>1299 </div> ";1296 echo '<div id="error"> 1297 <p class="wpdberror"><strong>', __( 'WordPress database error:' ), '</strong> [', $str, ']<br /> 1298 <code>', $query. '</code></p> 1299 </div>'; 1300 1300 } 1301 1301 } 1302 1302 -
I:\000_WP_SVN\wp-core\src\wp-includes\feed-rdf.php
8 8 header('Content-Type: ' . feed_content_type('rdf') . '; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 echo '<?xml version="1.0" encoding="' .get_option('blog_charset').'"?'.'>';11 echo '<?xml version="1.0" encoding="', get_option( 'blog_charset' ), '"?', '>'; 12 12 13 13 /** This action is documented in wp-includes/feed-rss2.php */ 14 14 do_action( 'rss_tag_pre', 'rdf' ); -
I:\000_WP_SVN\wp-core\src\wp-includes\taxonomy.php
4447 4447 4448 4448 $r = wp_parse_args( $args, $defaults ); 4449 4449 4450 echo $r['before'] . join( $r['sep'], get_the_taxonomies( $r['post'], $r ) ) .$r['after'];4450 echo $r['before'], join( $r['sep'], get_the_taxonomies( $r['post'], $r ) ), $r['after']; 4451 4451 } 4452 4452 4453 4453 /** -
I:\000_WP_SVN\wp-core\src\wp-includes\feed-rss2-comments.php
7 7 8 8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); 9 9 10 echo '<?xml version="1.0" encoding="' .get_option('blog_charset').'"?'.'>';10 echo '<?xml version="1.0" encoding="', get_option( 'blog_charset' ), '"?', '>'; 11 11 12 12 /** This action is documented in wp-includes/feed-rss2.php */ 13 13 do_action( 'rss_tag_pre', 'rss2-comments' ); -
I:\000_WP_SVN\wp-core\src\wp-includes\script-loader.php
897 897 $concat = 'load%5B%5D=' . implode( '&load%5B%5D=', $concat ); 898 898 899 899 $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&" . $concat . '&ver=' . $wp_scripts->default_version; 900 echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n";900 echo '<script type="text/javascript" src="', esc_attr( $src ), "\"></script>\n"; 901 901 } 902 902 903 903 if ( !empty($wp_scripts->print_html) ) … … 1044 1044 $dir = $wp_styles->text_direction; 1045 1045 $ver = $wp_styles->default_version; 1046 1046 $href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}&load=" . trim($wp_styles->concat, ', ') . '&ver=' . $ver; 1047 echo "<link rel='stylesheet' href='" . esc_attr($href) . "' type='text/css' media='all' />\n";1047 echo '<link rel="stylesheet" href="', esc_attr( $href ), '" type="text/css" media="all" />', "\n"; 1048 1048 1049 1049 if ( !empty($wp_styles->print_code) ) { 1050 echo "<style type='text/css'>\n"; 1051 echo $wp_styles->print_code; 1052 echo "\n</style>\n"; 1050 echo '<style type="text/css">', "\n", $wp_styles->print_code, "\n</style>\n"; 1053 1051 } 1054 1052 } 1055 1053 -
I:\000_WP_SVN\wp-core\src\wp-includes\ms-deprecated.php
215 215 reset( $most_active ); 216 216 foreach ( (array) $most_active as $key => $details ) { 217 217 $url = esc_url('http://' . $details['domain'] . $details['path']); 218 echo '<li>' . $details['postcount'] . " <a href='$url'>$url</a></li>";218 echo '<li>', $details['postcount'], ' <a href="', $url, '">', $url, '</a></li>'; 219 219 } 220 220 } 221 221 } -
I:\000_WP_SVN\wp-core\src\wp-includes\class-wp-editor.php
188 188 $wrap_class .= ' has-dfw'; 189 189 } 190 190 191 echo '<div id="wp-' . $editor_id . '-wrap" class="' . $wrap_class .'">';191 echo '<div id="wp-', $editor_id, '-wrap" class="', $wrap_class, '">'; 192 192 193 193 if ( self::$editor_buttons_css ) { 194 194 wp_print_styles('editor-buttons'); … … 196 196 } 197 197 198 198 if ( !empty($set['editor_css']) ) 199 echo $set['editor_css'] ."\n";199 echo $set['editor_css'], "\n"; 200 200 201 201 if ( !empty($buttons) || $set['media_buttons'] ) { 202 echo '<div id="wp-' . $editor_id .'-editor-tools" class="wp-editor-tools hide-if-no-js">';202 echo '<div id="wp-', $editor_id, '-editor-tools" class="wp-editor-tools hide-if-no-js">'; 203 203 204 204 if ( $set['media_buttons'] ) { 205 205 self::$has_medialib = true; … … 207 207 if ( !function_exists('media_buttons') ) 208 208 include(ABSPATH . 'wp-admin/includes/media.php'); 209 209 210 echo '<div id="wp-' . $editor_id .'-media-buttons" class="wp-media-buttons">';210 echo '<div id="wp-', $editor_id, '-media-buttons" class="wp-media-buttons">'; 211 211 212 212 /** 213 213 * Fires after the default media button(s) are displayed. … … 220 220 echo "</div>\n"; 221 221 } 222 222 223 echo '<div class="wp-editor-tabs">' . $buttons ."</div>\n";223 echo '<div class="wp-editor-tabs">', $buttons, "</div>\n"; 224 224 echo "</div>\n"; 225 225 } 226 226 … … 1135 1135 1136 1136 if ( $tmce_on ) { 1137 1137 if ( $compressed ) { 1138 echo "<script type='text/javascript' src='{$baseurl}/wp-tinymce.php?c=1&$version'></script>\n";1138 echo '<script type="text/javascript" src="', $baseurl, '/wp-tinymce.php?c=1&', $version, '"></script>', "\n"; 1139 1139 } else { 1140 echo "<script type='text/javascript' src='{$baseurl}/tinymce{$mce_suffix}.js?$version'></script>\n";1141 echo "<script type='text/javascript' src='{$baseurl}/plugins/compat3x/plugin{$suffix}.js?$version'></script>\n";1140 echo '<script type="text/javascript" src="', $baseurl, '/tinymce', $mce_suffix, '.js?', $version, '"></script>', "\n"; 1141 echo '<script type="text/javascript" src="', $baseurl, '/plugins/compat3x/plugin', $suffix, '.js?', $version, '"></script>', "\n"; 1142 1142 } 1143 1143 1144 echo "<script type='text/javascript'>\n" . self::wp_mce_translation() ."</script>\n";1144 echo "<script type='text/javascript'>\n", self::wp_mce_translation(), "</script>\n"; 1145 1145 1146 1146 if ( self::$ext_plugins ) { 1147 1147 // Load the old-format English strings to prevent unsightly labels in old style popups 1148 echo "<script type='text/javascript' src='{$baseurl}/langs/wp-langs-en.js?$version'></script>\n";1148 echo '<script type="text/javascript" src="', $baseurl, '/langs/wp-langs-en.js?', $version, '"></script>', "\n"; 1149 1149 } 1150 1150 } 1151 1151 … … 1164 1164 <?php 1165 1165 1166 1166 if ( self::$ext_plugins ) 1167 echo self::$ext_plugins ."\n";1167 echo self::$ext_plugins, "\n"; 1168 1168 1169 1169 if ( ! is_admin() ) 1170 echo 'var ajaxurl = "' . admin_url( 'admin-ajax.php', 'relative' ) .'";';1170 echo 'var ajaxurl = "', admin_url( 'admin-ajax.php', 'relative' ), '";'; 1171 1171 1172 1172 ?> 1173 1173 -
I:\000_WP_SVN\wp-core\src\wp-includes\class-wp-http-ixr-client.php
69 69 70 70 // Now send the request 71 71 if ( $this->debug ) 72 echo '<pre class="ixr_request">' . htmlspecialchars($xml) ."\n</pre>\n\n";72 echo '<pre class="ixr_request">', htmlspecialchars( $xml ), "\n</pre>\n\n"; 73 73 74 74 $response = wp_remote_post($url, $args); 75 75 … … 86 86 } 87 87 88 88 if ( $this->debug ) 89 echo '<pre class="ixr_response">' . htmlspecialchars( wp_remote_retrieve_body( $response ) ) ."\n</pre>\n\n";89 echo '<pre class="ixr_response">', htmlspecialchars( wp_remote_retrieve_body( $response ) ), "\n</pre>\n\n"; 90 90 91 91 // Now parse what we've got back 92 92 $this->message = new IXR_Message( wp_remote_retrieve_body( $response ) ); -
I:\000_WP_SVN\wp-core\src\wp-includes\comment-template.php
1022 1022 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"> 1023 1023 <rdf:Description rdf:about="'; 1024 1024 the_permalink(); 1025 echo '"'."\n"; 1026 echo ' dc:identifier="'; 1027 the_permalink(); 1028 echo '"'."\n"; 1029 echo ' dc:title="'.str_replace('--', '--', wptexturize(strip_tags(get_the_title()))).'"'."\n"; 1030 echo ' trackback:ping="'.get_trackback_url().'"'." />\n"; 1031 echo '</rdf:RDF>'; 1025 echo '"', "\n", 1026 ' dc:identifier="', get_the_permalink(), '"', "\n", 1027 ' dc:title="', str_replace( '--', '--', wptexturize( strip_tags( get_the_title() ) ) ), '"', "\n", 1028 ' trackback:ping="', get_trackback_url(), '"', " />\n", 1029 '</rdf:RDF>'; 1032 1030 } 1033 1031 1034 1032 /** … … 1305 1303 } 1306 1304 1307 1305 if ( 0 == $number && !comments_open() && !pings_open() ) { 1308 echo '<span' . ((!empty($css_class)) ? ' class="' . esc_attr( $css_class ) . '"' : '') . '>' . $none . '</span>'; 1306 if ( ! empty( $css_class ) ) { 1307 echo '<span class="', esc_attr( $css_class ), '">', $none, '</span>'; 1308 } else { 1309 echo '<span>', $none, '</span>'; 1310 } 1309 1311 return; 1310 1312 } 1311 1313 … … 1320 1322 $home = home_url(); 1321 1323 else 1322 1324 $home = get_option('siteurl'); 1323 echo $home . '/' . $wpcommentspopupfile . '?comments_popup=' .$id;1325 echo $home, '/', $wpcommentspopupfile, '?comments_popup=', $id; 1324 1326 echo '" onclick="wpopen(this.href); return false"'; 1325 1327 } else { // if comments_popup_script() is not in the template, display simple comment link 1326 1328 if ( 0 == $number ) 1327 echo get_permalink() .'#respond';1329 echo get_permalink(), '#respond'; 1328 1330 else 1329 1331 comments_link(); 1330 1332 echo '"'; 1331 1333 } 1332 1334 1333 1335 if ( !empty( $css_class ) ) { 1334 echo ' class="' .$css_class.'" ';1336 echo ' class="', $css_class, '" '; 1335 1337 } 1336 1338 1337 1339 $attributes = ''; … … 2337 2339 * 2338 2340 * @param string $field The HTML-formatted output of the comment form field. 2339 2341 */ 2340 echo apply_filters( "comment_form_field_{$name}", $field ) ."\n";2342 echo apply_filters( "comment_form_field_{$name}", $field ), "\n"; 2341 2343 } 2342 2344 /** 2343 2345 * Fires after the comment fields in the comment form. -
I:\000_WP_SVN\wp-core\src\wp-includes\feed-atom-comments.php
6 6 */ 7 7 8 8 header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true); 9 echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '" ?' .'>';9 echo '<?xml version="1.0" encoding="', get_option( 'blog_charset' ), '" ?', '>'; 10 10 11 11 /** This action is documented in wp-includes/feed-rss2.php */ 12 12 do_action( 'rss_tag_pre', 'atom-comments' ); -
I:\000_WP_SVN\wp-core\src\wp-includes\widgets.php
136 136 * @return string Default return is 'noform'. 137 137 */ 138 138 public function form($instance) { 139 echo '<p class="no-options-widget">' . __('There are no options for this widget.') .'</p>';139 echo '<p class="no-options-widget">', __( 'There are no options for this widget.' ), '</p>'; 140 140 return 'noform'; 141 141 } 142 142 -
I:\000_WP_SVN\wp-core\src\wp-includes\cache.php
641 641 * @since 2.0.0 642 642 */ 643 643 public function stats() { 644 echo "<p>";645 echo "<strong>Cache Hits:</strong> {$this->cache_hits}<br />";646 echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";647 echo "</p>";648 echo'<ul>';644 echo '<p>', 645 '<strong>Cache Hits:</strong> ', $this->cache_hits, '<br />', 646 '<strong>Cache Misses:</strong> ', $this->cache_misses, '<br />', 647 '</p>', 648 '<ul>'; 649 649 foreach ($this->cache as $group => $cache) { 650 echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) .'k )</li>';650 echo '<li><strong>Group:</strong> ', $group, ' - ( ', number_format( strlen( serialize( $cache ) ) / 1024, 2 ), 'k )</li>'; 651 651 } 652 652 echo '</ul>'; 653 653 } -
I:\000_WP_SVN\wp-core\src\wp-includes\class-wp-customize-panel.php
319 319 <div class="accordion-section-title" tabindex="0"> 320 320 <span class="preview-notice"><?php 321 321 /* translators: %s is the site/panel title in the Customizer */ 322 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' );322 printf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' ); 323 323 ?></span> 324 324 </div> 325 325 <?php if ( ! empty( $this->description ) ) : ?> -
I:\000_WP_SVN\wp-core\src\wp-includes\atomlib.php
97 97 98 98 function _p($msg) { 99 99 if($this->debug) { 100 print str_repeat(" ", $this->depth * $this->indent) . $msg ."\n";100 echo str_repeat( ' ', $this->depth * $this->indent ), $msg, "\n"; 101 101 } 102 102 } 103 103 -
I:\000_WP_SVN\wp-core\src\wp-includes\feed-rss2.php
8 8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 echo '<?xml version="1.0" encoding="' .get_option('blog_charset').'"?'.'>';11 echo '<?xml version="1.0" encoding="', get_option( 'blog_charset' ), '"?', '>'; 12 12 13 13 /** 14 14 * Fires between the xml and rss tags in a feed. -
I:\000_WP_SVN\wp-core\src\wp-includes\feed-rss.php
8 8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 echo '<?xml version="1.0" encoding="' .get_option('blog_charset').'"?'.'>'; ?>11 echo '<?xml version="1.0" encoding="', get_option( 'blog_charset' ), '"?', '>'; ?> 12 12 <rss version="0.92"> 13 13 <channel> 14 14 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> -
I:\000_WP_SVN\wp-core\src\wp-includes\class-phpmailer.php
623 623 break; 624 624 case 'html': 625 625 //Cleans up output a bit for a better looking display that's HTML-safe 626 echo htmlentities( preg_replace('/[\r\n]+/', '', $str), ENT_QUOTES, $this->CharSet) ."<br>\n";626 echo htmlentities( preg_replace( '/[\r\n]+/', '', $str ), ENT_QUOTES, $this->CharSet ), "<br>\n"; 627 627 break; 628 628 case 'echo': 629 629 default: -
I:\000_WP_SVN\wp-core\src\wp-includes\locale.php
189 189 } 190 190 191 191 function rtl_src_admin_notice() { 192 echo '<div class="error"><p>' . 'The <code>build</code> directory of the develop repository must be used for RTL.' .'</p></div>';192 echo '<div class="error"><p>', __( 'The <code>build</code> directory of the develop repository must be used for RTL.' ), '</p></div>'; 193 193 } 194 194 195 195 /** -
I:\000_WP_SVN\wp-core\src\wp-includes\general-template.php
746 746 return; 747 747 } 748 748 749 echo '<title>' . wp_title( '|', false, 'right' ) ."</title>\n";749 echo '<title>', wp_title( '|', false, 'right' ), "</title>\n"; 750 750 } 751 751 752 752 /** … … 936 936 */ 937 937 $title = apply_filters( 'single_post_title', $_post->post_title, $_post ); 938 938 if ( $display ) 939 echo $prefix .$title;939 echo $prefix, $title; 940 940 else 941 941 return $prefix . $title; 942 942 } … … 974 974 $title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, $post_type ); 975 975 976 976 if ( $display ) 977 echo $prefix .$title;977 echo $prefix, $title; 978 978 else 979 979 return $prefix . $title; 980 980 } … … 1079 1079 return; 1080 1080 1081 1081 if ( $display ) 1082 echo $prefix .$term_name;1082 echo $prefix, $term_name; 1083 1083 else 1084 1084 return $prefix . $term_name; 1085 1085 } … … 1141 1141 $title = get_the_archive_title(); 1142 1142 1143 1143 if ( ! empty( $title ) ) { 1144 echo $before . $title .$after;1144 echo $before, $title, $after; 1145 1145 } 1146 1146 } 1147 1147 … … 1218 1218 function the_archive_description( $before = '', $after = '' ) { 1219 1219 $description = get_the_archive_description(); 1220 1220 if ( $description ) { 1221 echo $before . $description .$after;1221 echo $before, $description, $after; 1222 1222 } 1223 1223 } 1224 1224 … … 2242 2242 2243 2243 $args = wp_parse_args( $args, $defaults ); 2244 2244 2245 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['feedtitle'], get_bloginfo('name'), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link() ) ."\" />\n";2246 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['comstitle'], get_bloginfo('name'), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link( 'comments_' . get_default_feed() ) ) ."\" />\n";2245 echo '<link rel="alternate" type="', feed_content_type(), '" title="', esc_attr( sprintf( $args['feedtitle'], get_bloginfo( 'name' ), $args['separator'] ) ), '" href="', esc_url( get_feed_link() ), "\" />\n"; 2246 echo '<link rel="alternate" type="', feed_content_type(), '" title="', esc_attr( sprintf( $args['comstitle'], get_bloginfo( 'name' ), $args['separator'] ) ), '" href="', esc_url( get_feed_link( 'comments_' . get_default_feed() ) ), "\" />\n"; 2247 2247 } 2248 2248 2249 2249 /** … … 2319 2319 } 2320 2320 2321 2321 if ( isset($title) && isset($href) ) 2322 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( $title ) . '" href="' . esc_url( $href ) . '" />' ."\n";2322 echo '<link rel="alternate" type="', feed_content_type(), '" title="', esc_attr( $title ), '" href="', esc_url( $href ), '" />', "\n"; 2323 2323 } 2324 2324 2325 2325 /** … … 2329 2329 * @since 2.0.0 2330 2330 */ 2331 2331 function rsd_link() { 2332 echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') ."/xmlrpc.php?rsd\" />\n";2332 echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="', get_bloginfo( 'wpurl' ), "/xmlrpc.php?rsd\" />\n"; 2333 2333 } 2334 2334 2335 2335 /** … … 2984 2984 * @param string $type The type of generator to output. Accepts 'html', 2985 2985 * 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'. 2986 2986 */ 2987 echo apply_filters( 'the_generator', get_the_generator($type), $type ) ."\n";2987 echo apply_filters( 'the_generator', get_the_generator($type), $type ), "\n"; 2988 2988 } 2989 2989 2990 2990 /** -
I:\000_WP_SVN\wp-core\src\wp-includes\class-wp-customize-control.php
387 387 */ 388 388 public function input_attrs() { 389 389 foreach( $this->input_attrs as $attr => $value ) { 390 echo $attr . '="' . esc_attr( $value ) .'" ';390 echo $attr, '="', esc_attr( $value ), '" '; 391 391 } 392 392 } 393 393 … … 454 454 <select <?php $this->link(); ?>> 455 455 <?php 456 456 foreach ( $this->choices as $value => $label ) 457 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label .'</option>';457 echo '<option value="', esc_attr( $value ), '"', selected( $this->value(), $value, false ), '>', $label, '</option>'; 458 458 ?> 459 459 </select> 460 460 </label> -
I:\000_WP_SVN\wp-core\src\wp-includes\post-template.php
390 390 */ 391 391 function post_class( $class = '', $post_id = null ) { 392 392 // Separates classes with a single space, collates classes for post DIV 393 echo 'class="' . join( ' ', get_post_class( $class, $post_id ) ) .'"';393 echo 'class="', join( ' ', get_post_class( $class, $post_id ) ), '"'; 394 394 } 395 395 396 396 /** … … 513 513 */ 514 514 function body_class( $class = '' ) { 515 515 // Separates classes with a single space, collates classes for body element 516 echo 'class="' . join( ' ', get_body_class( $class ) ) .'"';516 echo 'class="', join( ' ', get_body_class( $class ) ), '"'; 517 517 } 518 518 519 519 /** … … 1823 1823 $rows .= "\t<li>" . wp_post_revision_title_expanded( $revision ) . "</li>\n"; 1824 1824 } 1825 1825 1826 echo "<div class='hide-if-js'><p>" . __( 'JavaScript must be enabled to use this feature.' ) ."</p></div>\n";1826 echo '<div class="hide-if-js"><p>', __( 'JavaScript must be enabled to use this feature.' ), "</p></div>\n"; 1827 1827 1828 echo "<ul class='post-revisions hide-if-no-js'>\n";1829 echo $rows;1830 echo "</ul>";1828 echo '<ul class="post-revisions hide-if-no-js">', "\n", 1829 $rows, 1830 '</ul>'; 1831 1831 } -
I:\000_WP_SVN\wp-core\src\wp-includes\theme.php
635 635 $stylesheet = get_locale_stylesheet_uri(); 636 636 if ( empty($stylesheet) ) 637 637 return; 638 echo '<link rel="stylesheet" href="' . $stylesheet .'" type="text/css" media="screen" />';638 echo '<link rel="stylesheet" href="', $stylesheet, '" type="text/css" media="screen" />'; 639 639 } 640 640 641 641 /** -
I:\000_WP_SVN\wp-core\src\wp-includes\link-template.php
74 74 switch ( strtolower( $mode ) ) { 75 75 case 'title': 76 76 $title = sanitize_title( $post->post_title ) . '-' . $post->ID; 77 echo '<a id="' .$title.'"></a>';77 echo '<a id="', $title, '"></a>'; 78 78 break; 79 79 case 'id': 80 80 default: 81 echo '<a id="post-' . $post->ID .'"></a>';81 echo '<a id="post-', $post->ID, '"></a>'; 82 82 break; 83 83 } 84 84 } … … 880 880 * 881 881 * @param string $link The anchor tag for the edit link. 882 882 */ 883 echo $before . apply_filters( 'edit_tag_link', $link ) .$after;883 echo $before, apply_filters( 'edit_tag_link', $link ), $after; 884 884 } 885 885 886 886 /** … … 1231 1231 * @param int $post_id Post ID. 1232 1232 * @param string $text Anchor text. 1233 1233 */ 1234 echo $before . apply_filters( 'edit_post_link', $link, $post->ID, $text ) .$after;1234 echo $before, apply_filters( 'edit_post_link', $link, $post->ID, $text ), $after; 1235 1235 } 1236 1236 1237 1237 /** … … 1333 1333 * @param int $comment_id Comment ID. 1334 1334 * @param string $text Anchor text. 1335 1335 */ 1336 echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ) .$after;1336 echo $before, apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ), $after; 1337 1337 } 1338 1338 1339 1339 /** … … 1392 1392 * @param string $link Anchor tag for the edit link. 1393 1393 * @param int $link_id Bookmark ID. 1394 1394 */ 1395 echo $before . apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ) .$after;1395 echo $before, apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ), $after; 1396 1396 } 1397 1397 1398 1398 /** … … 3318 3318 if ( empty( $shortlink ) ) 3319 3319 return; 3320 3320 3321 echo "<link rel='shortlink' href='" . esc_url( $shortlink ) . "'/>\n";3321 echo '<link rel="shortlink" href="', esc_url( $shortlink ), "\" />\n"; 3322 3322 } 3323 3323 3324 3324 /** -
I:\000_WP_SVN\wp-core\src\wp-includes\feed-atom.php
8 8 header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 echo '<?xml version="1.0" encoding="' .get_option('blog_charset').'"?'.'>';11 echo '<?xml version="1.0" encoding="', get_option( 'blog_charset' ), '"?', '>'; 12 12 13 13 /** This action is documented in wp-includes/feed-rss2.php */ 14 14 do_action( 'rss_tag_pre', 'atom' );