Changeset 4910
- Timestamp:
- 02/16/2017 04:02:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r4905 r4910 314 314 */ 315 315 function wporg_support_fix_pending_posts_reply_url( $url, $post_id ) { 316 if ( false !== strpos( $url, '?' ) && false !== strpos( $url, '/edit/' ) ) { 317 $url = str_replace( '/edit/', '', $url ); 318 $url = add_query_arg( 'edit', '1', $url ); 316 if ( false !== strpos( $url, '?' ) ) { 317 if ( false !== strpos( $url, '/edit/' ) ) { 318 $url = str_replace( '/edit/', '', $url ); 319 $url = add_query_arg( 'edit', '1', $url ); 320 } elseif ( false !== strpos( $url, '%2Fedit%2F' ) ) { 321 $url = str_replace( '%2Fedit%2F', '', $url ); 322 $url = add_query_arg( 'edit', '1', $url ); 323 } 319 324 } 320 325
Note: See TracChangeset
for help on using the changeset viewer.