wp/wp-admin/options-writing.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
     5  * @package WordPress
     5  * @package WordPress
     6  * @subpackage Administration
     6  * @subpackage Administration
     7  */
     7  */
     8 
     8 
     9 /** WordPress Administration Bootstrap */
     9 /** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
    10 require_once __DIR__ . '/admin.php';
    11 
    11 
    12 if ( ! current_user_can( 'manage_options' ) ) {
    12 if ( ! current_user_can( 'manage_options' ) ) {
    13 	wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    13 	wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    14 }
    14 }
    15 
    15 
    47 	);
    47 	);
    48 }
    48 }
    49 
    49 
    50 get_current_screen()->set_help_sidebar(
    50 get_current_screen()->set_help_sidebar(
    51 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    51 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    52 	'<p>' . __( '<a href="https://codex.wordpress.org/Settings_Writing_Screen">Documentation on Writing Settings</a>' ) . '</p>' .
    52 	'<p>' . __( '<a href="https://wordpress.org/support/article/settings-writing-screen/">Documentation on Writing Settings</a>' ) . '</p>' .
    53 	'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    53 	'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    54 );
    54 );
    55 
    55 
    56 include( ABSPATH . 'wp-admin/admin-header.php' );
    56 require_once ABSPATH . 'wp-admin/admin-header.php';
    57 ?>
    57 ?>
    58 
    58 
    59 <div class="wrap">
    59 <div class="wrap">
    60 <h1><?php echo esc_html( $title ); ?></h1>
    60 <h1><?php echo esc_html( $title ); ?></h1>
    61 
    61 
   139 	?>
   139 	?>
   140 <h2 class="title"><?php _e( 'Post via email' ); ?></h2>
   140 <h2 class="title"><?php _e( 'Post via email' ); ?></h2>
   141 <p>
   141 <p>
   142 	<?php
   142 	<?php
   143 	printf(
   143 	printf(
   144 		/* translators: 1, 2, 3: examples of random email addresses */
   144 		/* translators: 1, 2, 3: Examples of random email addresses. */
   145 		__( 'To post to WordPress by email you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: %1$s, %2$s, %3$s.' ),
   145 		__( 'To post to WordPress by email, you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: %1$s, %2$s, %3$s.' ),
   146 		sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ),
   146 		sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ),
   147 		sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ),
   147 		sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ),
   148 		sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) )
   148 		sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) )
   149 	);
   149 	);
   150 	?>
   150 	?>
   203 	<?php if ( 1 == get_option( 'blog_public' ) ) : ?>
   203 	<?php if ( 1 == get_option( 'blog_public' ) ) : ?>
   204 
   204 
   205 	<p><label for="ping_sites">
   205 	<p><label for="ping_sites">
   206 		<?php
   206 		<?php
   207 		printf(
   207 		printf(
   208 			/* translators: %s: Codex URL */
   208 			/* translators: %s: Codex URL. */
   209 			__( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="%s">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ),
   209 			__( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="%s">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ),
   210 			__( 'https://codex.wordpress.org/Update_Services' )
   210 			__( 'https://codex.wordpress.org/Update_Services' )
   211 		);
   211 		);
   212 		?>
   212 		?>
   213 	</label></p>
   213 	</label></p>
   217 	<?php else : ?>
   217 	<?php else : ?>
   218 
   218 
   219 	<p>
   219 	<p>
   220 		<?php
   220 		<?php
   221 		printf(
   221 		printf(
   222 			/* translators: 1: Codex URL, 2: Reading Settings URL */
   222 			/* translators: 1: Codex URL, 2: URL to Reading Settings screen. */
   223 			__( 'WordPress is not notifying any <a href="%1$s">Update Services</a> because of your site&#8217;s <a href="%2$s">visibility settings</a>.' ),
   223 			__( 'WordPress is not notifying any <a href="%1$s">Update Services</a> because of your site&#8217;s <a href="%2$s">visibility settings</a>.' ),
   224 			__( 'https://codex.wordpress.org/Update_Services' ),
   224 			__( 'https://codex.wordpress.org/Update_Services' ),
   225 			'options-reading.php'
   225 			'options-reading.php'
   226 		);
   226 		);
   227 		?>
   227 		?>
   234 
   234 
   235 <?php submit_button(); ?>
   235 <?php submit_button(); ?>
   236 </form>
   236 </form>
   237 </div>
   237 </div>
   238 
   238 
   239 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
   239 <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>