@@ -141,9 +141,9 @@ |
||
| 141 | 141 | */ |
| 142 | 142 | function ppp_set_social_tokens() { |
| 143 | 143 | if ( ( defined( 'PPP_TW_CONSUMER_KEY' ) && defined( 'PPP_TW_CONSUMER_SECRET' ) ) || |
| 144 | - ( defined( 'LINKEDIN_KEY' ) && defined( 'LINKEDIN_SECRET' ) ) || |
|
| 145 | - ( defined( 'bitly_clientid' ) && defined( 'bitly_secret' ) ) || |
|
| 146 | - ( defined( 'PPP_FB_APP_ID' ) && defined( 'PPP_FB_APP_SECRET' ) ) |
|
| 144 | + ( defined( 'LINKEDIN_KEY' ) && defined( 'LINKEDIN_SECRET' ) ) || |
|
| 145 | + ( defined( 'bitly_clientid' ) && defined( 'bitly_secret' ) ) || |
|
| 146 | + ( defined( 'PPP_FB_APP_ID' ) && defined( 'PPP_FB_APP_SECRET' ) ) |
|
| 147 | 147 | ) { |
| 148 | 148 | return; |
| 149 | 149 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * @since 1.0 |
| 124 | 124 | * |
| 125 | 125 | * @return array |
| 126 | - */ |
|
| 126 | + */ |
|
| 127 | 127 | |
| 128 | 128 | private static function log_types() { |
| 129 | 129 | $terms = array( |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * @uses register_post_type() |
| 144 | 144 | * |
| 145 | 145 | * @return void |
| 146 | - */ |
|
| 146 | + */ |
|
| 147 | 147 | |
| 148 | 148 | public function register_post_type() { |
| 149 | 149 | |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * @uses wp_insert_term() |
| 177 | 177 | * |
| 178 | 178 | * @return void |
| 179 | - */ |
|
| 179 | + */ |
|
| 180 | 180 | |
| 181 | 181 | public function register_taxonomy() { |
| 182 | 182 | |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * |
| 203 | 203 | * |
| 204 | 204 | * @return array |
| 205 | - */ |
|
| 205 | + */ |
|
| 206 | 206 | |
| 207 | 207 | private static function valid_type( $type ) { |
| 208 | 208 | return in_array( $type, self::log_types() ); |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | * @uses self::insert_log() |
| 222 | 222 | * |
| 223 | 223 | * @return int The ID of the new log entry |
| 224 | - */ |
|
| 224 | + */ |
|
| 225 | 225 | |
| 226 | 226 | public static function add( $title = '', $message = '', $parent = 0, $type = null ) { |
| 227 | 227 | |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * @uses sanitize_key() |
| 251 | 251 | * |
| 252 | 252 | * @return int The ID of the newly created log item |
| 253 | - */ |
|
| 253 | + */ |
|
| 254 | 254 | |
| 255 | 255 | public static function insert_log( $log_data = array(), $log_meta = array() ) { |
| 256 | 256 | |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | * @uses update_post_meta() |
| 301 | 301 | * |
| 302 | 302 | * @return bool True if successful, false otherwise |
| 303 | - */ |
|
| 303 | + */ |
|
| 304 | 304 | public static function update_log( $log_data = array(), $log_meta = array() ) { |
| 305 | 305 | |
| 306 | 306 | do_action( 'wp_pre_update_log', $log_id ); |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | * @uses self::get_connected_logs() |
| 338 | 338 | * |
| 339 | 339 | * @return array |
| 340 | - */ |
|
| 340 | + */ |
|
| 341 | 341 | |
| 342 | 342 | public static function get_logs( $object_id = 0, $type = null, $paged = null ) { |
| 343 | 343 | return self::get_connected_logs( array( 'post_parent' => $object_id, 'paged' => $paged, 'log_type' => $type ) ); |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | * @uses self::valid_type() |
| 360 | 360 | * |
| 361 | 361 | * @return array / false |
| 362 | - */ |
|
| 362 | + */ |
|
| 363 | 363 | |
| 364 | 364 | public static function get_connected_logs( $args = array() ) { |
| 365 | 365 | |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | * @uses self::valid_type() |
| 408 | 408 | * |
| 409 | 409 | * @return int |
| 410 | - */ |
|
| 410 | + */ |
|
| 411 | 411 | |
| 412 | 412 | public static function get_log_count( $object_id = 0, $type = null, $meta_query = null ) { |
| 413 | 413 | |