| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | * @return WP_Post[]|false Array of pages (or hierarchical post type items). Boolean false if the |
| 30 | 30 | * specified post type is not hierarchical or the specified status is not |
| 31 | 31 | * supported by the post type. |
| 32 | 32 | */ |
| 33 | - public function get_pages( $args ): ?array { | |
| 33 | + public function get_pages( $args ) : ?array { | |
| 34 | 34 | return get_pages( $args ); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | * Creates and returns a wp query instance. |
| 39 | 39 | * |
| 40 | 40 | * @return \WP_Query |
| 41 | 41 | */ |
| 42 | - public function get_query( $args ): ?\WP_Query { | |
| 42 | + public function get_query( $args ) : ?\WP_Query { | |
| 43 | 43 | return new \WP_Query( $args ); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function get_option( $option_key ) { |
| @@ -46,13 +46,13 @@ | ||
| 46 | 46 | public function get_option( $option_key ) { |
| 47 | 47 | return get_option( $option_key ); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public function update_option( $option_key, $option_value ): void { | |
| 50 | + public function update_option( $option_key, $option_value ) : void { | |
| 51 | 51 | update_option( $option_key, $option_value ); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - public function add_option( $option_key, $option_value ): void { | |
| 54 | + public function add_option( $option_key, $option_value ) : void { | |
| 55 | 55 | add_option( $option_key, $option_value ); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | public function get_user_preferences( $preference_key ) { |
| @@ -70,28 +70,20 @@ | ||
| 70 | 70 | public function is_new_installation() { |
| 71 | 71 | return Upgrade_Manager::is_new_installation(); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - public function add_query_arg( $args, $url ): string { | |
| 74 | + public function add_query_arg( $args, $url ) : string { | |
| 75 | 75 | return add_query_arg( $args, $url ); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - public function has_custom_logo(): bool { | |
| 78 | + public function has_custom_logo() : bool { | |
| 79 | 79 | return has_custom_logo(); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - public function current_user_can( $capability, $args ): bool { | |
| 82 | + public function current_user_can( $capability, $args ) : bool { | |
| 83 | 83 | return current_user_can( $capability, $args ); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - public function get_post_status( $post_id ): string { | |
| 86 | + public function get_post_status( $post_id ) : string { | |
| 87 | 87 | return get_post_status( $post_id ); |
| 88 | - } | |
| 89 | - | |
| 90 | - public function get_posts( $args ): array { | |
| 91 | - return get_posts( $args ); | |
| 92 | - } | |
| 93 | - | |
| 94 | - public function get_post_types( $args = [], $output = 'names', $operator = 'and' ): array { | |
| 95 | - return get_post_types( $args, $output, $operator ); | |
| 96 | 88 | } |
| 97 | 89 | } |