Making WordPress.org

Changeset 7601


Ignore:
Timestamp:
08/09/2018 10:18:08 PM (8 years ago)
Author:
obenland
Message:

Gutenberg: Make site title and desc translatable.

Fixes #3270.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php

    r7597 r7601  
    195195        }
    196196        add_filter( 'wp_headers', 'disable_x_pingback' );
     197
     198        function frontenberg_site_title() {
     199                return esc_html__( 'The new Gutenberg editing experience', 'wporg' );
     200        }
     201        add_filter( 'the_title', 'frontenberg_site_title' );
     202        add_filter( 'option_blogname', 'frontenberg_site_title' );
     203
     204        function frontenberg_site_description() {
     205                return esc_html__( 'A new editing experience for WordPress is in the works, code name Gutenberg. Read more about it and test it!', 'wporg' );
     206        }
     207        add_filter( 'option_blogdescription', 'frontenberg_site_description' );
    197208});
    198209
Note: See TracChangeset for help on using the changeset viewer.