Permalink
Browse files

Static pages ready and translated, just pending

translations for the current articles.
  • Loading branch information...
leopic committed Jun 7, 2011
1 parent 049b137 commit 8bf77bbc1a2c88d757104de78b85a6dabd322698
Showing with 8,507 additions and 363 deletions.
  1. +2 −2 .htaccess
  2. +306 −286 db_geeksomnio.sql
  3. +1 −1 readme.html
  4. +3 −1 wp-admin/admin-ajax.php
  5. +2 −1 wp-admin/custom-background.php
  6. +4 −2 wp-admin/custom-header.php
  7. +13 −12 wp-admin/includes/class-wp-plugins-list-table.php
  8. +6 −1 wp-admin/includes/import.php
  9. +1 −1 wp-admin/includes/media.php
  10. +15 −7 wp-admin/includes/post.php
  11. +4 −0 wp-admin/includes/template.php
  12. +1 −1 wp-admin/includes/update-core.php
  13. +4 −1 wp-admin/ms-delete-site.php
  14. +0 −7 wp-admin/plugins.php
  15. +1 −1 wp-admin/press-this.php
  16. +3 −3 wp-app.php
  17. +370 −0 wp-content/plugins/contact-form-7/admin/admin.php
  18. +351 −0 wp-content/plugins/contact-form-7/admin/edit.php
  19. +116 −0 wp-content/plugins/contact-form-7/admin/scripts.js
  20. +22 −0 wp-content/plugins/contact-form-7/admin/styles-rtl.css
  21. +248 −0 wp-content/plugins/contact-form-7/admin/styles.css
  22. +262 −0 wp-content/plugins/contact-form-7/admin/taggenerator.js
  23. BIN wp-content/plugins/contact-form-7/images/ajax-loader.gif
  24. BIN wp-content/plugins/contact-form-7/images/dropdown.gif
  25. +645 −0 wp-content/plugins/contact-form-7/includes/classes.php
  26. +288 −0 wp-content/plugins/contact-form-7/includes/controller.php
  27. +144 −0 wp-content/plugins/contact-form-7/includes/formatting.php
  28. +226 −0 wp-content/plugins/contact-form-7/includes/functions.php
  29. +67 −0 wp-content/plugins/contact-form-7/includes/pipe.php
  30. +185 −0 wp-content/plugins/contact-form-7/includes/shortcodes.php
  31. +49 −0 wp-content/plugins/contact-form-7/includes/taggenerator.php
  32. +825 −0 wp-content/plugins/contact-form-7/jquery.form.js
  33. +9 −0 wp-content/plugins/contact-form-7/languages/readme.txt
  34. BIN wp-content/plugins/contact-form-7/languages/wpcf7-af.mo
  35. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ar.mo
  36. BIN wp-content/plugins/contact-form-7/languages/wpcf7-bg_BG.mo
  37. BIN wp-content/plugins/contact-form-7/languages/wpcf7-bn_BD.mo
  38. BIN wp-content/plugins/contact-form-7/languages/wpcf7-bs.mo
  39. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ca.mo
  40. BIN wp-content/plugins/contact-form-7/languages/wpcf7-cs_CZ.mo
  41. BIN wp-content/plugins/contact-form-7/languages/wpcf7-da_DK.mo
  42. BIN wp-content/plugins/contact-form-7/languages/wpcf7-de_DE.mo
  43. BIN wp-content/plugins/contact-form-7/languages/wpcf7-el.mo
  44. BIN wp-content/plugins/contact-form-7/languages/wpcf7-es_ES.mo
  45. BIN wp-content/plugins/contact-form-7/languages/wpcf7-et.mo
  46. BIN wp-content/plugins/contact-form-7/languages/wpcf7-fa_IR.mo
  47. BIN wp-content/plugins/contact-form-7/languages/wpcf7-fi.mo
  48. BIN wp-content/plugins/contact-form-7/languages/wpcf7-fr_FR.mo
  49. BIN wp-content/plugins/contact-form-7/languages/wpcf7-gl_ES.mo
  50. BIN wp-content/plugins/contact-form-7/languages/wpcf7-he_IL.mo
  51. BIN wp-content/plugins/contact-form-7/languages/wpcf7-hi_IN.mo
  52. BIN wp-content/plugins/contact-form-7/languages/wpcf7-hr.mo
  53. BIN wp-content/plugins/contact-form-7/languages/wpcf7-hu_HU.mo
  54. BIN wp-content/plugins/contact-form-7/languages/wpcf7-hy_AM.mo
  55. BIN wp-content/plugins/contact-form-7/languages/wpcf7-id_ID.mo
  56. BIN wp-content/plugins/contact-form-7/languages/wpcf7-it_IT.mo
  57. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ja.mo
  58. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ka_GE.mo
  59. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ko_KR.mo
  60. BIN wp-content/plugins/contact-form-7/languages/wpcf7-lt_LT.mo
  61. BIN wp-content/plugins/contact-form-7/languages/wpcf7-lv.mo
  62. BIN wp-content/plugins/contact-form-7/languages/wpcf7-mk_MK.mo
  63. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ml_IN.mo
  64. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ms_MY.mo
  65. BIN wp-content/plugins/contact-form-7/languages/wpcf7-nb_NO.mo
  66. BIN wp-content/plugins/contact-form-7/languages/wpcf7-nl_NL.mo
  67. BIN wp-content/plugins/contact-form-7/languages/wpcf7-pl_PL.mo
  68. BIN wp-content/plugins/contact-form-7/languages/wpcf7-pt_BR.mo
  69. BIN wp-content/plugins/contact-form-7/languages/wpcf7-pt_PT.mo
  70. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ro_RO.mo
  71. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ru_RU.mo
  72. BIN wp-content/plugins/contact-form-7/languages/wpcf7-si_LK.mo
  73. BIN wp-content/plugins/contact-form-7/languages/wpcf7-sk.mo
  74. BIN wp-content/plugins/contact-form-7/languages/wpcf7-sl_SI.mo
  75. BIN wp-content/plugins/contact-form-7/languages/wpcf7-sq.mo
  76. BIN wp-content/plugins/contact-form-7/languages/wpcf7-sr_RS.mo
  77. BIN wp-content/plugins/contact-form-7/languages/wpcf7-sv_SE.mo
  78. BIN wp-content/plugins/contact-form-7/languages/wpcf7-ta.mo
  79. BIN wp-content/plugins/contact-form-7/languages/wpcf7-th.mo
  80. BIN wp-content/plugins/contact-form-7/languages/wpcf7-tr_TR.mo
  81. BIN wp-content/plugins/contact-form-7/languages/wpcf7-uk.mo
  82. BIN wp-content/plugins/contact-form-7/languages/wpcf7-vi.mo
  83. BIN wp-content/plugins/contact-form-7/languages/wpcf7-zh_CN.mo
  84. BIN wp-content/plugins/contact-form-7/languages/wpcf7-zh_TW.mo
  85. +842 −0 wp-content/plugins/contact-form-7/languages/wpcf7.pot
  86. +339 −0 wp-content/plugins/contact-form-7/license.txt
  87. +186 −0 wp-content/plugins/contact-form-7/modules/acceptance.php
  88. +490 −0 wp-content/plugins/contact-form-7/modules/captcha.php
  89. +246 −0 wp-content/plugins/contact-form-7/modules/checkbox.php
  90. +349 −0 wp-content/plugins/contact-form-7/modules/file.php
  91. +79 −0 wp-content/plugins/contact-form-7/modules/icl.php
  92. +214 −0 wp-content/plugins/contact-form-7/modules/quiz.php
  93. +17 −0 wp-content/plugins/contact-form-7/modules/response.php
  94. +195 −0 wp-content/plugins/contact-form-7/modules/select.php
  95. +73 −0 wp-content/plugins/contact-form-7/modules/special-mail-tags.php
  96. +97 −0 wp-content/plugins/contact-form-7/modules/submit.php
  97. +210 −0 wp-content/plugins/contact-form-7/modules/text.php
  98. +172 −0 wp-content/plugins/contact-form-7/modules/textarea.php
  99. +153 −0 wp-content/plugins/contact-form-7/readme.txt
  100. BIN wp-content/plugins/contact-form-7/screenshot-1.png
  101. +198 −0 wp-content/plugins/contact-form-7/scripts.js
  102. +111 −0 wp-content/plugins/contact-form-7/settings.php
  103. +12 −0 wp-content/plugins/contact-form-7/styles-rtl.css
  104. +65 −0 wp-content/plugins/contact-form-7/styles.css
  105. +18 −0 wp-content/plugins/contact-form-7/uninstall.php
  106. +69 −0 wp-content/plugins/contact-form-7/wp-contact-form-7.php
  107. +82 −0 wp-content/plugins/hello.php
  108. +1 −1 wp-content/themes/sight/slideshow.php
  109. +12 −10 wp-content/themes/sight/style.css
  110. +4 −2 wp-includes/canonical.php
  111. +2 −2 wp-includes/class-oembed.php
  112. +9 −2 wp-includes/default-filters.php
  113. +14 −1 wp-includes/formatting.php
  114. +12 −0 wp-includes/functions.php
  115. +31 −0 wp-includes/meta.php
  116. +19 −8 wp-includes/post.php
  117. +4 −4 wp-includes/query.php
  118. +5 −3 wp-includes/taxonomy.php
  119. +1 −1 wp-includes/theme.php
  120. +1 −1 wp-includes/version.php
  121. +2 −1 wp-login.php
