WordPress.org

Make WordPress Core

Ticket #24389: 24389.2.diff

File 24389.2.diff, 15.7 KB (added by nacin, 2 years ago)
  • wp-includes/class-wp-customize-control.php

     
    593593         */ 
    594594        public function tab_upload_new() { 
    595595                if ( ! _device_can_upload() ) { 
    596                         ?> 
    597                         <p><?php _e('The web browser on your device cannot be used to upload files. You may be able to use the <a href="http://wordpress.org/extend/mobile/">native app for your device</a> instead.'); ?></p> 
    598                         <?php 
     596                        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.'), 'http://wordpress.org/mobile/' ) . '</p>'; 
    599597                } else { 
    600598                        ?> 
    601599                        <div class="upload-dropzone"> 
  • wp-includes/pluggable-deprecated.php

     
    177177 * 
    178178 * @since 2.2.0 
    179179 * @deprecated 3.5.0 
    180  * @link http://wordpress.org/extend/plugins/atom-publishing-protocol/ 
     180 * @link http://wordpress.org/plugins/atom-publishing-protocol/ 
    181181 */ 
    182182if ( ! class_exists( 'wp_atom_server' ) ) { 
    183183        class wp_atom_server { 
  • wp-includes/media-template.php

     
    4848                        <h3 class="upload-message">{{ data.message }}</h3> 
    4949                <# } #> 
    5050                <?php if ( ! _device_can_upload() ) : ?> 
    51                         <h3 class="upload-instructions"><?php _e('The web browser on your device cannot be used to upload files. You may be able to use the <a href="http://wordpress.org/extend/mobile/">native app for your device</a> instead.'); ?></h3> 
     51                        <h3 class="upload-instructions"><?php printf( __('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.'), 'http://wordpress.org/mobile/' ); ?></h3> 
    5252                <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?> 
    5353                        <h3 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h3> 
    5454                        <?php do_action( 'upload_ui_over_quota' ); ?> 
  • wp-admin/includes/plugin-install.php

     
    8181 
    8282function install_dashboard() { 
    8383        ?> 
    84         <p><?php printf( __( 'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="http://wordpress.org/extend/plugins/">WordPress Plugin Directory</a> or upload a plugin in .zip format via <a href="%s">this page</a>.' ), self_admin_url( 'plugin-install.php?tab=upload' ) ); ?></p> 
     84        <p><?php printf( __( 'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="%s/">WordPress Plugin Directory</a> or upload a plugin in .zip format via <a href="%s">this page</a>.' ), 'http://wordpress.org/plugins/', self_admin_url( 'plugin-install.php?tab=upload' ) ); ?></p> 
    8585 
    8686        <h4><?php _e('Search') ?></h4> 
    8787        <?php install_search_form( false ); ?> 
     
    358358<?php endif; if ( ! empty($api->downloaded) ) : ?> 
    359359                        <li><strong><?php _e('Downloaded:') ?></strong> <?php printf(_n('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded)) ?></li> 
    360360<?php endif; if ( ! empty($api->slug) && empty($api->external) ) : ?> 
    361                         <li><a target="_blank" href="http://wordpress.org/extend/plugins/<?php echo $api->slug ?>/"><?php _e('WordPress.org Plugin Page &#187;') ?></a></li> 
     361                        <li><a target="_blank" href="http://wordpress.org/plugins/<?php echo $api->slug ?>/"><?php _e('WordPress.org Plugin Page &#187;') ?></a></li> 
    362362<?php endif; if ( ! empty($api->homepage) ) : ?> 
    363363                        <li><a target="_blank" href="<?php echo $api->homepage ?>"><?php _e('Plugin Homepage &#187;') ?></a></li> 
    364364<?php endif; ?> 
     
    386386                        else 
    387387                                $title = ucwords( str_replace( '_', ' ', $section_name ) ); 
    388388 
    389                         $content = links_add_base_url($content, 'http://wordpress.org/extend/plugins/' . $api->slug . '/'); 
     389                        $content = links_add_base_url($content, 'http://wordpress.org/plugins/' . $api->slug . '/'); 
    390390                        $content = links_add_target($content, '_blank'); 
    391391 
    392392                        $san_section = esc_attr( $section_name ); 
  • wp-admin/includes/dashboard.php

     
    923923 
    924924function wp_dashboard_plugins() { 
    925925        wp_dashboard_cached_rss_widget( 'dashboard_plugins', 'wp_dashboard_plugins_output', array( 
    926                 'http://wordpress.org/extend/plugins/rss/browse/popular/', 
    927                 'http://wordpress.org/extend/plugins/rss/browse/new/' 
     926                'http://wordpress.org/plugins/rss/browse/popular/', 
     927                'http://wordpress.org/plugins/rss/browse/new/' 
    928928        ) ); 
    929929} 
    930930 
     
    934934 * @since 2.5.0 
    935935 */ 
    936936function wp_dashboard_plugins_output() { 
    937         $popular = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/popular/' ); 
    938         $new     = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/new/' ); 
     937        $popular = fetch_feed( 'http://wordpress.org/plugins/rss/browse/popular/' ); 
     938        $new     = fetch_feed( 'http://wordpress.org/plugins/rss/browse/new/' ); 
    939939 
    940940        if ( false === $plugin_slugs = get_transient( 'plugin_slugs' ) ) { 
    941941                $plugin_slugs = array_keys( get_plugins() ); 
  • wp-admin/includes/class-wp-theme-install-list-table.php

     
    164164         * 
    165165         * Example theme data: 
    166166         *   object(stdClass)[59] 
    167          *     public 'name' => string 'Magazine Basic' (length=14) 
    168          *     public 'slug' => string 'magazine-basic' (length=14) 
    169          *     public 'version' => string '1.1' (length=3) 
    170          *     public 'author' => string 'tinkerpriest' (length=12) 
    171          *     public 'preview_url' => string 'http://wp-themes.com/?magazine-basic' (length=36) 
    172          *     public 'screenshot_url' => string 'http://wp-themes.com/wp-content/themes/magazine-basic/screenshot.png' (length=68) 
     167         *     public 'name' => string 'Magazine Basic' 
     168         *     public 'slug' => string 'magazine-basic' 
     169         *     public 'version' => string '1.1' 
     170         *     public 'author' => string 'tinkerpriest'' 
     171         *     public 'preview_url' => string 'http://wp-themes.com/?magazine-basic' 
     172         *     public 'screenshot_url' => string 'http://wp-themes.com/wp-content/themes/magazine-basic/screenshot.png' 
    173173         *     public 'rating' => float 80 
    174174         *     public 'num_ratings' => int 1 
    175          *     public 'homepage' => string 'http://wordpress.org/extend/themes/magazine-basic' (length=49) 
    176          *     public 'description' => string 'A basic magazine style layout with a fully customizable layout through a backend interface. Designed by <a href="http://bavotasan.com">c.bavota</a> of <a href="http://tinkerpriestmedia.com">Tinker Priest Media</a>.' (length=214) 
    177          *     public 'download_link' => string 'http://wordpress.org/extend/themes/download/magazine-basic.1.1.zip' (length=66) 
     175         *     public 'homepage' => string 'http://wordpress.org/themes/magazine-basic' 
     176         *     public 'description' => string 'A basic magazine style layout with a fully customizable layout through a backend interface. Designed by <a href="http://bavotasan.com">c.bavota</a> of <a href="http://tinkerpriestmedia.com">Tinker Priest Media</a>.' 
     177         *     public 'download_link' => string 'http://wordpress.org/themes/download/magazine-basic.1.1.zip' 
    178178         */ 
    179179        function single_row( $theme ) { 
    180180                global $themes_allowedtags; 
  • wp-admin/includes/media.php

     
    15031503        global $type, $tab, $pagenow, $is_IE, $is_opera; 
    15041504 
    15051505        if ( ! _device_can_upload() ) { 
    1506                 echo '<p>' . __('The web browser on your device cannot be used to upload files. You may be able to use the <a href="http://wordpress.org/extend/mobile/">native app for your device</a> instead.') . '</p>'; 
     1506                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.'), 'http://wordpress.org/mobile/' ) . '</p>'; 
    15071507                return; 
    15081508        } 
    15091509 
  • wp-admin/plugin-install.php

     
    3939'id'            => 'overview', 
    4040'title'         => __('Overview'), 
    4141'content'       => 
    42         '<p>' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s" target="_blank">WordPress.org Plugin Directory</a> are compatible with the license WordPress uses. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'http://wordpress.org/extend/plugins/') . '</p>' 
     42        '<p>' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s" target="_blank">WordPress.org Plugin Directory</a> are compatible with the license WordPress uses. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'http://wordpress.org/plugins/') . '</p>' 
    4343) ); 
    4444get_current_screen()->add_help_tab( array( 
    4545'id'            => 'adding-plugins', 
  • wp-admin/freedoms.php

     
    4646 
    4747<p><?php 
    4848 
    49 $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : 'http://wordpress.org/extend/plugins/'; 
    50 $themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : 'http://wordpress.org/extend/themes/'; 
     49$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : 'http://wordpress.org/plugins/'; 
     50$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : 'http://wordpress.org/themes/'; 
    5151 
    5252printf( __( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ), $plugins_url, $themes_url, 'http://wordpress.org/about/license/' ); ?></p> 
    5353 
  • wp-admin/plugins.php

     
    340340'title'         => __('Overview'), 
    341341'content'       => 
    342342        '<p>' . __('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.') . '</p>' . 
    343         '<p>' . sprintf(__('You can find additional plugins for your site by using the <a href="%1$s">Plugin Browser/Installer</a> functionality or by browsing the <a href="%2$s" target="_blank">WordPress Plugin Directory</a> directly and installing new plugins manually. To manually install a plugin you generally just need to upload the plugin file into your <code>/wp-content/plugins</code> directory. Once a plugin has been installed, you can activate it here.'), 'plugin-install.php', 'http://wordpress.org/extend/plugins/') . '</p>' 
     343        '<p>' . sprintf(__('You can find additional plugins for your site by using the <a href="%1$s">Plugin Browser/Installer</a> functionality or by browsing the <a href="%2$s" target="_blank">WordPress Plugin Directory</a> directly and installing new plugins manually. To manually install a plugin you generally just need to upload the plugin file into your <code>/wp-content/plugins</code> directory. Once a plugin has been installed, you can activate it here.'), 'plugin-install.php', 'http://wordpress.org/plugins/') . '</p>' 
    344344) ); 
    345345get_current_screen()->add_help_tab( array( 
    346346'id'            => 'compatibility-problems', 
  • wp-admin/theme-install.php

     
    3737do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information. 
    3838 
    3939$help_overview = 
    40         '<p>' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/extend/themes/') . '</p>' . 
     40        '<p>' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/themes/') . '</p>' . 
    4141        '<p>' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Newest, or Recently Updated. When you find a theme you like, you can preview it or install it.') . '</p>' . 
    4242        '<p>' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&#8217;s folder via FTP into your <code>/wp-content/themes</code> directory.') . '</p>'; 
    4343 
  • wp-admin/themes.php

     
    5454        if ( is_multisite() ) { 
    5555                $help_install = '<p>' . __('Installing themes on Multisite can only be done from the Network Admin section.') . '</p>'; 
    5656        } else { 
    57                 $help_install = '<p>' . sprintf( __('If you would like to see more themes to choose from, click on the &#8220;Install Themes&#8221; tab and you will be able to browse or search for additional themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they&#8217;re free!'), 'http://wordpress.org/extend/themes/' ) . '</p>'; 
     57                $help_install = '<p>' . sprintf( __('If you would like to see more themes to choose from, click on the &#8220;Install Themes&#8221; tab and you will be able to browse or search for additional themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they&#8217;re free!'), 'http://wordpress.org/themes/' ) . '</p>'; 
    5858        } 
    5959 
    6060        get_current_screen()->add_help_tab( array(