Changeset 10356 for trunk/src/bp-core/bp-core-wpabstraction.php
- Timestamp:
- 11/15/2015 07:57:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-wpabstraction.php
r10108 r10356 40 40 41 41 if ( !function_exists( 'get_blog_option' ) ) { 42 /** 42 43 /** 44 * Retrieve blog option. 45 * 43 46 * @see get_blog_option() 47 * 48 * @param int $blog_id Blog ID to fetch for. Not used. 49 * @param string $option_name Option name to fetch. 50 * @param bool $default Whether or not default. 51 * 52 * @return mixed 44 53 */ 45 54 function get_blog_option( $blog_id, $option_name, $default = false ) { … … 49 58 50 59 if ( ! function_exists( 'add_blog_option' ) ) { 51 /** 60 61 /** 62 * Add blog option 63 * 52 64 * @see add_blog_option() 65 * 66 * @param int $blog_id Blog ID to add for. Not used. 67 * @param string $option_name Option name to add. 68 * @param mixed $option_value Option value to add. 69 * 70 * @return mixed 53 71 */ 54 72 function add_blog_option( $blog_id, $option_name, $option_value ) { … … 58 76 59 77 if ( !function_exists( 'update_blog_option' ) ) { 60 /** 78 79 /** 80 * Update blog option. 81 * 61 82 * @see update_blog_option() 83 * 84 * @param int $blog_id Blog ID to update for. Not used. 85 * @param string $option_name Option name to update. 86 * @param mixed $value Option value to update. 87 * 88 * @return mixed 62 89 */ 63 90 function update_blog_option( $blog_id, $option_name, $value ) { … … 67 94 68 95 if ( !function_exists( 'delete_blog_option' ) ) { 69 /** 96 97 /** 98 * Delete blog option. 99 * 70 100 * @see delete_blog_option() 101 * 102 * @param int $blog_id Blog ID to delete for. Not used. 103 * @param string $option_name Option name to delete. 104 * 105 * @return mixed 71 106 */ 72 107 function delete_blog_option( $blog_id, $option_name ) { … … 76 111 77 112 if ( !function_exists( 'switch_to_blog' ) ) { 78 /** 113 114 /** 115 * Switch to specified blog. 116 * 79 117 * @see switch_to_blog() 118 * 119 * @param mixed $new_blog New blog to switch to. Not used. 120 * @param null $deprecated Whether or not deprecated. Not used. 121 * 122 * @return int 80 123 */ 81 124 function switch_to_blog( $new_blog, $deprecated = null ) { … … 85 128 86 129 if ( !function_exists( 'restore_current_blog' ) ) { 87 /** 130 131 /** 132 * Restore current blog. 133 * 88 134 * @see restore_current_blog() 135 * 136 * @return int 89 137 */ 90 138 function restore_current_blog() { … … 94 142 95 143 if ( !function_exists( 'get_blogs_of_user' ) ) { 96 /** 144 145 /** 146 * Retrive blogs associated with user. 147 * 97 148 * @see get_blogs_of_user() 149 * 150 * @param int $user_id ID of the user. Not used. 151 * @param bool $all Whether or not to return all. Not used. 152 * 153 * @return false 98 154 */ 99 155 function get_blogs_of_user( $user_id, $all = false ) { … … 104 160 if ( !function_exists( 'update_blog_status' ) ) { 105 161 /** 162 * Whether or not to update blog status. 163 * 106 164 * @see update_blog_status() 165 * 166 * @param int $blog_id Blog to update status for. Not used. 167 * @param mixed $pref Preference. Not used. 168 * @param string $value Value. Not used. 169 * @param null $deprecated Whether or not deprecated. Not used. 170 * 171 * @return true 107 172 */ 108 173 function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) { … … 113 178 if ( !function_exists( 'is_subdomain_install' ) ) { 114 179 /** 180 * Whether or not if subdomain install. 181 * 115 182 * @see is_subdomain_install() 183 * 184 * @return bool 116 185 */ 117 186 function is_subdomain_install() { … … 131 200 * 132 201 * @param string|bool $prefix Global table prefix. 133 *134 202 * @return string SQL chunk. 135 203 */ … … 155 223 * @param string $str String to be measured. 156 224 * @param string $enc Optional. Encoding type. Ignored. 157 *158 225 * @return int String length. 159 226 */ … … 162 229 $total = 0; 163 230 164 // Count ASCII bytes 231 // Count ASCII bytes. 165 232 for( $i = 0; $i < 0x80; $i++ ) { 166 233 $total += $counts[$i]; 167 234 } 168 235 169 // Count multibyte sequence heads 236 // Count multibyte sequence heads. 170 237 for( $i = 0xc0; $i < 0xff; $i++ ) { 171 238 $total += $counts[$i]; … … 183 250 * @param int $offset Optional. Start position for the search. Default: 0. 184 251 * @param string $encoding Optional. Encoding type. Ignored. 185 *186 252 * @return int|bool Position of needle in haystack if found, else false. 187 253 */ … … 208 274 * @param int $offset Optional. Start position for the search. Default: 0. 209 275 * @param string $encoding Optional. Encoding type. Ignored. 210 *211 276 * @return int Position of last needle in haystack if found, else false. 212 277 */
Note: See TracChangeset
for help on using the changeset viewer.