Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e1a07df
json creation for registration in packagist
denissonleal Jul 28, 2022
d03909a
Merge branch 'ProjectNami:master' into master
denissonleal Jun 4, 2025
7b3d26e
fix changes in upgrade file
denissonleal Jun 4, 2025
f319735
Merge branch 'ProjectNami:master' into master
denissonleal Jul 13, 2026
e53c172
update to version 6.9.4
denissonleal Jul 13, 2026
1bfd6ea
update to version 6.9.4
denissonleal Jul 13, 2026
a1e48d4
update to version 6.9.4
denissonleal Jul 13, 2026
570bb27
update to version 6.9.4
denissonleal Jul 13, 2026
9c6f8df
update to version 6.9.4
denissonleal Jul 13, 2026
3ec7b42
update to version 6.9.4
denissonleal Jul 14, 2026
c16be5a
update to version 6.9.4
denissonleal Jul 14, 2026
499a040
update to version 6.9.4
denissonleal Jul 14, 2026
eea724d
update to version 6.9.4
denissonleal Jul 14, 2026
d75e149
update to version 6.9.4
denissonleal Jul 15, 2026
3eab528
update to version 6.9.4
denissonleal Jul 15, 2026
2cac1e9
update to version 6.9.4
denissonleal Jul 15, 2026
f77e4e4
update to version 6.9.4
denissonleal Jul 16, 2026
14ad19b
update to version 6.9.4
denissonleal Jul 16, 2026
9115254
update to version 6.9.4
denissonleal Jul 16, 2026
5391e54
update to version 6.9.4
denissonleal Jul 16, 2026
c97d517
update to version 6.9.4
denissonleal Jul 16, 2026
c13c0cb
update to version 6.9.4
denissonleal Jul 16, 2026
d69819f
update to version 6.9.4
denissonleal Jul 16, 2026
b832e4b
update to version 6.9.4
denissonleal Jul 16, 2026
edb5daf
update to version 6.9.4
denissonleal Jul 16, 2026
1e0c96b
Merge pull request #2 from denissonleal/release/6.9.4
denissonleal Jul 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- it's a php project, so the instructions should be related to php code style and best practices.
- use WordPress coding standards.
- this project is basically a WordPress using Microsoft SQL Server, so the changes should be in sql queries and not in the WordPress code itself.
- try to avoid changing the WordPress code itself, unless it's extremely necessary to fix a bug or improve performance.
- add a flag in modified code to indicate that the code was modified for Microsoft SQL Server compatibility, so that it can be easily identified and reverted if necessary.
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "projectnami/projectnami",
"description": "WordPress powered by Microsoft SQL Server",
"version": "6.9.4",
"require": {
"php": ">=7.0"
}
}
784 changes: 392 additions & 392 deletions license.txt

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions wp-activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
if ( isset( $_GET['key'] ) && isset( $_POST['key'] ) && $_GET['key'] !== $_POST['key'] ) {
wp_die( __( 'A key value mismatch has been detected. Please follow the link provided in your activation email.' ), __( 'An error occurred during the activation' ), 400 );
} elseif ( ! empty( $_GET['key'] ) ) {
$key = $_GET['key'];
$key = sanitize_text_field( $_GET['key'] );
} elseif ( ! empty( $_POST['key'] ) ) {
$key = $_POST['key'];
$key = sanitize_text_field( $_POST['key'] );
}

if ( $key ) {
Expand Down Expand Up @@ -64,10 +64,6 @@

nocache_headers();

if ( is_object( $wp_object_cache ) ) {
$wp_object_cache->cache_enabled = false;
}

// Fix for page title.
$wp_query->is_404 = false;

Expand Down
174 changes: 113 additions & 61 deletions wp-admin/about.php

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions wp-admin/admin-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* @global WP_Screen $current_screen WordPress current screen object.
* @global WP_Locale $wp_locale WordPress date and time locale object.
* @global string $pagenow The filename of the current screen.
* @global string $wp_version
* @global string $update_title
* @global int $total_update_count
* @global string $parent_file
Expand All @@ -48,7 +47,7 @@
/* translators: User dashboard screen title. %s: Network title. */
$admin_title = sprintf( __( 'User Dashboard: %s' ), get_network()->site_name );
} else {
$admin_title = get_bloginfo( 'name' );
$admin_title = get_bloginfo( 'name' );
}

