Skip to content

Commit cc78177

Browse files
committed
custom post type set defult to post
1 parent bfb837e commit cc78177

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

codehaveli-bitly-url-shortener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Codehaveli Bitly URL Shortener
55
Plugin URI: https://github.com/codehaveli/
66
Description: This Plugin is used for shorten the newly published post url, Plugin use the api functionality of https://bitly.com/ to achive this URL shorten process.
7-
Version: 1.1.2
7+
Version: 1.1.3
88
Author: Codehaveli
99
Author URI: https://www.codehaveli.com/
1010
License: GPLv2 or later
@@ -16,7 +16,7 @@
1616

1717
define( 'WBITLY_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
1818
define( 'WBITLY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
19-
define( 'WBITLY_PLUGIN_VERSION', '1.1.2' );
19+
define( 'WBITLY_PLUGIN_VERSION', '1.1.3' );
2020
define( 'WBITLY_API_URL', 'https://api-ssl.bitly.com' );
2121
define( 'WBITLY_BASENAME', plugin_basename( __FILE__ ) );
2222
define( 'WBITLY_SETTINGS_URL', admin_url( 'tools.php?page=wbitly' ) );

inc/wbitly-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @Last Modified by: Codehaveli
77
* @Website: www.codehaveli.com
88
* @Email: hello@codehaveli.com
9-
* @Last Modified time: 2020-09-27 19:23:07
9+
* @Last Modified time: 2020-09-28 10:35:31
1010
*/
1111

1212

@@ -437,7 +437,7 @@ public function get_wbitly_active_post_status(){
437437

438438

439439
$bitly_url_options_from_db = get_option( 'wbitly_url_option_name' );
440-
$active_post_types = isset($bitly_url_options_from_db['wbitly_custom_post']) ? $bitly_url_options_from_db['wbitly_custom_post'] : [];
440+
$active_post_types = isset($bitly_url_options_from_db['wbitly_custom_post']) ? $bitly_url_options_from_db['wbitly_custom_post'] : ['post'];
441441
return $active_post_types;
442442

443443
}

0 commit comments

Comments
 (0)