View
@@ -2,11 +2,11 @@
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
-RewriteBase /Geeksomnio-WP-theme/
+RewriteBase /geeksomnio/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . /Geeksomnio-WP-theme/index.php [L]
+RewriteRule . /geeksomnio/index.php [L]
</IfModule>
# END WordPress
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -8,7 +8,7 @@
<body>
<h1 id="logo">
<a href="http://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" width="250" height="68" /></a>
- <br /> Version 3.1.2
+ <br /> Version 3.1.3
</h1>
<p style="text-align: center">Semantic Personal Publishing Platform</p>
View
@@ -396,7 +396,7 @@ function _wp_ajax_add_hierarchical_term() {
if ( !$meta = get_post_meta_by_id( $id ) )
die('1');
- if ( !current_user_can( 'edit_post', $meta->post_id ) )
+ if ( !current_user_can( 'edit_post', $meta->post_id ) || is_protected_meta( $meta->meta_key ) )
die('-1');
if ( delete_meta( $meta->meta_id ) )
die('1');
@@ -855,6 +855,8 @@ function _wp_ajax_add_hierarchical_term() {
die('0'); // if meta doesn't exist
if ( !current_user_can( 'edit_post', $meta->post_id ) )
die('-1');
+ if ( is_protected_meta( $meta->meta_key ) )
+ die('-1');
if ( $meta->meta_value != stripslashes($value) || $meta->meta_key != stripslashes($key) ) {
if ( !$u = update_meta( $mid, $key, $value ) )
die('0'); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems).
@@ -337,7 +337,8 @@ function handle_upload() {
'post_title' => $filename,
'post_content' => $url,
'post_mime_type' => $type,
- 'guid' => $url
+ 'guid' => $url,
+ 'context' => 'custom-background'
);
// Save the data
@@ -595,7 +595,8 @@ function step_2() {
'post_title' => $filename,
'post_content' => $url,
'post_mime_type' => $type,
- 'guid' => $url);
+ 'guid' => $url,
+ 'context' => 'custom-header');
// Save the data
$id = wp_insert_attachment($object, $file);
@@ -687,7 +688,8 @@ function step_3() {
'post_title' => basename($cropped),
'post_content' => $url,
'post_mime_type' => 'image/jpeg',
- 'guid' => $url
+ 'guid' => $url,
+ 'context' => 'custom-header'
);
// Update the attachment
@@ -195,13 +195,6 @@ function get_sortable_columns() {
return array();
}
- function display_tablenav( $which ) {
- global $status;
-
- if ( !in_array( $status, array( 'mustuse', 'dropins' ) ) )
- parent::display_tablenav( $which );
- }
-
function get_views() {
global $totals, $status;
@@ -286,11 +279,19 @@ function bulk_actions( $which ) {
function extra_tablenav( $which ) {
global $status;
- if ( 'recently_activated' == $status ) { ?>
- <div class="alignleft actions">
- <?php submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false ); ?>
- </div>
- <?php }
+ if ( ! in_array($status, array('recently_activated', 'mustuse', 'dropins') ) )
+ return;
+
+ echo '<div class="alignleft actions">';
+
+ if ( 'recently_activated' == $status )
+ submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false );
+ elseif ( 'top' == $which && 'mustuse' == $status )
+ echo '<p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>';
+ elseif ( 'top' == $which && 'dropins' == $status )
+ echo '<p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>';
+
+ echo '</div>';
}
function current_action() {
@@ -80,12 +80,17 @@ function wp_import_handle_upload() {
$object = array( 'post_title' => $filename,
'post_content' => $url,
'post_mime_type' => $type,
- 'guid' => $url
+ 'guid' => $url,
+ 'context' => 'import',
+ 'post_status' => 'private'
);
// Save the data
$id = wp_insert_attachment( $object, $file );
+ // schedule a cleanup for one day from now in case of failed import or missing wp_import_cleanup() call
+ wp_schedule_single_event( time() + 86400, 'importer_scheduled_cleanup', array( $id ) );
+
return array( 'file' => $file, 'id' => $id );
}
@@ -1192,7 +1192,7 @@ function get_media_item( $attachment_id, $args = null ) {
$toggle_on = __( 'Show' );
$toggle_off = __( 'Hide' );
- $filename = basename( $post->guid );
+ $filename = esc_html( basename( $post->guid ) );
$title = esc_attr( $post->post_title );
if ( $_tags = get_the_tags( $attachment_id ) ) {
View
@@ -138,6 +138,7 @@ function edit_post( $post_data = null ) {
$post_ID = (int) $post_data['post_ID'];
$post = get_post( $post_ID );
$post_data['post_type'] = $post->post_type;
+ $post_data['post_mime_type'] = $post->post_mime_type;
$ptype = get_post_type_object($post_data['post_type']);
if ( !current_user_can( $ptype->cap->edit_post, $post_ID ) ) {
@@ -199,6 +200,8 @@ function edit_post( $post_data = null ) {
continue;
if ( $meta->post_id != $post_ID )
continue;
+ if ( is_protected_meta( $value['key'] ) )
+ continue;
update_meta( $key, $value['key'], $value['value'] );
}
}
@@ -209,6 +212,8 @@ function edit_post( $post_data = null ) {
continue;
if ( $meta->post_id != $post_ID )
continue;
+ if ( is_protected_meta( $meta->meta_key ) )
+ continue;
delete_meta( $key );
}
}
@@ -527,6 +532,8 @@ function wp_write_post() {
return new WP_Error( 'edit_posts', __( 'You are not allowed to create posts or drafts on this site.' ) );
}
+ $_POST['post_mime_type'] = '';
+
// Check for autosave collisions
// Does this need to be updated? ~ Mark
$temp_id = false;
@@ -632,8 +639,6 @@ function add_meta( $post_ID ) {
global $wpdb;
$post_ID = (int) $post_ID;
- $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' );
-
$metakeyselect = isset($_POST['metakeyselect']) ? stripslashes( trim( $_POST['metakeyselect'] ) ) : '';
$metakeyinput = isset($_POST['metakeyinput']) ? stripslashes( trim( $_POST['metakeyinput'] ) ) : '';
$metavalue = isset($_POST['metavalue']) ? maybe_serialize( stripslashes_deep( $_POST['metavalue'] ) ) : '';
@@ -650,7 +655,7 @@ function add_meta( $post_ID ) {
if ( $metakeyinput)
$metakey = $metakeyinput; // default
- if ( in_array($metakey, $protected) )
+ if ( is_protected_meta( $metakey ) )
return false;
wp_cache_delete($post_ID, 'post_meta');
@@ -756,11 +761,9 @@ function has_meta( $postid ) {
function update_meta( $meta_id, $meta_key, $meta_value ) {
global $wpdb;
- $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' );
-
$meta_key = stripslashes($meta_key);
- if ( in_array($meta_key, $protected) )
+ if ( is_protected_meta( $meta_key ) )
return false;
if ( '' === trim( $meta_value ) )
@@ -993,7 +996,12 @@ function wp_edit_attachments_query( $q = false ) {
$q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0;
$q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0;
$q['post_type'] = 'attachment';
- $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : 'inherit';
+ $post_type = get_post_type_object( 'attachment' );
+ $states = array( 'inherit' );
+ if ( current_user_can( $post_type->cap->read_private_posts ) )
+ $states[] = 'private';
+
+ $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : $states;
$media_per_page = (int) get_user_option( 'upload_per_page' );
if ( empty( $media_per_page ) || $media_per_page < 1 )
$media_per_page = 20;
@@ -465,6 +465,10 @@ function list_meta( $meta ) {
*/
function _list_meta_row( $entry, &$count ) {
static $update_nonce = false;
+
+ if ( is_protected_meta( $entry['meta_key'] ) )
+ return;
+
if ( !$update_nonce )
$update_nonce = wp_create_nonce( 'add-meta' );
@@ -294,7 +294,7 @@ function update_core($from, $to) {
$mysql_version = $wpdb->db_version();
$required_php_version = '4.3';
$required_mysql_version = '4.1.2';
- $wp_version = '3.1.2';
+ $wp_version = '3.1.3';
$php_compat = version_compare( $php_version, $required_php_version, '>=' );
$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
@@ -34,6 +34,8 @@
echo '<h2>' . esc_html( $title ) . '</h2>';
if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) {
+ check_admin_referer( 'delete-blog' );
+
$hash = wp_generate_password( 20, false );
update_option( 'delete_blog_hash', $hash );
@@ -68,11 +70,12 @@
<p><?php _e( 'Remember, once deleted your site cannot be restored.' ) ?></p>
<form method="post" name="deletedirect">
+ <?php wp_nonce_field( 'delete-blog' ) ?>
<input type="hidden" name="action" value="deleteblog" />
<p><input id="confirmdelete" type="checkbox" name="confirmdelete" value="1" /> <label for="confirmdelete"><strong><?php printf( __( "I'm sure I want to permanently disable my site, and I am aware I can never get it back or use %s again." ), is_subdomain_install() ? $current_blog->domain : $current_blog->domain . $current_blog->path ); ?></strong></label></p>
<?php submit_button( __( 'Delete My Site Permanently' ) ); ?>
</form>
- <?php
+ <?php
}
echo '</div>';
View
@@ -407,13 +407,6 @@ function plugin_sandbox_scrape( $plugin ) {
<input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" />
<input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" />
-<?php
-if ( 'mustuse' == $status )
- echo '<br class="clear" /><p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>';
-elseif ( 'dropins' == $status )
- echo '<br class="clear" /><p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>';
-?>
-
<?php $wp_list_table->display(); ?>
</form>
View
@@ -225,7 +225,7 @@ function get_images_from_uri($uri) {
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$src);
else
$src = 'http://'.str_replace('//','/', $host['host'].'/'.dirname($host['path']).'/'.$src);
- $sources[] = esc_attr($src);
+ $sources[] = esc_url($src);
}
return "'" . implode("','", $sources) . "'";
}
View
@@ -607,13 +607,13 @@ function create_attachment() {
$slug = '';
if ( isset( $_SERVER['HTTP_SLUG'] ) )
- $slug = sanitize_file_name( $_SERVER['HTTP_SLUG'] );
+ $slug = $_SERVER['HTTP_SLUG'];
elseif ( isset( $_SERVER['HTTP_TITLE'] ) )
- $slug = sanitize_file_name( $_SERVER['HTTP_TITLE'] );
+ $slug = $_SERVER['HTTP_TITLE'];
elseif ( empty( $slug ) ) // just make a random name
$slug = substr( md5( uniqid( microtime() ) ), 0, 7);
$ext = preg_replace( '|.*/([a-z0-9]+)|', '$1', $_SERVER['CONTENT_TYPE'] );
- $slug = "$slug.$ext";
+ $slug = sanitize_file_name( "$slug.$ext" );
$file = wp_upload_bits( $slug, NULL, $bits);
log_app('wp_upload_bits returns:',print_r($file,true));
Oops, something went wrong.

0 comments on commit 8bf77bb

Please sign in to comment.