Changeset 30542
- Timestamp:
- 11/24/2014 05:46:04 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/install-helper.php
r30122 r30542 11 11 * do, then it is advised to just write the SQL code yourself. 12 12 * 13 * <code>14 * check_column('wp_links', 'link_description', 'mediumtext');15 * if (check_column($wpdb->comments, 'comment_author', 'tinytext'))16 * echo "ok\n";13 * check_column( 'wp_links', 'link_description', 'mediumtext' ); 14 * if ( check_column( $wpdb->comments, 'comment_author', 'tinytext' ) ) { 15 * echo "ok\n"; 16 * } 17 17 * 18 * $error_count = 0;19 * $tablename = $wpdb->links;20 * // check the column21 * if (!check_column($wpdb->links, 'link_description', 'varchar(255)')) {22 * $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";23 * $q = $wpdb->query($ddl);24 * }18 * $error_count = 0; 19 * $tablename = $wpdb->links; 20 * // Check the column. 21 * if ( ! check_column($wpdb->links, 'link_description', 'varchar( 255 )' ) ) { 22 * $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' "; 23 * $q = $wpdb->query( $ddl ); 24 * } 25 25 * 26 * if (check_column($wpdb->links, 'link_description', 'varchar(255)')) { 27 * $res .= $tablename . ' - ok <br />'; 28 * } else { 29 * $res .= 'There was a problem with ' . $tablename . '<br />'; 30 * ++$error_count; 31 * } 32 * </code> 26 * if ( check_column( $wpdb->links, 'link_description', 'varchar( 255 )' ) ) { 27 * $res .= $tablename . ' - ok <br />'; 28 * } else { 29 * $res .= 'There was a problem with ' . $tablename . '<br />'; 30 * ++$error_count; 31 * } 33 32 * 34 33 * @package WordPress -
trunk/src/wp-includes/l10n.php
r30495 r30542 77 77 * If there is no translation, or the text domain isn't loaded, the original text is returned. 78 78 * 79 * <strong>Note:</strong> Don't use translate() directly, use __()or related functions.79 * *Note:* Don't use {@see translate()} directly, use `{@see __()} or related functions. 80 80 * 81 81 * @since 2.2.0 … … 88 88 $translations = get_translations_for_domain( $domain ); 89 89 $translations = $translations->translate( $text ); 90 90 91 /** 91 92 * Filter text with its translation. … … 365 366 * 366 367 * Example: 367 * <code> 368 * $messages = array( 369 * 'post' => _n_noop('%s post', '%s posts'), 370 * 'page' => _n_noop('%s pages', '%s pages') 371 * ); 372 * ... 373 * $message = $messages[$type]; 374 * $usable_text = sprintf( translate_nooped_plural( $message, $count ), $count ); 375 * </code> 368 * 369 * $messages = array( 370 * 'post' => _n_noop( '%s post', '%s posts' ), 371 * 'page' => _n_noop( '%s pages', '%s pages' ), 372 * ); 373 * ... 374 * $message = $messages[ $type ]; 375 * $usable_text = sprintf( translate_nooped_plural( $message, $count ), $count ); 376 376 * 377 377 * @since 2.5.0 -
trunk/src/wp-includes/media.php
r30501 r30542 3101 3101 3102 3102 /** 3103 * Check the content blob for an <audio>, <video> <object>, <embed>, or <iframe>3103 * Check the content blob for an audio, video, object, embed, or iframe tags. 3104 3104 * 3105 3105 * @since 3.6.0 … … 3287 3287 3288 3288 /** 3289 * Return the UR ls for CSS files used in an <iframe>-sandbox'd TinyMCE media view3289 * Return the URLs for CSS files used in an iframe-sandbox'd TinyMCE media view. 3290 3290 * 3291 3291 * @since 4.0.0
Note: See TracChangeset
for help on using the changeset viewer.