PluginProbe
FeedWordPress / 2022.0123
FeedWordPress v2022.0123
trunk 0.8 0.9 0.91 0.95 0.96 0.97 0.98 0.981 0.99 0.991 0.992 0.993 2008.1030 2008.1101 2008.1105 2008.1214 2009.0612 2009.0613 2009.0618 2009.0707 2009.1111 2009.1112 2010.0127 2010.0528 All 65 releases
← All changes | template-functions.php +13 -13 trunk2022.0123 View file →
@@ -25,9 +25,9 @@
25 25 *
26 26 * @param string $url provides the URL to display
27 27 * @param int $before a number of characters to preserve from the beginning of the URL if it must be shortened
28 28 * @param int $after a number of characters to preserve from the end of the URL if it must be shortened
29 - * @return string containing an abbreviated display form of the URL (e.g.: `feedwordpress.radgeek.net/feed`)
29 + * @return string containing an abbreviated display form of the URL (e.g.: `feedwordpress.radgeek.net/feed`)
30 30 */
31 31 function feedwordpress_display_url ($url, $before = 60, $after = 0) {
32 32 $bits = parse_url($url);
33 33
@@ -43,9 +43,9 @@
43 43 .(isset($uri_bits['port'])?':'.$uri_bits['port']:'')
44 44 .(isset($bits['query'])?'?'.$bits['query']:'');
45 45
46 46 if (strlen($url) > ($before+$after)) :
47 - $url = substr($url, 0, $before).'…'.substr($url, 0 - $after, $after);
47 + $url = substr($url, 0, $before).'.'.substr($url, 0 - $after, $after);
48 48 endif;
49 49
50 50 return $url;
51 51 } /* feedwordpress_display_url () */
@@ -60,9 +60,9 @@
60 60 return $p->syndication_source_link($original);
61 61 } /* function get_syndication_source_link() */
62 62
63 63 function the_syndication_source_link ($original = NULL, $id = NULL) {
64 - echo esc_url( get_syndication_source_link($original, $id) );
64 + echo get_syndication_source_link($original, $id);
65 65 } /* function the_syndication_source_link() */
66 66
67 67 function get_syndication_source ($original = NULL, $id = NULL) {
68 68 $p = new FeedWordPressLocalPost($id);
@@ -69,9 +69,9 @@
69 69 return $p->syndication_source($original);
70 70 } /* function get_syndication_source() */
71 71
72 72 function the_syndication_source ($original = NULL, $id = NULL) {
73 - echo esc_html( get_syndication_source($original, $id) );
73 + echo get_syndication_source($original, $id);
74 74 } /* function the_syndication_source () */
75 75
76 76 function get_syndication_feed ($original = NULL, $id = NULL) {
77 77 $p = new FeedWordPressLocalPost($id);
@@ -78,18 +78,18 @@
78 78 return $p->syndication_feed($original);
79 79 } /* function get_syndication_feed() */
80 80
81 81 function the_syndication_feed ($original = NULL, $id = NULL) {
82 - echo esc_url( get_syndication_feed($original, $id) );
82 + echo get_syndication_feed($original, $id);
83 83 } /* function the_syndication_feed() */
84 84
85 85 function get_syndication_feed_guid ($original = NULL, $id = NULL) {
86 86 $p = new FeedWordPressLocalPost($id);
87 - return $p->syndication_feed_guid( $original );
87 + return $p->syndication_feed_guid($original);
88 88 } /* function get_syndication_feed_guid () */
89 89
90 90 function the_syndication_feed_guid ($original = NULL, $id = NULL) {
91 - echo esc_html( get_syndication_feed_guid( $original, $id ) );
91 + echo get_syndication_feed_guid($original, $id);
92 92 } /* function the_syndication_feed_guid () */
93 93
94 94 function get_syndication_feed_id ($id = NULL) {
95 95 $p = new FeedWordPressLocalPost($id);
@@ -96,9 +96,9 @@
96 96 return $p->feed_id();
97 97 } /* function get_syndication_feed_id () */
98 98
99 99 function the_syndication_feed_id ($id = NULL) {
100 - echo esc_html( get_syndication_feed_id($id) );
100 + echo get_syndication_feed_id($id);
101 101 } /* function the_syndication_feed_id () */
102 102
103 103 function get_syndication_feed_object ($id = NULL) {
104 104 $p = new FeedWordPressLocalPost($id);
@@ -120,9 +120,9 @@
120 120 return $p->syndication_permalink();
121 121 } /* function get_syndication_permalink () */
122 122
123 123 function the_syndication_permalink ($id = NULL) {
124 - echo esc_url( get_syndication_permalink($id) );
124 + echo get_syndication_permalink($id);
125 125 } /* function the_syndication_permalink () */
126 126
127 127 /**
128 128 * get_local_permalink: returns a string containing the internal permalink
@@ -140,14 +140,14 @@
140 140 * @global $feedwordpress_the_original_permalink
141 141 *
142 142 * @since 2010.0217
143 143 */
144 -function get_local_permalink ( $id = NULL ) {
144 +function get_local_permalink ($id = NULL) {
145 145 global $feedwordpress_the_original_permalink;
146 146
147 147 // get permalink, and thus activate filter and force global to be filled
148 148 // with original URL.
149 - $url = get_permalink( $id );
149 + $url = get_permalink($id);
150 150 return $feedwordpress_the_original_permalink;
151 151 } /* get_local_permalink() */
152 152
153 153 /**
@@ -160,8 +160,8 @@
160 160 * @uses apply_filters
161 161 *
162 162 * @since 2010.0217
163 163 */
164 -function the_local_permalink ( $id = NULL ) {
165 - print esc_url( apply_filters( 'the_permalink', get_local_permalink( $id ) ) );
164 +function the_local_permalink ($id = NULL) {
165 + print apply_filters('the_permalink', get_local_permalink($id));
166 166 } /* function the_local_permalink() */
167 167