Custom Permalinks - Version 0.7.21

Version Description

  • Minor internationalization fixes
Download this release

Release Info

Developer michaeltyson
Plugin Icon Custom Permalinks
Version 0.7.21
Comparing to
See all releases

Code changes from version 0.7.20 to 0.7.21

Files changed (2) hide show
  1. custom-permalinks.php +10 -9
  2. readme.txt +5 -1
custom-permalinks.php CHANGED
@@ -4,12 +4,13 @@ Plugin Name: Custom Permalinks
4
  Plugin URI: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
5
  Donate link: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
6
  Description: Set custom permalinks on a per-post basis
7
- Version: 0.7.20
8
  Author: Michael Tyson
9
  Author URI: http://atastypixel.com/blog
 
10
  */
11
 
12
- /* Copyright 2008 Michael Tyson <mike@tyson.id.au>
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
@@ -301,7 +302,7 @@ function custom_permalink_get_sample_permalink_html($html, $id, $new_title, $new
301
  ob_end_clean();
302
 
303
  if ( 'publish' == $post->post_status ) {
304
- $view_post = 'page' == $post->post_type ? __('View Page') : __('View Post');
305
  }
306
 
307
  if ( preg_match("@view-post-btn.*?href='([^']+)'@s", $html, $matches) ) {
@@ -313,7 +314,7 @@ function custom_permalink_get_sample_permalink_html($html, $id, $new_title, $new
313
  }
314
  }
315
 
316
- return '<strong>' . __('Permalink:') . "</strong>\n" . $content .
317
  ( isset($view_post) ? "<span id='view-post-btn'><a href='$permalink' class='button button-small' target='_blank'>$view_post</a></span>\n" : "" );
318
  }
319
 
@@ -335,7 +336,7 @@ function custom_permalinks_post_options() {
335
 
336
  ?>
337
  <div class="postbox closed">
338
- <h3><?php _e('Custom Permalink', 'custom-permalink') ?></h3>
339
  <div class="inside">
340
  <?php custom_permalinks_form($permalink, custom_permalinks_original_post_link($post_id)); ?>
341
  </div>
@@ -361,7 +362,7 @@ function custom_permalinks_page_options() {
361
 
362
  ?>
363
  <div class="postbox closed">
364
- <h3><?php _e('Custom Permalink', 'custom-permalink') ?></h3>
365
  <div class="inside">
366
  <?php custom_permalinks_form($permalink, custom_permalinks_original_page_link($post_id)); ?>
367
  </div>
@@ -413,7 +414,7 @@ function custom_permalinks_form($permalink, $original="", $renderContainers=true
413
  <?php if ( $renderContainers ) : ?>
414
  <table class="form-table" id="custom_permalink_form">
415
  <tr>
416
- <th scope="row"><?php _e('Custom Permalink', 'custom-permalink') ?></th>
417
  <td>
418
  <?php endif; ?>
419
  <?php echo home_url() ?>/
@@ -425,7 +426,7 @@ function custom_permalinks_form($permalink, $original="", $renderContainers=true
425
  </span>
426
  <?php if ( $renderContainers ) : ?>
427
  <br />
428
- <small><?php _e('Leave blank to disable', 'custom-permalink') ?></small>
429
 
430
  </td>
431
  </tr>
@@ -607,7 +608,7 @@ function custom_permalinks_options_page() {
607
  <th scope="row" class="check-column"><input type="checkbox" name="revert[]" value="<?php echo $row['id'] ?>" /></th>
608
  <td><strong><a class="row-title" href="<?php echo htmlspecialchars($row['editlink']) ?>"><?php echo htmlspecialchars($row['title']) ?></a></strong></td>
609
  <td><?php echo htmlspecialchars($row['type']) ?></td>
610
- <td><a href="<?php echo $row['permalink'] ?>" target="_blank" title="Visit <?php echo htmlspecialchars($row['title']) ?>">
611
  <?php echo htmlspecialchars(urldecode($row['permalink'])) ?>
612
  </a>
613
  </td>
4
  Plugin URI: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
5
  Donate link: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
6
  Description: Set custom permalinks on a per-post basis
7
+ Version: 0.7.21
8
  Author: Michael Tyson
9
  Author URI: http://atastypixel.com/blog
10
+ Text Domain: custom-permalinks
11
  */
