Skip to content

Commit 605f7ea

Browse files
authored
Merge pull request #332 from codepress/release/4.4
Release/4.4
2 parents f9ff430 + 4c59a06 commit 605f7ea

File tree

230 files changed

+7672
-5516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+7672
-5516
lines changed

api.php

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
use AC\Admin;
4-
use AC\Admin\RequestHandlerInterface;
53
use AC\EncodedListScreenDataFactory;
64
use AC\Helper;
75
use AC\ListScreen;
@@ -106,14 +104,8 @@ function ac_load_columns( array $data ) {
106104
*
107105
* @return string
108106
*/
109-
function ac_get_admin_url( $slug ) {
110-
return add_query_arg(
111-
[
112-
RequestHandlerInterface::PARAM_PAGE => Admin\Admin::NAME,
113-
RequestHandlerInterface::PARAM_TAB => $slug,
114-
],
115-
admin_url( 'options-general.php' )
116-
);
107+
function ac_get_admin_url( $slug = null ) {
108+
return Url\Editor::create_with_slug( $slug )->get_url();
117109
}
118110

119111
/**
@@ -122,13 +114,7 @@ function ac_get_admin_url( $slug ) {
122114
* @return string
123115
*/
124116
function ac_get_admin_network_url( $slug = null ) {
125-
return add_query_arg(
126-
[
127-
RequestHandlerInterface::PARAM_PAGE => Admin\Admin::NAME,
128-
RequestHandlerInterface::PARAM_TAB => $slug,
129-
],
130-
network_admin_url( 'settings.php' )
131-
);
117+
return Url\EditorNetwork::create_with_slug( $slug )->get_url();
132118
}
133119

134120
/**

assets/css/admin-general.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-page-addons.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-page-columns.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/components/ajax-loader.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/table.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/images/addons/acf-v2.png

5.33 KB
Loading

assets/images/external.svg

Lines changed: 17 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)