@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * @uses api_request() |
| 65 | 65 | * |
| 66 | 66 | * @param array $_transient_data Update array build by WordPress. |
| 67 | - * @return array Modified update array with custom plugin data. |
|
| 67 | + * @return stdClass Modified update array with custom plugin data. |
|
| 68 | 68 | */ |
| 69 | 69 | function check_update( $_transient_data ) { |
| 70 | 70 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * Loads the class file for a given class name. |
| 63 | 63 | * |
| 64 | 64 | * @param string $class The fully-qualified class name. |
| 65 | - * @return mixed The mapped file name on success, or boolean false on |
|
| 65 | + * @return string|false The mapped file name on success, or boolean false on |
|
| 66 | 66 | * failure. |
| 67 | 67 | */ |
| 68 | 68 | public function loadClass($class) { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * |
| 100 | 100 | * @param string $prefix The namespace prefix. |
| 101 | 101 | * @param string $relative_class The relative class name. |
| 102 | - * @return mixed Boolean false if no mapped file can be loaded, or the |
|
| 102 | + * @return false|string Boolean false if no mapped file can be loaded, or the |
|
| 103 | 103 | * name of the mapped file that was loaded. |
| 104 | 104 | */ |
| 105 | 105 | protected function loadMappedFile($prefix, $relative_class) { |
@@ -49,7 +49,6 @@ discard block |
||
| 49 | 49 | * |
| 50 | 50 | * @param string $action The AJAX action we are processing. |
| 51 | 51 | * @param string|object $callback_class The class to use for the callback. Either the name of the class or an instance of that class. |
| 52 | - * @param string $method The name of the callback method. |
|
| 53 | 52 | |
| 54 | 53 | */ |
| 55 | 54 | public function __construct( $action, $callback_class) { |
@@ -123,7 +122,7 @@ discard block |
||
| 123 | 122 | * |
| 124 | 123 | * @access protected |
| 125 | 124 | * |
| 126 | - * @return bool |
|
| 125 | + * @return boolean|null |
|
| 127 | 126 | */ |
| 128 | 127 | protected function if_implements() { |
| 129 | 128 | |
@@ -97,6 +97,7 @@ |
||
| 97 | 97 | * |
| 98 | 98 | * @access protected |
| 99 | 99 | * |
| 100 | + * @param string $action |
|
| 100 | 101 | * @return array |
| 101 | 102 | */ |
| 102 | 103 | protected static function find_callback( $action ) { |
@@ -1887,7 +1887,7 @@ discard block |
||
| 1887 | 1887 | * |
| 1888 | 1888 | * @since 2.4.0 |
| 1889 | 1889 | * |
| 1890 | - * @return object The TGM_Plugin_Activation object. |
|
| 1890 | + * @return TGM_Plugin_Activation The TGM_Plugin_Activation object. |
|
| 1891 | 1891 | */ |
| 1892 | 1892 | public static function get_instance() { |
| 1893 | 1893 | if ( ! isset( self::$instance ) && ! ( self::$instance instanceof self ) ) { |
@@ -2044,7 +2044,7 @@ discard block |
||
| 2044 | 2044 | * |
| 2045 | 2045 | * @since 2.5.0 |
| 2046 | 2046 | * |
| 2047 | - * @return array CSS classnames. |
|
| 2047 | + * @return string[] CSS classnames. |
|
| 2048 | 2048 | */ |
| 2049 | 2049 | public function get_table_classes() { |
| 2050 | 2050 | return array( 'widefat', 'fixed' ); |
@@ -163,6 +163,9 @@ |
||
| 163 | 163 | return $content; |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | + /** |
|
| 167 | + * @param string $content |
|
| 168 | + */ |
|
| 166 | 169 | protected function remove_comments($content) { |
| 167 | 170 | return preg_replace('/<!--(.*)-->/Uis', '', $content); |
| 168 | 171 | } |
@@ -279,6 +279,9 @@ |
||
| 279 | 279 | endif; |
| 280 | 280 | |
| 281 | 281 | // helper function to retrieve one id for default option |
| 282 | +/** |
|
| 283 | + * @param string $type |
|
| 284 | + */ |
|
| 282 | 285 | function editus_get_one_id($type) |
| 283 | 286 | { |
| 284 | 287 | $args = array( 'posts_per_page' => 1, 'post_type' => $type ); |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | * @param string|bool $value The term slug, or a comma separated list of slugs. Or false to remove all terms set for post. |
| 183 | 183 | * The first item is the name of taxonomy |
| 184 | 184 | * |
| 185 | - * @return bool True if update was successful, false if not. |
|
| 185 | + * @return boolean|null True if update was successful, false if not. |
|
| 186 | 186 | */ |
| 187 | 187 | public function set_custom_taxonomy( $postid, $value) { |
| 188 | 188 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * |
| 77 | 77 | * @since 0.0.1 |
| 78 | 78 | * |
| 79 | - * @return Plugin slug variable. |
|
| 79 | + * @return string slug variable. |
|
| 80 | 80 | */ |
| 81 | 81 | public function get_plugin_slug() { |
| 82 | 82 | return $this->plugin_slug; |
@@ -330,6 +330,9 @@ discard block |
||
| 330 | 330 | exit; |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | + /** |
|
| 334 | + * @param string $type |
|
| 335 | + */ |
|
| 333 | 336 | public static function enable_metasave($type) |
| 334 | 337 | { |
| 335 | 338 | register_rest_field( $type, 'metadata', array( |
@@ -422,6 +425,10 @@ discard block |
||
| 422 | 425 | |
| 423 | 426 | exit; |
| 424 | 427 | } |
| 428 | + |
|
| 429 | + /** |
|
| 430 | + * @param string $taxonomy |
|
| 431 | + */ |
|
| 425 | 432 | public function set_post_terms( $postid, $value, $taxonomy ) { |
| 426 | 433 | if( $value ) { |
| 427 | 434 | $value = explode( ',', $value ); |