wp/wp-admin/edit-link-form.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    17 	$submit_text  = __( 'Update Link' );
    17 	$submit_text  = __( 'Update Link' );
    18 	$form_name    = 'editlink';
    18 	$form_name    = 'editlink';
    19 	$nonce_action = 'update-bookmark_' . $link_id;
    19 	$nonce_action = 'update-bookmark_' . $link_id;
    20 } else {
    20 } else {
    21 	/* translators: %s: URL to Links screen. */
    21 	/* translators: %s: URL to Links screen. */
    22 	$heading      = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' );
    22 	$heading      = sprintf( __( '<a href="%s">Links</a> / Add Link' ), 'link-manager.php' );
    23 	$submit_text  = __( 'Add Link' );
    23 	$submit_text  = __( 'Add Link' );
    24 	$form_name    = 'addlink';
    24 	$form_name    = 'addlink';
    25 	$nonce_action = 'add-bookmark';
    25 	$nonce_action = 'add-bookmark';
    26 }
    26 }
    27 
    27 
    85 <?php
    85 <?php
    86 echo esc_html( $title );
    86 echo esc_html( $title );
    87 ?>
    87 ?>
    88 </h1>
    88 </h1>
    89 
    89 
    90 <a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
    90 <a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add Link' ); ?></a>
    91 
    91 
    92 <hr class="wp-header-end">
    92 <hr class="wp-header-end">
    93 
    93 
    94 <?php
    94 <?php
    95 if ( isset( $_GET['added'] ) ) {
    95 if ( isset( $_GET['added'] ) ) {