Skip to content

Commit 7d5ea06

Browse files
committed
2 parents 73a26a0 + 6344764 commit 7d5ea06

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ I developed this plugin because I wanted to create a "redirect page" between a l
1111

1212
I am not responsible for any problems that may arise from using the plugin! You can use and edit it as you wish.
1313

14-
[My Website](https://emreertan.com) ~ [Artvelog Creative - WordPress support services](https://creative.artvelog.com)
14+
[My Website](https://emreertan.com) ~ [Artvelog Creative - WordPress support services](https://creative.artvelog.com) - [Patreon - Make Happy :)](https://patreon.com/join/artvelog/checkout)
1515
## Licence
1616

1717
[MIT](https://choosealicense.com/licenses/mit/)

admin/admin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ function rp_title_shortcode(){
9191
$title = carbon_get_theme_option('redirect_page_title');
9292
return $title;
9393
}
94-
add_shortcode( 'rp_title', 'rp_title_shortcode' );
94+
add_shortcode( 'rp_title', 'rp_title_shortcode' );
95+

redirect-page.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function redirect_url_shortcode(){
6666
?>
6767
</div>
6868
<?php
69-
//wp_footer();
69+
wp_footer();
7070
if (isset($_GET['url'])) {
7171
if(empty($_GET['time'])){
7272
$delay = 5;
@@ -104,11 +104,11 @@ function redirect_url_shortcode(){
104104
<?php
105105
}
106106
else{
107-
wp_die( '<h1>404 - Sayfa Bulunamadı</h1>', '404 - Sayfa Bulunamadı', array( 'response' => '404', 'back_link' => true ) );
107+
wp_die( '<h1>' . __( '404 - Not Found', 'redirect-artvelog') . '</h1>', '404', array( 'response' => '404', 'back_link' => true ) );
108108
}
109109

110110
}
111111
else {
112-
wp_die( '<h1>404 - Sayfa Bulunamadı</h1>', '404 - Sayfa Bulunamadı', array( 'response' => '404', 'back_link' => true ) );
112+
wp_die( '<h1>' . __( '404 - Not Found', 'redirect-artvelog') . '</h1>', '404', array( 'response' => '404', 'back_link' => true ) );
113113
}
114-
?>
114+
?>

0 commit comments

Comments
 (0)