if ( $admin_title === $title ) {
Expand Down
10 changes: 7 additions & 3 deletions wp-admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,30 @@
* @param bool $do_mu_upgrade Whether to perform the Multisite upgrade routine. Default true.
*/
if ( apply_filters( 'do_mu_upgrade', true ) ) {
$c = get_blog_count();
$blog_count = get_blog_count();

/*
* If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load:
* attempt to do no more than threshold value, with some +/- allowed.
*/
if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) === 1 ) ) {
if ( $blog_count <= 50 || ( $blog_count > 50 && mt_rand( 0, (int) ( $blog_count / 50 ) ) === 1 ) ) {
require_once ABSPATH . WPINC . '/http.php';

$response = wp_remote_get(
admin_url( 'upgrade.php?step=1' ),
array(
'timeout' => 120,
'httpversion' => '1.1',
)
);

/** This action is documented in wp-admin/network/upgrade.php */
do_action( 'after_mu_upgrade', $response );

unset( $response );
}
unset( $c );

unset( $blog_count );
}
}

Expand Down
23 changes: 17 additions & 6 deletions wp-admin/async-upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
$title = $post->post_title ? $post->post_title : wp_basename( $file );
?>
<div class="filename new">
<span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
<span class="media-list-subtitle"><?php echo esc_html( wp_basename( $file ) ); ?></span>
<span class="media-list-title word-wrap-break-word"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
<span class="media-list-subtitle word-wrap-break-word"><?php echo esc_html( wp_basename( $file ) ); ?></span>
<div class="attachment-tools">
<?php
if ( current_user_can( 'edit_post', $id ) ) {
Expand Down Expand Up @@ -112,12 +112,14 @@

$id = media_handle_upload( 'async-upload', $post_id );
if ( is_wp_error( $id ) ) {
$button_unique_id = uniqid( 'dismiss-' );
$message = sprintf(
$button_unique_id = uniqid( 'dismiss-' );
$error_description_id = uniqid( 'error-description-' );
$message = sprintf(
'%s <strong>%s</strong><br />%s',
sprintf(
'<button type="button" id="%s" class="dismiss button-link">%s</button>',
'<button type="button" id="%1$s" class="dismiss button-link" aria-describedby="%2$s">%3$s</button>',
esc_attr( $button_unique_id ),
esc_attr( $error_description_id ),
__( 'Dismiss' )
),
sprintf(
Expand All @@ -127,14 +129,23 @@
),
esc_html( $id->get_error_message() )
);

wp_admin_notice(
$message,
array(
'id' => $error_description_id,
'additional_classes' => array( 'error-div', 'error' ),
'paragraph_wrap' => false,
)
);
echo "<script>jQuery( 'button#{$button_unique_id}' ).on( 'click', function() {jQuery(this).parents('div.media-item').slideUp(200, function(){jQuery(this).remove();})});</script>\n";

$speak_message = sprintf(
/* translators: %s: Name of the file that failed to upload. */
__( '%s has failed to upload.' ),
$_FILES['async-upload']['name']
);

echo '<script>_.delay(function() {wp.a11y.speak(' . wp_json_encode( $speak_message, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) . ");}, 1500);jQuery( 'button#{$button_unique_id}' ).on( 'click', function() {jQuery(this).parents('div.media-item').slideUp(200, function(){jQuery(this).remove();wp.a11y.speak( wp.i18n.__( 'Error dismissed.' ) );jQuery( '#plupload-browse-button' ).trigger( 'focus' );})});</script>\n";
exit;
}

Expand Down
9 changes: 9 additions & 0 deletions wp-admin/contribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@
$title = __( 'Get Involved' );

list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
$header_alt_text = sprintf(
/* translators: %s: Version number. */
__( 'WordPress %s' ),
$display_version
);

require_once ABSPATH . 'wp-admin/admin-header.php';
?>
<div class="wrap about__container">

<div class="about__header">
<div class="about__header-image">
<img src="images/about-release-logo.svg?ver=6.9" alt="<?php echo esc_attr( $header_alt_text ); ?>" />
</div>

<div class="about__header-title">
<h1>
<?php _e( 'Get Involved' ); ?>
Expand Down
9 changes: 9 additions & 0 deletions wp-admin/credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
$title = __( 'Credits' );

list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
$header_alt_text = sprintf(
/* translators: %s: Version number. */
__( 'WordPress %s' ),
$display_version
);

require_once ABSPATH . 'wp-admin/admin-header.php';

Expand All @@ -22,6 +27,10 @@
<div class="wrap about__container">

<div class="about__header">
<div class="about__header-image">
<img src="images/about-release-logo.svg?ver=6.9" alt="<?php echo esc_attr( $header_alt_text ); ?>" />
</div>

<div class="about__header-title">
<h1>
<?php _e( 'Contributors' ); ?>
Expand Down
Loading