Skip to content

Commit

Permalink
Static pages ready and translated, just pending
Browse files Browse the repository at this point in the history
translations for the current articles.
  • Loading branch information
leopic committed Jun 7, 2011
1 parent 049b137 commit 8bf77bb
Show file tree
Hide file tree
Showing 121 changed files with 8,507 additions and 363 deletions.
4 changes: 2 additions & 2 deletions .htaccess
Expand Up @@ -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
592 changes: 306 additions & 286 deletions db_geeksomnio.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion readme.html
Expand Up @@ -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>

Expand Down
4 changes: 3 additions & 1 deletion wp-admin/admin-ajax.php
Expand Up @@ -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');
Expand Down Expand Up @@ -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).
Expand Down
3 changes: 2 additions & 1 deletion wp-admin/custom-background.php
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions wp-admin/custom-header.php
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down
25 changes: 13 additions & 12 deletions wp-admin/includes/class-wp-plugins-list-table.php
Expand Up @@ -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;

Expand Down Expand Up @@ -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() {
Expand Down
7 changes: 6 additions & 1 deletion wp-admin/includes/import.php
Expand Up @@ -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 );
}

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/includes/media.php
Expand Up @@ -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 ) ) {
Expand Down
22 changes: 15 additions & 7 deletions wp-admin/includes/post.php
Expand Up @@ -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 ) ) {
Expand Down Expand Up @@ -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'] );
}
}
Expand All @@ -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 );
}
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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'] ) ) : '';
Expand All @@ -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');
Expand Down Expand Up @@ -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 ) )
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions wp-admin/includes/template.php
Expand Up @@ -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' );

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/includes/update-core.php
Expand Up @@ -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' );

Expand Down
5 changes: 4 additions & 1 deletion wp-admin/ms-delete-site.php
Expand Up @@ -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 );

Expand Down Expand Up @@ -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>';

Expand Down
7 changes: 0 additions & 7 deletions wp-admin/plugins.php
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/press-this.php
Expand Up @@ -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) . "'";
}
Expand Down
6 changes: 3 additions & 3 deletions wp-app.php
Expand Up @@ -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));
Expand Down

0 comments on commit 8bf77bb

Please sign in to comment.