12
 
13
+ /* Copyright 2008-2015 Michael Tyson <michael@atastypixel.com>
14
 
15
  This program is free software; you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
302
  ob_end_clean();
303
 
304
  if ( 'publish' == $post->post_status ) {
305
+ $view_post = 'page' == $post->post_type ? __('View Page', 'custom-permalinks') : __('View Post', 'custom-permalinks');
306
  }
307
 
308
  if ( preg_match("@view-post-btn.*?href='([^']+)'@s", $html, $matches) ) {
314
  }
315
  }
316
 
317
+ return '<strong>' . __('Permalink:', 'custom-permalinks') . "</strong>\n" . $content .
318
  ( isset($view_post) ? "<span id='view-post-btn'><a href='$permalink' class='button button-small' target='_blank'>$view_post</a></span>\n" : "" );
319
  }
320
 
336
 
337
  ?>
338
  <div class="postbox closed">
339
+ <h3><?php _e('Custom Permalink', 'custom-permalinks') ?></h3>
340
  <div class="inside">
341
  <?php custom_permalinks_form($permalink, custom_permalinks_original_post_link($post_id)); ?>
342
  </div>
362
 
363
  ?>
364
  <div class="postbox closed">
365
+ <h3><?php _e('Custom Permalink', 'custom-permalinks') ?></h3>
366
  <div class="inside">
367
  <?php custom_permalinks_form($permalink, custom_permalinks_original_page_link($post_id)); ?>
368
  </div>
414
  <?php if ( $renderContainers ) : ?>
415
  <table class="form-table" id="custom_permalink_form">
416
  <tr>
417
+ <th scope="row"><?php _e('Custom Permalink', 'custom-permalinks') ?></th>
418
  <td>
419
  <?php endif; ?>
420
  <?php echo home_url() ?>/
426
  </span>
427
  <?php if ( $renderContainers ) : ?>
428
  <br />
429
+ <small><?php _e('Leave blank to disable', 'custom-permalinks') ?></small>
430
 
431
  </td>
432
  </tr>
608
  <th scope="row" class="check-column"><input type="checkbox" name="revert[]" value="<?php echo $row['id'] ?>" /></th>
609
  <td><strong><a class="row-title" href="<?php echo htmlspecialchars($row['editlink']) ?>"><?php echo htmlspecialchars($row['title']) ?></a></strong></td>
610
  <td><?php echo htmlspecialchars($row['type']) ?></td>
611
+ <td><a href="<?php echo $row['permalink'] ?>" target="_blank" title="<?php printf(__('Visit %s', 'custom-permalinks'), htmlspecialchars($row['title'])) ?>">
612
  <?php echo htmlspecialchars(urldecode($row['permalink'])) ?>
613
  </a>
614
  </td>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
4
  Tags: permalink, url, link, address, custom, redirect
5
  Requires at least: 2.6
6
  Tested up to: 4.1
7
- Stable tag: 0.7.20
8
 
9
  Set custom permalinks on a per-post, per-tag or per-category basis.
10
 
@@ -29,6 +29,10 @@ within that category.
29
 
30
  == Changelog ==
31
 
 
 
 
 
32
  = 0.7.20 =
33
 
34
  * Addressed a noisy warning
4
  Tags: permalink, url, link, address, custom, redirect
5
  Requires at least: 2.6
6
  Tested up to: 4.1
7
+ Stable tag: 0.7.21
8
 
9
  Set custom permalinks on a per-post, per-tag or per-category basis.
10
 
29
 
30
  == Changelog ==
31
 
32
+ = 0.7.21 =
33
+
34
+ * Minor internationalization fixes
35
+
36
  = 0.7.20 =
37
 
38
  * Addressed a noisy warning